/* ==========================================================================
   Blumenstiel Ergotherapie — Design System
   Basierend auf Brand on a Page & Brand Präsentation (April/März 2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans+Extra+Condensed:wght@600;700&family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,500&display=swap');

:root{
  /* Neutral */
  --cream:        #FBF9F3; /* Offwhite Basis */

  /* Oliv/Gold */
  --gold-100:     #F6E6BB;
  --gold-200:     #F5DCA6;
  --gold-600:     #907200;
  --gold-900:     #635000;

  /* Petrol/Blau */
  --blue-100:     #D8ECF2;
  --blue-200:     #C0E0EA;
  --blue-600:     #027D93;
  --blue-900:     #115665;

  /* Pflaume */
  --plum-100:     #EEE3EF;
  --plum-200:     #E3D7E5;
  --plum-600:     #913162;
  --plum-900:     #6F244D;

  /* Rot */
  --red-100:      #F9D6D1;
  --red-200:      #FCC5BE;
  --red-600:      #D93D2F;
  --red-900:      #912C23;

  /* Salbei-Grün (ergänzender Akzent für Geriatrie/Elternberatung) */
  --sage-100:     #D9E4D3;
  --sage-600:     #6F8F63;

  --ink:          #4A3B22;   /* gedämpftes Braun-Oliv für Fließtext */
  --white:        #FFFFFF;

  --font-display: 'Fira Sans Extra Condensed', sans-serif;
  --font-brand:   'Josefin Sans', sans-serif;

  --radius-blob: 62% 38% 55% 45% / 48% 58% 42% 52%;
  --container:   1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.6em;
  color: var(--gold-900);
}

h1{ font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3{ font-size: 1.3rem; letter-spacing: 0.02em; }

p{ margin: 0 0 1em; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.94rem;
  color: var(--plum-900);
  margin-bottom: 0.9rem;
}

.lede{
  font-size: 1.15rem;
  max-width: 46ch;
}

/* Fokuszustand — sichtbar & konsistent für Tastaturnutzung */
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible{
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------ Skip Link ------------------------------ */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-family: var(--font-brand);
  font-weight: 600;
}
.skip-link:focus{ left: 0; }

/* -------------------------------- Header -------------------------------- */
.site-header{
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(74,59,34,0.08);
  transition: box-shadow 0.25s ease;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.54rem;
  padding-bottom: 0.54rem;
  transition: padding 0.25s ease;
}

/* Collapsible header: schrumpft beim Scrollen, wächst wieder ganz oben */
.site-header.is-scrolled{
  box-shadow: 0 4px 16px rgba(74,59,34,0.08);
}
.site-header.is-scrolled .container{
  padding-top: 0.27rem;
  padding-bottom: 0.27rem;
}
.site-header.is-scrolled .brand-logo .logo-svg,
.site-header.is-scrolled .brand-logo img{
  height: clamp(43px, 6vw, 53px);
}

.brand-logo{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--gold-900);
}
.brand-logo .logo-svg,
.brand-logo img{
  height: clamp(71px, 10.6vw, 92px);
  width: auto;
  display: block;
  transition: height 0.25s ease;
}
.brand-logo .praxis{
  align-self: flex-start;
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.32em;
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-left: 0.15em;
}
.brand-logo .name{
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  white-space: nowrap;
  margin: 0.08em 0;
}
.brand-logo .name .e-tilt{ display:inline-block; transform: rotate(-10deg) translateY(-0.03em); }
.brand-logo .name .l-swash{ display:inline-block; transform: rotate(6deg); margin-left: 0.01em; }
.brand-logo .tag{
  align-self: flex-end;
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.24em;
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--plum-600);
  margin-right: 0.1em;
}

.main-nav{ display: flex; align-items: center; gap: clamp(1.1rem, 2.5vw, 2.2rem); }
.main-nav a{
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--gold-900);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}
.main-nav a:hover{ border-color: var(--gold-600); opacity: 1; }
.main-nav a.active{
  border-color: var(--gold-900);
  opacity: 1;
}

.nav-toggle{
  display: none;
  background: none;
  border: 2px solid var(--gold-900);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before{ position:absolute; top:-7px; }
.nav-toggle span::after{ position:absolute; top:7px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top:0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ top:0; transform: rotate(-45deg); }

/* -------------------------------- Buttons -------------------------------- */
.btn-torn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  color: var(--white);
  text-decoration: none;
  background: var(--plum-600);
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  border: 2px solid var(--plum-600);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(111, 36, 77, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-torn:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(111, 36, 77, 0.34); background: var(--plum-900); border-color: var(--plum-900); }

.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
  color: var(--plum-900);
  text-decoration: none;
  border: 2px solid var(--plum-900);
  border-radius: 999px;
  min-height: 44px;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn-outline:hover{ background: var(--plum-900); color: var(--white); }

/* -------------------------------- Hero -------------------------------- */
.hero{
  background: var(--gold-100);
  overflow: hidden;
}
.hero .container{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(1.944rem, 4.536vw, 3.564rem);
  padding-bottom: clamp(2.43rem, 5.67vw, 4.455rem);
}
.hero-copy p.lede{ color: var(--gold-900); opacity: 0.88; }
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-top: 1.6rem; }

.hero-visual{ position: relative; }
.hero-blob{
  background: var(--white);
  border-radius: var(--radius-blob);
  aspect-ratio: 1/1;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(99,80,0,0.14);
}
.hero-blob svg{ width: 90%; height: auto; }
.hero-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ------------------------------ Sections ------------------------------ */
section{ padding: clamp(3.2rem, 7vw, 6rem) 0; }

.section-head{ max-width: 60ch; margin-bottom: 2.6rem; }

.bg-cream{ background: var(--cream); }
.bg-blue{ background: var(--blue-100); }
.bg-plum{ background: var(--plum-100); }
.bg-gold{ background: var(--gold-100); }

/* Konzept */
.concept-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.concept-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.concept-list li{
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: 16px;
}
.concept-list .mark{
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-100);
  display:flex; align-items:center; justify-content:center;
}
.concept-list .mark svg{ width: 16px; height:16px; }

/* Leistungen */
.services-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

/* Fachbereiche-Karten (vertikal, Icon-Badge oben, Underline unten) */
.service-card-v2{
  background: var(--white);
  border-radius: 22px;
  padding: 2.6rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.service-card-v2--featured{
  position: relative;
}
.service-card-v2 h3{
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-transform: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.3rem;
}
.service-card-v2 p{ font-size: 0.96rem; margin-bottom: 1rem; color: var(--ink); opacity: 0.85; }
.icon-badge{
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
  flex: none;
}
.icon-badge svg{ width: 30px; height: 30px; }
.icon-badge--lg{ width: 60px; height: 60px; }
.icon-badge--lg svg{ width: 28px; height: 28px; }
.card-underline{
  display: block;
  width: 66%;
  height: 3px;
  border-radius: 999px;
  margin-top: auto;
  margin-bottom: 0;
}
.card-underline + .badge-highlight{ margin-top: 0.9rem; }
.badge-highlight{
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.68rem;
  background: var(--gold-200);
  color: var(--gold-900);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
}
.badge-highlight--corner{
  position: absolute;
  top: 1rem;
  right: 1.4rem;
  align-self: auto;
}

/* Angebote-Karten (horizontal, Icon links, Text rechts) */
.services-grid--row{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card-row{
  background: var(--white);
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.service-card-row h3{
  color: var(--ink);
  margin-bottom: 0.3rem;
  text-transform: none;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
}
.service-card-row p{ font-size: 0.92rem; margin-bottom: 0; color: var(--ink); opacity: 0.85; }

/* Positionierung Statement */
.statement{
  text-align: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--plum-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.statement h2{
  color: var(--white);
  max-width: 20ch;
  margin: 0 auto 0.8rem;
}
.statement p{
  max-width: 50ch;
  margin: 0 auto;
  opacity: 0.86;
  font-size: 1.05rem;
}
.statement .petals{
  position:absolute; inset:0; opacity:0.12; pointer-events:none;
}

/* Über uns */
.about-grid{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items:center;
}
.about-frame{
  background: var(--blue-100);
  border-radius: var(--radius-blob);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-frame svg{ width: 90%; }
.about-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pillars{ display:grid; grid-template-columns: repeat(3,1fr); gap:1.2rem; margin-top:1.8rem;}
.credential-list{
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}
.credential-list li{
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.96rem;
}
.credential-list .mark{
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-100);
  display:flex; align-items:center; justify-content:center;
  margin-top: 0.1rem;
}
.credential-list .mark svg{ width: 14px; height: 14px; }
.pillar{ text-align:left; }
.pillar .num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold-600);
  display:block;
  margin-bottom: 0.2rem;
}
.pillar p{ font-size:0.92rem; margin-bottom:0; }

/* Kontakt */
.contact-wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

/* Sprout-Row: Blumen "sprießen" aus dem Footer in die Kontakt-Sektion hinein */
.sprout-row{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  pointer-events: none;
}
.sprout-flower{
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  transform-origin: bottom center;
}
.sprout-flower svg{
  height: 100%;
  width: auto;
  display: block;
}

/* Mobile: Cluster auflösen, sonst überlappen sich die Blumen bei schmaler Breite */
@media (max-width: 760px){
  .sprout-flower{ transform: translateX(-50%) !important; }
  .sprout-flower:nth-child(1){ left: 4%  !important; height: 46px !important; }
  .sprout-flower:nth-child(2){ left: 24% !important; height: 50px !important; }
  .sprout-flower:nth-child(3){ left: 40% !important; height: 56px !important; }
  .sprout-flower:nth-child(4){ left: 61% !important; height: 61px !important; }
  .sprout-flower:nth-child(5){ left: 79% !important; height: 54px !important; }
  .sprout-flower:nth-child(6){ left: 96% !important; height: 58px !important; }
}
.contact-card{
  background: var(--white);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.contact-list{ list-style:none; margin: 1.2rem 0 0; padding:0; display:grid; gap:1rem; }
.contact-list li{ display:flex; gap:0.8rem; align-items:flex-start; }
.contact-list .mark{
  flex:none; width:36px; height:36px; border-radius:50%;
  background: var(--gold-100);
  display:flex; align-items:center; justify-content:center;
}
.contact-list .mark svg{ width:18px; height:18px; }
.contact-list .label{ font-weight:600; display:block; font-family: var(--font-brand); text-transform: uppercase; font-size:0.75rem; letter-spacing:0.06em; color: var(--plum-900);}
.placeholder-tag{
  display:inline-block;
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:0.05em;
  background: var(--red-100);
  color: var(--red-900);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  font-family: var(--font-brand);
  font-weight:600;
}

.hours-table{ width:100%; border-collapse: collapse; margin-top:1rem;}
.hours-table td{ padding: 0.4rem 0; border-bottom: 1px solid var(--gold-100); font-size:0.95rem;}
.hours-table td:last-child{ text-align:right; color: var(--gold-900); font-weight:600; }

/* --------------------------------- Footer -------------------------------- */
.site-footer{
  background: var(--gold-900);
  color: var(--gold-100);
  padding: clamp(2.6rem, 5vw, 3.6rem) 0 1.6rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr 0.95fr 0.85fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(251,249,243,0.18);
}
.footer-grid h3{
  color: var(--gold-100);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.footer-grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:0.5rem; }
.footer-grid a{ text-decoration:none; color: var(--gold-100); opacity:0.86; font-size:0.94rem; }
.footer-grid a:hover{ opacity:1; text-decoration:underline; }
.footer-grid li{ font-size: 0.94rem; opacity: 0.86; line-height: 1.5; }
.footer-brand .brand-logo{ color: var(--gold-100); }
.footer-brand .brand-logo .praxis, .footer-brand .brand-logo .tag{ color: var(--gold-200); }

.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:0.6rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  opacity: 0.75;
}
.footer-bottom a{ text-decoration: underline; }

/* --------------------------------- Utility -------------------------------- */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* --------------------------- Legal pages (Impressum/Datenschutz) --------------------------- */
.legal-hero{
  background: var(--gold-100);
  padding: clamp(2.6rem, 6vw, 4rem) 0;
}
.legal-content{ max-width: 72ch; }
.legal-content h2{ font-size: 1.4rem; margin-top: 2.2rem; text-transform: none; color: var(--plum-900); }
.legal-content h2:first-of-type{ margin-top: 0; }
.legal-content h3{ font-size: 1.05rem; margin-top: 1.7rem; margin-bottom: 0.5rem; text-transform: none; color: var(--ink); font-weight: 700; }
.legal-content p{ font-size: 0.98rem; }
.legal-content ul{ margin: 0 0 1em; padding-left: 1.3rem; }
.legal-content li{ font-size: 0.98rem; margin-bottom: 0.5rem; }
.legal-content .fill{
  background: var(--red-100);
  color: var(--red-900);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-weight: 600;
}

/* --------------------------------- Responsive --------------------------------- */
@media (max-width: 900px){
  .concept-grid, .about-grid, .contact-wrap{ grid-template-columns: 1fr; }
  .about-frame{ order: -1; max-width: 320px; margin: 0 auto; }
  .pillars{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 760px){
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(74,59,34,0.08);
    display: none;
  }
  .main-nav.is-open{ display: flex; }
  .nav-toggle{ display: inline-flex; }
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; max-width: 280px; margin: 0 auto; }
}

@media (max-width: 600px){
  .services-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; }
}
