/* ==========================================================================
   Familienstellen – zentrales Stylesheet
   Farb-Tokens direkt aus dem Logo abgeleitet (Blau / Lachs / Grau)
   ========================================================================== */

:root {
  /* Blau (Logo-Figur) */
  --blue-100: #E7EEF3;
  --blue-300: #9DB4C9;
  --blue-500: #4F7096;
  --blue-600: #3E5B7C;
  --blue-700: #2E4258;

  /* Lachs / Rosé (Logo-Figur) */
  --coral-300: #EFD3CF;
  --coral-500: #D89A96;
  --coral-700: #B96F6C;

  /* Grau (Logo-Figuren im Hintergrund) */
  --grey-200: #E7E5E1;
  --grey-300: #DAD8D3;
  --grey-400: #ADAAA4;
  --grey-600: #7D7A74;

  /* Basis */
  --bg: #F7F6F3;
  --bg-alt: #EFEDE8;
  --white: #FFFFFF;
  --ink: #2A3A48;          /* Inhaltstext: bewusst ein Blauton statt Schwarz */
  --ink-soft: #4B5D6C;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Raleway", "Segoe UI", sans-serif;

  --radius: 6px;
  --max-width: 1180px;
  --shadow-soft: 0 6px 24px rgba(46, 66, 88, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-weight: 400;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--blue-700);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--blue-500); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--coral-700); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--coral-700);
  display: inline-block;
  margin-bottom: .8em;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

/* Sichtbarer Fokus für Tastaturnutzung */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--coral-500);
  outline-offset: 3px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-300);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: 0.9rem 6vw;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.logo-link img {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--blue-700);
  font-weight: 600;
  white-space: nowrap;
}

nav.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1.7rem;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
  white-space: nowrap;
  position: relative;
  padding: .3rem 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--coral-500);
  transition: width .25s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  width: 100%;
}

nav.main-nav a.active { color: var(--blue-700); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue-700);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 1180px) {
  .logo-wordmark { display: none; }
  nav.main-nav { gap: .4rem 1.15rem; }
  nav.main-nav a { font-size: .9rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--grey-300);
    transition: max-height .3s ease;
  }
  nav.main-nav.open { max-height: 480px; }
  nav.main-nav a {
    width: 100%;
    padding: .9rem 6vw;
    border-top: 1px solid var(--grey-300);
  }
  nav.main-nav a::after { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-700);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  border-color: var(--blue-500);
  color: var(--blue-700);
}
.btn-ghost:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* ==========================================================================
   Konstellations-Signature (SVG-Motiv)
   ========================================================================== */

.constellation {
  display: block;
  width: 100%;
  height: auto;
}

.constellation circle.figure-grey { fill: var(--grey-400); }
.constellation circle.figure-blue { fill: var(--blue-500); }
.constellation circle.figure-coral { fill: var(--coral-500); }
.constellation line { stroke: var(--grey-400); stroke-width: 1; opacity: .45; }

.divider {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 220px;
  opacity: .8;
}

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

.hero {
  padding: 4.5rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 { margin-bottom: .5rem; }
.hero .lead { font-size: 1.15rem; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-visual {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ==========================================================================
   Karten / Grids
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card-grid-kosten {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
}

@media (max-width: 560px) {
  .card-grid-kosten { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.9rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--blue-500);
}

.card.coral { border-top-color: var(--coral-500); }
.card h3 { margin-bottom: .5rem; }
.card p { margin-bottom: 0; }

/* ==========================================================================
   Team (Über uns)
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

.team-card { text-align: center; }

.team-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  background: var(--blue-100);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo .placeholder-label {
  font-size: .72rem;
  color: var(--blue-600);
  font-weight: 600;
  text-align: center;
  padding: 0 1rem;
  letter-spacing: .04em;
}

.team-card h3 { margin-bottom: .15rem; }
.team-role {
  color: var(--coral-700);
  font-weight: 600;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .8rem;
  display: block;
}

/* ==========================================================================
   Termine
   ========================================================================== */

.termine-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.termin-item {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 10px;
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.termin-date {
  font-family: var(--font-head);
  color: var(--blue-700);
  font-size: 1.1rem;
  font-weight: 600;
  border-right: 1px solid var(--grey-300);
  padding-right: 1.2rem;
}

.termin-date small { display: block; color: var(--grey-600); font-family: var(--font-body); font-weight: 500; font-size: .78rem; }

.termin-item h3 { margin-bottom: .2rem; font-size: 1.05rem; }
.termin-item p { margin: 0; font-size: .92rem; }

@media (max-width: 620px) {
  .termin-item { grid-template-columns: 1fr; text-align: left; }
  .termin-date { border-right: none; border-bottom: 1px solid var(--grey-300); padding-bottom: .6rem; }
}

/* ==========================================================================
   Map / Standort
   ========================================================================== */

.map-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--grey-300);
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.maps-placeholder {
  border-radius: 12px;
  border: 1px solid var(--grey-300);
  background: var(--bg-alt);
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: .8rem;
}
.maps-placeholder p {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.maps-placeholder .maps-load-btn {
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   Cookie-Banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--blue-700);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.3rem 6vw;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}

.cookie-banner-inner p {
  flex: 1 1 380px;
  margin: 0;
  color: var(--blue-100);
  font-size: .88rem;
  line-height: 1.6;
}
.cookie-banner-inner p a { color: var(--white); text-decoration: underline; }

.cookie-banner-actions {
  display: flex;
  gap: .8rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn { font-size: .88rem; padding: .7rem 1.3rem; }
.cookie-banner-actions .cookie-reject.btn-ghost {
  border-color: var(--blue-300);
  color: var(--blue-100);
}
.cookie-banner-actions .cookie-reject.btn-ghost:hover {
  background: rgba(231,238,243,0.1);
  color: var(--white);
}

@media (max-width: 620px) {
  .cookie-banner-inner { padding: 1.1rem 6vw; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Feedback / Zitate
   ========================================================================== */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }

.quote-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.quote-card p.quote-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--blue-700);
  font-style: italic;
  margin-bottom: 1rem;
}

.quote-author {
  font-size: .85rem;
  font-weight: 600;
  color: var(--coral-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ==========================================================================
   Formulare (Kontakt)
   ========================================================================== */

form.contact-form {
  display: grid;
  gap: 1.3rem;
  max-width: 560px;
}

.form-row { display: grid; gap: .45rem; }

label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--blue-700);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--blue-500);
}

textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: .85rem;
  color: var(--grey-600);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 760px) { .contact-info-grid { grid-template-columns: 1fr; } }

.contact-detail {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}
.contact-detail .icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
}
.contact-detail .icon svg { width: 18px; height: 18px; }
.contact-detail h4 { margin-bottom: .1rem; font-size: .95rem; }
.contact-detail p { margin: 0; font-size: .92rem; }

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

.site-footer {
  background: var(--blue-700);
  color: var(--blue-100);
  padding: 3.2rem 0 1.6rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(231, 238, 243, 0.15);
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-inner h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-inner a { color: var(--blue-100); }
.footer-inner a:hover { color: var(--coral-300); }
.footer-inner p { color: var(--blue-100); opacity: .85; }

.footer-links { display: flex; flex-direction: column; gap: .6rem; }

.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 1rem;
  line-height: 0;
}

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

.social-row { display: flex; gap: .9rem; margin-top: 1rem; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(231, 238, 243, 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--coral-500); transform: translateY(-2px); }
.social-row svg { width: 19px; height: 19px; fill: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  padding-top: 1.6rem;
  font-size: .85rem;
  opacity: .8;
}

.footer-bottom .legal-links { display: flex; gap: 1.4rem; }

/* ==========================================================================
   Legal-Seiten (Datenschutz / Impressum)
   ========================================================================== */

.legal-content h2 { margin-top: 2rem; }
.legal-content { max-width: 74ch; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
