/* === SELF-HOSTED FONTS === */
/* Cormorant Garamond — italic */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Cormorant Garamond — normal */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/cormorant-garamond-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* DM Sans */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/dm-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/dm-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* === TAILWIND UTILITIES (ersetzt CDN) === */
.flex { display: flex; }
.flex-col { flex-direction: column; }

/* === CUSTOM PROPERTIES === */
:root {
  --rose:       #c4867a;
  --rose-light: #e8c5bb;
  --rose-pale:  #f5e8e4;
  --rose-dark:  #6b3f36;
  --cream:      #fdf8f6;
  --cream-mid:  #f7ede9;
  --sand:       #edddd7;
  --muted:      #8a6960;
  --text:       #2a1a16;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --card-radius: 20px;
  --btn-radius:  40px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === TYPOGRAPHY === */
.font-serif   { font-family: var(--font-serif); }
.heading-xl   { font-family: var(--font-serif); font-size: clamp(36px, 5vw, 54px); line-height: 1.1; font-weight: 700; color: var(--rose-dark); }
.heading-lg   { font-family: var(--font-serif); font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; font-weight: 600; color: var(--rose-dark); }
.heading-md   { font-family: var(--font-serif); font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; color: var(--rose-dark); }
.eyebrow      { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--rose); }
.body-text    { font-size: 16px; color: var(--muted); line-height: 1.8; overflow-wrap: break-word; }
.body-text a  { overflow-wrap: anywhere; }
/* Lange deutsche Wörter (z. B. "Datenschutzerklärung") auf schmalen Handys trennen statt überstehen lassen */
.heading-xl, .heading-lg, .heading-md { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.quote-text   { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--muted); line-height: 1.65; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--rose); color: #fff;
  padding: 13px 28px; border-radius: var(--btn-radius);
  font-size: 13px; font-weight: 600; font-family: var(--font-sans);
  transition: background .2s, transform .15s; cursor: pointer; border: none;
}
.btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); }
.btn-primary:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 3px; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--rose-dark); font-size: 13px; font-weight: 500;
  border-bottom: 1px solid var(--rose-light); padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--rose); border-color: var(--rose); }
.btn-ghost:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  padding: 13px 28px; border-radius: var(--btn-radius);
  font-size: 13px; font-weight: 600; font-family: var(--font-sans);
  transition: border-color .2s;
}
.btn-outline:focus-visible { outline: 2px solid rgba(255,255,255,0.8); outline-offset: 3px; }
.btn-outline:hover { border-color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.1); }

/* === SECTION LABELS === */
.section-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rose); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--rose); }

/* === CARDS === */
.card {
  background: #fff; border-radius: var(--card-radius); border: 1px solid var(--sand);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(196,134,122,0.18);
  border-color: var(--rose-light);
}

/* === NAVIGATION === */
.site-nav {
  background: var(--cream); border-bottom: 1px solid var(--sand);
  padding: 18px 48px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.nav-logo-name { font-family: var(--font-serif); font-size: 20px; color: var(--rose-dark); }
.nav-logo-sub  { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a  { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--rose); }
.nav-links a:focus-visible { color: var(--rose); outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 3px; }
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%); background: #fff; border: 1px solid var(--sand);
  border-radius: 12px; padding: 8px 0; min-width: 180px; list-style: none;
  box-shadow: 0 8px 24px rgba(107,63,54,0.12); z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 18px; font-size: 13px; color: var(--text);
  text-transform: none; letter-spacing: 0; font-weight: 400;
  transition: background .15s, color .15s;
}
.nav-dropdown-menu a:hover { background: var(--cream-mid); color: var(--rose); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--rose-dark); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-dropdown-menu a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: -2px;
}

/* === FOOTER === */
.site-footer {
  background: var(--cream); border-top: 1px solid var(--sand);
  padding: 22px 48px; display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--muted);
}
.site-footer a { color: var(--muted); transition: color .2s; }
.site-footer a:hover { color: var(--rose); }
.site-footer a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-credit { opacity: .8; }
.site-credit a { text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }

/* === MOBILE === */
@media (max-width: 768px) {
  /* Nav layout: Logo links | Anfragen mitte | Burger rechts */
  .site-nav { padding: 14px 20px; }
  .nav-logo-name { white-space: nowrap; font-size: 18px; }
  .site-nav .btn-primary { order: 2; font-size: 11px !important; padding: 5px 10px !important; letter-spacing: 0 !important; white-space: nowrap; width: auto !important; }
  .hamburger { display: flex; order: 3; }

  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--sand); padding: 8px 0; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 20px; text-transform: none; font-size: 14px; display: block; }
  /* Leistungen submenu inline in mobile nav */
  .nav-dropdown-menu {
    display: none;
    position: static !important; transform: none !important;
    background: var(--cream-mid) !important; border: none !important;
    box-shadow: none !important; border-radius: 0 !important;
    padding: 0 !important; min-width: 0 !important;
  }
  .nav-links.open .nav-dropdown:hover .nav-dropdown-menu,
  .nav-links.open .nav-dropdown-menu.open { display: block; }
  .nav-dropdown-menu a { padding: 10px 20px 10px 32px !important; font-size: 13px !important; border-left: 2px solid var(--rose-light); color: var(--muted) !important; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
  .info-strip { flex-direction: column; padding: 16px 20px; gap: 0; }
  .info-strip > div { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.2); padding: 10px 16px; width: 100%; justify-content: flex-start; }
  .info-strip > div:last-child { border-bottom: none; }
  .hebammenhilfe-section { grid-template-columns: 1fr !important; gap: 24px !important; padding: 36px 20px !important; }
  .kontakt-cta { padding: 48px 20px !important; }
  .kontakt-cta-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* === SECTION UTILITY === */
.section { padding: 70px 48px; }
@media (max-width: 640px) { .section { padding: 40px 20px; } }

/* === GRID HELPERS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; }

/* === RESPONSIVE GRID HELPERS === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-badge { display: none; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* Responsive grid for 4-column card layout */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .cards-4 { grid-template-columns: 1fr !important; }
}

/* Focus-visible for card links (service cards are <a> elements) */
a.card:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

/* Responsive grid for 3-column Netzwerk layout */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .cards-3 { grid-template-columns: 1fr !important; }
}

.card a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Focus-visible for plain <a> links in dark sections */
section a:not([class]):focus-visible {
  outline: 2px solid var(--rose-light);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Subpage 2-column grid → single column on mobile */
@media (max-width: 768px) {
  .subpage-2col { grid-template-columns: 1fr !important; gap: 24px !important; }
  main { padding: 40px 20px !important; }
}

/* Form inputs focus-visible */
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 0;
  border-color: var(--rose) !important;
}

/* === MOBILE FEINSCHLIFF === */
@media (max-width: 640px) {
  /* Buttons full-width */
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* Hero */
  .hero-grid { min-height: auto; }
  [style*="padding:80px 52px"] { padding: 44px 36px !important; }
  [style*="min-height:680px"]  { min-height: 420px !important; }
  [style*="min-height:680px"] img { object-position: center 40%; }

  /* Über-mich section */
  [style*="grid-template-columns:1fr 1.3fr"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="display:flex;gap:28px;margin-bottom:28px"] { flex-wrap: wrap; row-gap: 16px; }
  [style*="padding:70px 52px"] { padding: 40px 20px !important; }

  /* All major section paddings */
  [style*="padding:80px 48px"] { padding: 44px 20px !important; }
  [style*="padding:70px 48px"] { padding: 40px 20px !important; }
  [style*="padding:60px 48px"] { padding: 36px 20px !important; }
  [style*="padding:44px 48px"] { padding: 32px 20px !important; }
  [style*="padding:60px 48px 50px"] { padding: 36px 20px 32px !important; }

  /* Kontakt form card */
  [style*="padding:28px 32px"] { padding: 22px 18px !important; }

  /* "Ulrike Bassenge" + Zeilen darunter im Hero: kompakter, damit sie aufs Handy passen */
  .hero-grid [style*="margin-bottom:18px"] > div { font-size: 26px !important; }
  .hero-grid [style*="margin-bottom:18px"] .eyebrow { font-size: 10px; letter-spacing: 0.12em; align-items: flex-start; }
  .hero-grid [style*="margin-bottom:18px"] .eyebrow::before { flex-shrink: 0; margin-top: 0.6em; }
  /* Trust-Badges im Hero ausblenden */
  .trust-badge { display: none !important; }

  /* 2-column inline grids → single column */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* FAQ accordion — readable font on small screens */
  details summary { font-size: 15px !important; }
  details { padding: 16px 0 !important; }
}

/* Mein Geburtshaus: auf dem Handy Foto oben, Text darunter */
@media (max-width: 640px) {
  .geburtshaus-section { grid-template-columns: 1fr !important; }
  .geburtshaus-section > div:first-child { order: 2; padding: 40px 20px !important; }
  .geburtshaus-section > div:last-child { min-height: 320px !important; }
}
