:root {
  --ptl-blue: #2E6F95;
  --ptl-blue-dark: #1F5470;
  --ptl-green: #8FB87C;
  --ptl-grey: #3E4A4F;
  --ptl-grey-soft: #6B7479;
  --ptl-bg: #FAFBFC;
  --ptl-border: #E8ECEE;
  --ptl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Cantarell, Ubuntu, "Open Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ptl-font);
  font-weight: 400;
  color: var(--ptl-grey);
  background: var(--ptl-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============ HAUPTSEITE ============ */
.page { position: relative; min-height: 100vh; overflow: hidden; }
.network-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 720px;
  background: url("network.svg") no-repeat center top / cover;
  pointer-events: none;
  z-index: 0;
}

.lang-switch-hero {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 13px;
  z-index: 10;
  user-select: none;
}
.lang-switch-hero a {
  color: var(--ptl-grey-soft);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.15s ease;
}
.lang-switch-hero a:hover { color: var(--ptl-blue); }
.lang-switch-hero a.active { color: var(--ptl-blue); font-weight: 600; }
.lang-switch-hero .sep { color: var(--ptl-border); margin: 0 2px; }

.container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 32px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo { width: 280px; height: auto; margin-bottom: 40px; user-select: none; }

h1 {
  font-size: 64px;
  font-weight: 300;
  color: var(--ptl-blue);
  margin: 0 0 8px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.tagline {
  font-size: 19px;
  font-weight: 400;
  color: var(--ptl-grey-soft);
  margin: 0 0 56px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 96px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ptl-blue);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--ptl-blue-dark); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 6px;
  border: 1px solid var(--ptl-border);
  color: var(--ptl-grey);
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.icon-link:hover { border-color: var(--ptl-blue); color: var(--ptl-blue); transform: translateY(-1px); }
.icon-link svg { width: 20px; height: 20px; }

.sections {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: left;
}

.section h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ptl-green);
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 16px;
}

.section p {
  font-size: 17px;
  color: var(--ptl-grey);
  margin: 0;
  line-height: 1.7;
}

.section-intro {
  font-size: 16px;
  color: var(--ptl-grey);
  margin: 0 0 0px;
  line-height: 1.7;
  max-width: 620px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.person {
  background: #fff;
  border: 1px solid var(--ptl-border);
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.person:hover { border-color: var(--ptl-green); transform: translateY(-2px); }

.person .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ECEFF1;
  color: #B0B6BA;
  background-size: cover;
  background-position: center;
}
.person .avatar svg { width: 28px; height: 28px; }
.person .avatar.has-photo svg { display: none; }

.person .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ptl-grey);
  margin: 0 0 4px;
}

.person .role {
  font-size: 12px;
  font-weight: 500;
  color: var(--ptl-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.person .desc {
  font-size: 13px;
  color: var(--ptl-grey-soft);
  margin: 0 0 16px;
  line-height: 1.55;
  flex-grow: 1;
}

.person-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ptl-border);
}
.person-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid var(--ptl-border);
  color: var(--ptl-grey-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.person-actions a:hover { border-color: var(--ptl-blue); color: var(--ptl-blue); }
.person-actions a svg { width: 14px; height: 14px; }
.person-actions a.disabled { opacity: 0.4; pointer-events: none; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 32px;
  font-size: 13px;
  color: var(--ptl-grey-soft);
  border-top: 1px solid var(--ptl-border);
  margin-top: 32px;
}
footer a { color: var(--ptl-blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-row { margin-bottom: 8px; }
.footer-links { font-size: 13px; }
.footer-links .sep { color: var(--ptl-border); margin: 0 8px; }

/* ============ LEGAL-SEITEN ============ */
.legal-page { background: var(--ptl-bg); }
.legal-page body { line-height: 1.7; }

/* Schmales Netzwerk-Banner oben — wie Hauptseite aber proportional kleiner */
.legal-network {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background:
    linear-gradient(to bottom,
      rgba(250, 251, 252, 0) 0%,
      rgba(250, 251, 252, 0) 50%,
      rgba(250, 251, 252, 0.6) 80%,
      var(--ptl-bg) 100%),
    url("network_slim.svg") no-repeat center top / cover;
  pointer-events: none;
  z-index: 0;
}

.legal-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  position: relative;
  z-index: 2;
  padding: 24px 32px;
  background: transparent;
  border-bottom: none;
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
/* Text leicht hervorheben damit er auf dem Netzwerk lesbar bleibt */
.topbar a.brand .name,
.topbar a.back,
.topbar .lang-switch a {
  text-shadow: 0 0 8px rgba(250, 251, 252, 0.9), 0 0 4px rgba(250, 251, 252, 0.9);
}
.topbar a.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ptl-grey);
  margin-right: auto;
}
.topbar a.brand img { height: 32px; width: auto; }
.topbar a.brand .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ptl-blue);
}

.lang-switch {
  font-size: 13px;
  user-select: none;
  color: var(--ptl-grey-soft);
}
.lang-switch a {
  color: var(--ptl-grey-soft);
  text-decoration: none;
  padding: 4px 6px;
  transition: color 0.15s ease;
}
.lang-switch a:hover { color: var(--ptl-blue); }
.lang-switch a.active { color: var(--ptl-blue); font-weight: 600; }
.lang-switch .sep { color: var(--ptl-border); margin: 0 2px; }

.topbar a.back {
  font-size: 14px;
  color: var(--ptl-grey-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar a.back:hover { color: var(--ptl-blue); }
.topbar a.back svg { width: 14px; height: 14px; }

main.legal {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  line-height: 1.7;
}

main.legal h1 {
  font-size: 36px;
  font-weight: 300;
  color: var(--ptl-blue);
  margin: 0 0 8px;
  letter-spacing: -0.3px;
  text-align: left;
}

main.legal .meta {
  font-size: 13px;
  color: var(--ptl-grey-soft);
  margin: 0 0 40px;
}

main.legal h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ptl-green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 40px 0 12px;
}

main.legal h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ptl-grey);
  margin: 24px 0 8px;
}

main.legal p { font-size: 16px; margin: 0 0 16px; }

main.legal ul { margin: 0 0 16px; padding-left: 22px; }
main.legal ul li { margin-bottom: 6px; }

main.legal a { color: var(--ptl-blue); text-decoration: none; }
main.legal a:hover { text-decoration: underline; }

.placeholder {
  background: #FFF6E0;
  border-left: 3px solid #D4A04A;
  padding: 6px 10px;
  margin: 4px 0;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 14px;
  color: #8B5A1F;
  border-radius: 4px;
  display: inline-block;
  line-height: 1.5;
}

.data-block {
  background: #fff;
  border: 1px solid var(--ptl-border);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 16px 0 24px;
}
.data-block p { margin: 4px 0; font-size: 15px; }
.data-block .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ptl-grey-soft);
  margin-top: 12px;
  margin-bottom: 2px;
}
.data-block .label:first-child { margin-top: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  h1 { font-size: 44px; }
  .tagline { font-size: 17px; }
  .container { padding: 64px 24px 48px; }
  .logo { width: 220px; margin-bottom: 32px; }
  .cta-row { margin-bottom: 64px; }
  .sections { gap: 32px; }
  .section p { font-size: 16px; }
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .lang-switch-hero { top: 16px; right: 20px; }

  .topbar { padding: 16px 20px; }
  .topbar-inner { gap: 12px; }
  .topbar a.brand .name { display: none; }
  main.legal { padding: 40px 24px 64px; }
  main.legal h1 { font-size: 28px; }
  main.legal p { font-size: 15px; }
}

/* ============================================================
   PROFIL-OVERLAY — vollstaendig (Variante 4)
   Am Dateiende einfuegen. Ersetzt alle frueheren Modal-Regeln.
   ============================================================ */

body.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(62, 74, 79, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal.is-open { opacity: 1; }
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: min(600px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--ptl-border);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(31, 84, 112, 0.18);
  padding: 44px 44px 32px;
  text-align: center;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.modal.is-open .modal-card { transform: scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ptl-border);
  border-radius: 8px;
  color: var(--ptl-grey-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.modal-close:hover { border-color: var(--ptl-blue); color: var(--ptl-blue); }
.modal-close svg { width: 15px; height: 15px; }

.modal-card .avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--ptl-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ptl-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ptl-grey-soft);
}
.modal-card .avatar svg { width: 44px; height: 44px; }
.modal-card .avatar.has-photo svg { display: none; }

.modal-card > .name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--ptl-grey);
}
.modal-card > .role {
  margin: 3px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ptl-blue);
}
.modal-intro {
  max-width: 460px;
  margin: 18px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ptl-grey);
}
.modal-rule {
  width: 44px;
  height: 2px;
  background: var(--ptl-green);
  margin: 30px auto;
}

.modal-body { text-align: left; }

.modal-card h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ptl-green);
}

.modal-card ul.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--ptl-border);
}
.modal-card ul.milestones li {
  position: relative;
  padding: 0 0 18px 20px;
}
.modal-card ul.milestones li:last-child { padding-bottom: 0; }
.modal-card ul.milestones li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ptl-blue);
}
.modal-card .ms-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ptl-grey);
}
.modal-card .ms-text {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ptl-grey-soft);
}

.stance-wrap { margin-top: 32px; }
.stance-quote {
  background: var(--ptl-bg);
  border: 1px solid var(--ptl-border);
  border-radius: 10px;
  padding: 22px 24px;
}
.modal-card ul.stance {
  list-style: none;
  margin: 0;
  padding: 0;
}
.modal-card ul.stance li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ptl-grey);
}
.modal-card ul.stance li:last-child { margin-bottom: 0; }
.modal-card ul.stance li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ptl-green);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--ptl-border);
}
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  border: 1px solid var(--ptl-border);
  border-radius: 8px;
  color: var(--ptl-grey-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.modal-link:hover { border-color: var(--ptl-blue); color: var(--ptl-blue); }
.modal-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

@media (max-width: 560px) {
  .modal { padding: 14px; }
  .modal-card { padding: 30px 20px 24px; }
  .modal-card .avatar { width: 104px; height: 104px; }
  .modal-card > .name { font-size: 21px; }
  .modal-rule { margin: 24px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .modal, .modal-card { transition: none; }
}