/* ============================================
   Friedenspraxis — Styles
   CI-Quelle: Branding/CI/Friedenspraxis_CI_Farben.typ
   ============================================ */

:root {
  --nachtblau: #1A2E44;
  --sonnengelb: #F9AF3C;
  --korall: #E86F3A;
  --offwhite: #FAFAFA;

  --text: var(--nachtblau);
  --bg: var(--offwhite);
  --bg-accent: #F1EEE8;

  --font-display: "Bebas Neue", "Oswald", "Impact", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --content-max: 1080px;
  --narrow-max: 680px;

  --radius: 6px;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nachtblau);
  text-decoration: underline;
  text-decoration-color: var(--sonnengelb);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--korall);
  text-decoration-color: var(--korall);
}

:focus-visible {
  outline: 3px solid var(--korall);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3 {
  color: var(--nachtblau);
  line-height: 1.2;
  margin: 0 0 var(--space-s);
  font-weight: 500;
}

strong { font-weight: 600; }
em { font-style: italic; }

/* ============================================
   Layout
   ============================================ */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

.container.narrow {
  max-width: var(--narrow-max);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  padding: var(--space-s) 0;
  border-bottom: 1px solid rgba(26, 46, 68, 0.08);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.header-contact {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--nachtblau);
  opacity: 0.85;
}

.header-contact:hover {
  opacity: 1;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: var(--space-xl) 0 var(--space-l);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 100%;
  max-width: 728px;
  height: auto;
  margin-bottom: var(--space-m);
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--korall);
  font-weight: 500;
  margin: 0 0 var(--space-s);
}

.hero-claim {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  margin: 0 0 var(--space-m);
  max-width: 26ch;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1.125rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--space-l) 0;
}

.section-haltung {
  background: var(--bg-accent);
}

.section-team {
  background: var(--nachtblau);
  color: var(--offwhite);
  position: relative;
  overflow: hidden;
}

.section-team h2,
.section-team h3 {
  color: var(--offwhite);
}

.section-team .container {
  position: relative;
  z-index: 1;
}

.deco {
  position: absolute;
  width: auto;
  height: 240px;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

.deco-left {
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
}

.deco-right {
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}

@media (max-width: 720px) {
  .deco {
    height: 120px;
    opacity: 0.15;
  }
  .deco-left { left: 1rem; }
  .deco-right { right: 1rem; }
}

.section-newsletter {
  padding-bottom: var(--space-xl);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-m);
}

.section-heading.centered {
  text-align: center;
}

.subheading {
  font-size: 1.15rem;
  font-weight: 600;
  margin: var(--space-l) 0 var(--space-s);
}

.pull-quote {
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--nachtblau);
  border-left: 4px solid var(--korall);
  padding: var(--space-s) 0 var(--space-s) var(--space-m);
  margin: var(--space-m) 0;
  font-style: italic;
}

.ziele-liste {
  padding-left: 1.2em;
  margin: var(--space-m) 0;
}

.ziele-liste li {
  margin-bottom: var(--space-s);
  padding-left: 0.25em;
}

.ziele-liste li::marker {
  color: var(--sonnengelb);
  font-weight: 700;
}

/* ============================================
   Team
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-l);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.person-card {
  text-align: center;
  padding: 0 var(--space-s);
}

.person-portrait {
  width: auto;
  height: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  margin: 0 auto var(--space-m);
  background: var(--offwhite);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  filter: grayscale(1) contrast(1.03);
}

@media (max-width: 560px) {
  .person-portrait {
    height: 260px;
  }
}

.person-name {
  font-size: 1.25rem;
  margin-bottom: 0.25em;
  color: var(--offwhite);
}

.person-role {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sonnengelb);
  margin: 0 0 var(--space-s);
}

.person-bio {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.9);
  margin: 0;
}

/* ============================================
   Newsletter
   ============================================ */

.newsletter-embed {
  margin-top: var(--space-m);
  display: flex;
  justify-content: center;
}

.newsletter-iframe {
  display: block;
  width: 100%;
  max-width: 540px;
  height: 520px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-accent);
}

.newsletter-consent {
  width: 100%;
  max-width: 540px;
  background: var(--bg-accent);
  border-radius: var(--radius);
  padding: var(--space-m);
  border: 1px dashed rgba(26, 46, 68, 0.25);
}

.newsletter-consent-text {
  margin: 0 0 var(--space-m);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(26, 46, 68, 0.92);
}

.newsletter-consent-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(26, 46, 68, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.newsletter-consent-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--nachtblau);
  color: var(--offwhite);
  border: 0;
  border-radius: var(--radius);
  padding: 0.7em 1.4em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-consent-button:hover,
.newsletter-consent-button:focus-visible {
  background: var(--korall);
}

.newsletter-consent-fallback {
  margin: var(--space-m) 0 0;
  font-size: 0.9rem;
  color: rgba(26, 46, 68, 0.75);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--nachtblau);
  color: var(--offwhite);
  padding: var(--space-l) 0 var(--space-m);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-m);
}

.site-footer a {
  color: var(--offwhite);
  text-decoration-color: var(--sonnengelb);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sonnengelb);
  text-decoration-color: var(--sonnengelb);
}

.footer-col p {
  margin: 0 0 0.5em;
  line-height: 1.5;
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: var(--space-s);
}

.footer-zvr {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: var(--space-s);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  align-items: flex-end;
}

/* ============================================
   Rechtstexte (impressum.html, datenschutz.html)
   ============================================ */

.legal-page {
  padding: var(--space-l) 0 var(--space-xl);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-m);
}

.legal-page h2 {
  margin-top: var(--space-l);
  font-size: 1.2rem;
  font-weight: 600;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
}

.legal-page dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-m);
  row-gap: 0.5em;
  margin: var(--space-m) 0;
}

.legal-page dt {
  font-weight: 600;
}

.legal-page dd {
  margin: 0;
}

.back-link {
  display: inline-block;
  margin-top: var(--space-m);
  font-size: 0.95rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 560px) {
  .footer-inner {
    flex-direction: column;
  }
  .footer-nav {
    align-items: flex-start;
  }
  .hero {
    padding: var(--space-l) 0 var(--space-m);
  }
  .hero-logo {
    max-width: 416px;
  }
  .brand-logo {
    height: 32px;
  }
  .pull-quote {
    padding-left: var(--space-s);
  }
  .header-contact {
    font-size: 0.85rem;
  }
  .legal-page dl {
    grid-template-columns: 1fr;
    row-gap: 0.25em;
  }
  .legal-page dd {
    margin-bottom: 0.75em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
