/*
 Theme Name:        InMedicus – Astra Child
 Theme URI:         https://inmedicus.de
 Description:       Child-Theme für InMedicus – Praxis Dr. med. Fröschl. Basiert auf dem Astra Theme. Enthält das vollständige InMedicus Brand-Design-System.
 Author:            InMedicus / Praxis Dr. med. Fröschl
 Author URI:        https://inmedicus.de
 Template:          astra
 Version:           1.0.0
 License:           Proprietary
 Text Domain:       inmedicus-child
*/

/* =============================================================================
   ASTRA OVERRIDES – Praxis-spezifische Anpassungen
   Diese Regeln überschreiben Astra-Defaults und passen Standard-WordPress-
   Elemente (Header, Footer, Buttons, Links) an die InMedicus Brand an.
   ============================================================================= */

/* Astra: Standard-Schriftarten überschreiben */
body,
.ast-single-post .entry-content,
.entry-summary,
.comment-content {
    font-family: 'Source Sans 3', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary, #1F2A24);
}

/* Astra: Überschriften */
h1, h2, h3, h4, h5, h6,
.ast-blog-single-element .entry-title,
.ast-woocommerce-container .woocommerce-page h1 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.15;
}

/* =============================================================================
   ASTRA NAVIGATION – kompatibel mit Astra 3.x UND 4.x+ Header Builder
   Breite Selektoren + !important wegen Astra-Spezifität
   ============================================================================= */

/* Navigation sichtbar stellen – alle Astra Header-Varianten */
#masthead .main-header-menu .menu-item > a,
#masthead .main-header-menu .menu-item > .menu-link,
#ast-desktop-header .menu-item > a,
#ast-desktop-header .menu-item > .menu-link,
.ast-primary-header-bar .menu-item > a,
.ast-primary-header-bar .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > a,
.ast-builder-menu-1 .menu-item > .menu-link,
.ast-builder-menu-2 .menu-item > a,
.ast-builder-menu-2 .menu-item > .menu-link,
.main-navigation .menu-item > a,
.main-navigation .menu-item > .menu-link,
.main-header-menu .menu-item > a,
.main-header-menu .menu-item > .menu-link {
    font-family: 'Josefin Sans', Arial, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #1F2A24 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Hover + aktiver Menüpunkt */
#masthead .main-header-menu .menu-item > a:hover,
#masthead .main-header-menu .current-menu-item > a,
#ast-desktop-header .menu-item > a:hover,
#ast-desktop-header .current-menu-item > a,
.ast-primary-header-bar .menu-item > a:hover,
.ast-primary-header-bar .current-menu-item > a,
.ast-builder-menu-1 .menu-item > a:hover,
.ast-builder-menu-1 .current-menu-item > a,
.main-navigation .menu-item > a:hover,
.main-navigation .current-menu-item > a,
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: #4F6B5A !important;
}

/* Unterline-Hover-Effekt (von Mitte nach außen) */
#ast-desktop-header .menu-item > a,
.ast-primary-header-bar .menu-item > a,
.main-navigation .menu-item > a,
.main-header-menu .menu-item > a {
    position: relative;
    text-decoration: none !important;
}

#ast-desktop-header .menu-item > a::after,
.ast-primary-header-bar .menu-item > a::after,
.main-navigation .menu-item > a::after,
.main-header-menu .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 1.5px;
    background: #4F6B5A;
    transition: left 0.2s ease, right 0.2s ease;
}

#ast-desktop-header .menu-item > a:hover::after,
.ast-primary-header-bar .menu-item > a:hover::after,
.main-navigation .menu-item > a:hover::after,
.main-header-menu .menu-item > a:hover::after {
    left: 0;
    right: 0;
}

/* Astra Header-Hintergrund: Off-White, nicht transparent */
#masthead,
.main-header-bar,
.ast-primary-header-bar,
#ast-desktop-header .ast-builder-grid-row-container {
    background-color: rgba(253, 252, 249, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Mobile Hamburger-Menü sichtbar */
.ast-mobile-header-wrap .ast-mobile-header-bar,
.site-header-mobile-bar-wrap {
    background-color: #FDFCF9 !important;
}

.ast-mobile-header-wrap .menu-item > a,
.ast-mobile-header-wrap .menu-item > .menu-link,
.main-header-bar-navigation .menu-item > a {
    color: #1F2A24 !important;
    font-family: 'Josefin Sans', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

/* Astra: Primär-Button */
.ast-button-wrap .ast-btn,
.menu-item .ast-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
    font-family: 'Josefin Sans', Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background-color: #4F6B5A;
    color: #FFFFFF;
    border-radius: 8px;
    border: 1.5px solid #4F6B5A;
    padding: 0.875rem 1.875rem;
    transition: background 0.15s ease, transform 0.15s ease;
}

.ast-button-wrap .ast-btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #3d5446;
    border-color: #3d5446;
    transform: translateY(-1px);
}

/* Astra: Link-Farbe global */
a { color: #4F6B5A; }
a:hover { color: #8FAE9A; }

/* Astra: Trennlinien + Ränder */
hr,
.ast-seprator,
.wp-block-separator {
    border-color: #E8E5DE;
}

/* Astra: Site-Hintergrund */
body,
.ast-site-content-wrap {
    background-color: #FDFCF9;
}

/* Astra: Content-Bereich max-width */
.ast-container,
.ast-content-layout-default .ast-container {
    max-width: 1280px;
}

/* Astra Footer */
.site-footer {
    background-color: #1F2A24;
    color: rgba(253, 252, 249, 0.75);
}

.site-footer a {
    color: rgba(253, 252, 249, 0.65);
}

.site-footer a:hover {
    color: #8FAE9A;
}

/* Astra: Gutenberg Block-Farben registrieren */
.has-deep-olive-color         { color: #4F6B5A; }
.has-deep-olive-background-color { background-color: #4F6B5A; }
.has-sage-color               { color: #8FAE9A; }
.has-sage-background-color    { background-color: #8FAE9A; }
.has-ink-color                { color: #1F2A24; }
.has-ink-background-color     { background-color: #1F2A24; }
.has-cream-color              { color: #F7F4EE; }
.has-cream-background-color   { background-color: #F7F4EE; }
.has-oak-color                { color: #B07D45; }
.has-oak-background-color     { background-color: #B07D45; }


/* =============================================================================
   INMEDICUS BRAND DESIGN SYSTEM (aus styles.css)
   ============================================================================= */


/* =============================================================================
   1. CSS Custom Properties – Brand Colors & Tokens
   ============================================================================= */
:root {
  /* Brand Colors */
  --color-sage:        #8FAE9A;
  --color-deep-olive:  #4F6B5A;
  --color-ink:         #1F2A24;
  --color-oak:         #B07D45;
  --color-cream:       #F7F4EE;
  --color-off-white:   #FDFCF9;
  --color-light-gray:  #E8E5DE;
  --color-mid-gray:    #9A9990;
  --color-white:       #FFFFFF;

  /* Semantic Tokens – Light Mode */
  --bg-primary:        var(--color-off-white);
  --bg-section:        var(--color-cream);
  --bg-dark:           var(--color-ink);
  --bg-card:           var(--color-white);
  --text-primary:      var(--color-ink);
  --text-secondary:    var(--color-mid-gray);
  --text-on-dark:      var(--color-off-white);
  --border-color:      var(--color-light-gray);
  --nav-bg:            transparent;
  --nav-bg-scrolled:   rgba(253, 252, 249, 0.88);

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-ui:        'Josefin Sans', Arial, sans-serif;
  --font-body:      'Source Sans 3', Arial, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;
  --space-3xl:  8rem;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(31,42,36,.06), 0 1px 2px rgba(31,42,36,.04);
  --shadow-md:   0 4px 16px rgba(31,42,36,.08), 0 2px 6px rgba(31,42,36,.05);
  --shadow-lg:   0 10px 40px rgba(31,42,36,.10), 0 4px 12px rgba(31,42,36,.06);
  --shadow-xl:   0 20px 60px rgba(31,42,36,.14);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-reveal: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width: 1280px;
  --nav-height: 80px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary:      #111a14;
  --bg-section:      #19241d;
  --bg-dark:         #0d1410;
  --bg-card:         #1e2d24;
  --text-primary:    #e8ede9;
  --text-secondary:  #7a9282;
  --text-on-dark:    #e8ede9;
  --border-color:    #2a3d30;
  --nav-bg-scrolled: rgba(17, 26, 20, 0.92);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   2. Reset & Base
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* =============================================================================
   3. Typography Scale
   ============================================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.6rem); }
h4 { font-size: 1.1rem; }

.display-xl { font-size: clamp(3rem, 6vw + 1rem, 5.5rem); line-height: 1.05; }
.display-lg { font-size: clamp(2.4rem, 4vw + 1rem, 4rem); }

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-sage);
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw + 0.5rem, 1.8rem);
  line-height: 1.4;
  color: var(--color-deep-olive);
}

.label {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

p { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.7; }
p.lead { font-size: 1.175rem; color: var(--text-primary); }

/* =============================================================================
   4. Layout Utilities
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--cream { background: var(--bg-section); }
.section--dark  { background: var(--bg-dark); }
.section--olive { background: var(--color-deep-olive); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* =============================================================================
   5. Navigation
   ============================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              height var(--transition-base);
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(31,42,36,.08), var(--shadow-sm);
  height: 64px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav__logo img {
  height: 44px;
  width: auto;
  transition: height var(--transition-base);
}
.nav.scrolled .nav__logo img { height: 32px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1.5px;
  background: var(--color-deep-olive);
  transition: left var(--transition-base), right var(--transition-base);
}
.nav__link:hover::after,
.nav__link.active::after { left: 0.75rem; right: 0.75rem; }
.nav__link:hover { color: var(--color-deep-olive); }
.nav__link.active { color: var(--color-deep-olive); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.theme-toggle:hover { background: var(--bg-section); color: var(--text-primary); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-sun { display: none; }

/* Hamburger */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  color: var(--text-primary);
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Drawer */
.nav__drawer {
  position: fixed;
  top: 0; right: -100%; bottom: 0;
  width: min(360px, 88vw);
  background: var(--color-deep-olive);
  z-index: 999;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.nav__drawer.open { right: 0; }

.nav__drawer-link {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.nav__drawer-link:hover { color: white; padding-left: 1.5rem; }

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.nav__overlay.open { opacity: 1; pointer-events: all; }

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 767px) {
  .nav__cta { display: none; }
}

/* =============================================================================
   6. Buttons
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              transform var(--transition-fast),
              box-shadow var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-deep-olive);
  color: white;
  border-color: var(--color-deep-olive);
}
.btn--primary:hover {
  background: #3d5446;
  border-color: #3d5446;
}

.btn--ghost {
  background: transparent;
  color: var(--color-deep-olive);
  border-color: var(--color-sage);
}
.btn--ghost:hover {
  background: var(--color-sage);
  color: white;
  border-color: var(--color-sage);
}

.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
}

.btn--white {
  background: white;
  color: var(--color-ink);
  border-color: white;
}
.btn--white:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
}

.btn--danger {
  background: #C0392B;
  color: white;
  border-color: #C0392B;
}
.btn--danger:hover { background: #a93226; border-color: #a93226; }

.btn--lg { padding: 1.125rem 2.5rem; font-size: 0.9rem; }
.btn--sm { padding: 0.625rem 1.25rem; font-size: 0.78rem; }
.btn--full { width: 100%; justify-content: center; }

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Pulse for hero CTA */
@keyframes subtle-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,107,90,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(79,107,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,107,90,0); }
}
.btn--pulse { animation: subtle-pulse 2s 1.5s ease-out 1; }

/* =============================================================================
   7. Cards
   ============================================================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-light-gray);
}

.card__icon {
  width: 52px; height: 52px;
  margin-bottom: var(--space-md);
  transition: transform var(--transition-fast);
}
.card:hover .card__icon { transform: scale(1.1); }

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-olive);
  transition: gap var(--transition-fast);
}
.card__link:hover { gap: 0.625rem; }
.card__link svg { width: 14px; height: 14px; }

/* =============================================================================
   8. Section Headers
   ============================================================================= */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-header--center { text-align: center; }
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; }
.section-header--center p { margin: 0 auto; }

/* =============================================================================
   9. Hero
   ============================================================================= */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 60fr 40fr;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero__content {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: 680px;
}

.hero__eyebrow {
  opacity: 0;
  animation: slideUp 0.6s 0.1s ease-out forwards;
  margin-bottom: 1.25rem;
}

.hero__headline {
  overflow: hidden;
}
.hero__headline h1 {
  opacity: 0;
  animation: slideUp 0.8s 0.25s ease-out forwards;
  margin-bottom: 1.25rem;
}

.hero__subline {
  opacity: 0;
  animation: fadeIn 0.6s 0.55s ease-out forwards;
  margin-bottom: var(--space-lg);
  font-size: 1.125rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: slideUp 0.6s 0.7s ease-out forwards;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  opacity: 0;
  animation: fadeIn 0.6s 0.9s ease-out forwards;
}

.trust-badge {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep-olive);
  background: rgba(143,174,154,0.12);
  border: 1px solid rgba(143,174,154,0.3);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.875rem;
}

.hero__visual {
  position: relative;
  height: 100%;
  min-height: 600px;
  overflow: hidden;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-cream) 0%, rgba(143,174,154,0.15) 100%);
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #e8f0eb 0%, #d4e3d9 40%, #c2d4c9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__signet {
  width: min(320px, 80%);
  opacity: 0;
  animation: fadeInScale 1.2s 0.4s cubic-bezier(0.16,1,0.3,1) forwards;
}

.hero__organic-shape {
  position: absolute;
  top: -10%; right: -15%;
  width: 70%; height: 80%;
  background: radial-gradient(ellipse, rgba(143,174,154,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero__content { max-width: none; padding: 6rem 1.5rem 3rem; }
  .hero__visual { min-height: 340px; height: 340px; }
}
@media (max-width: 767px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .hero__visual { min-height: 260px; height: 260px; }
}

/* =============================================================================
   10. Service Grid (Bento)
   ============================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   11. Philosophy / Values Section
   ============================================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.value-item__icon {
  width: 48px; height: 48px;
  padding: 10px;
  background: rgba(143,174,154,0.12);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.value-item__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.value-item__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   12. Doctor Profile
   ============================================================================= */
.doctor-section .grid-2 { gap: clamp(2rem, 5vw, 5rem); }

.doctor-photo-wrap {
  position: relative;
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.doctor-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--color-cream) 0%, rgba(143,174,154,0.2) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.doctor-photo-placeholder img {
  width: 60%;
  opacity: 0.3;
}

.doctor__quote {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: var(--space-lg);
}

.doctor__quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-sage);
  border-radius: 2px;
}

.doctor__meta {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: var(--space-lg) 0;
}

.doctor__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.doctor__meta-item svg {
  width: 18px; height: 18px;
  color: var(--color-sage);
  flex-shrink: 0;
  margin-top: 2px;
}

/* =============================================================================
   13. Gallery / Image Strip
   ============================================================================= */
.gallery-strip {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--color-sage) transparent;
}

.gallery-strip::-webkit-scrollbar { height: 4px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--color-sage); border-radius: 2px; }

.gallery-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: clamp(260px, 30vw, 380px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #d5e3d9 0%, #c0d1c7 100%);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(79,107,90,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__caption {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: white;
  text-transform: uppercase;
}

/* =============================================================================
   14. Reviews / Trust Section
   ============================================================================= */
.reviews-section { position: relative; overflow: hidden; }

.reviews-section .ghost-logo {
  position: absolute;
  right: -5%; top: 50%;
  transform: translateY(-50%);
  width: 40%;
  opacity: 0.035;
  pointer-events: none;
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: var(--space-sm);
}
.star {
  width: 20px; height: 20px;
  color: var(--color-sage);
  opacity: 0;
  animation: starPop 0.3s ease-out forwards;
}
.star:nth-child(1) { animation-delay: 0.1s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.3s; }
.star:nth-child(4) { animation-delay: 0.4s; }
.star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}

.review-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: background var(--transition-base);
}
.review-card:hover { background: rgba(255,255,255,0.09); }

.review-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.025rem;
  color: rgba(253,252,249,0.88);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-card__author {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sage);
}

/* =============================================================================
   15. CTA Section
   ============================================================================= */
.cta-section {
  background: var(--color-deep-olive);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.opening-hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  margin-top: var(--space-md);
}

.oh-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.oh-row .day { font-family: var(--font-ui); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.75rem; }
.oh-row.today { color: white; }
.oh-row.today .day { color: var(--color-sage); }

@media (max-width: 767px) {
  .opening-hours { grid-template-columns: 1fr; }
  .cta-section .grid-2 { gap: 2.5rem; }
}

/* =============================================================================
   16. Page Hero (Interior pages)
   ============================================================================= */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border-color);
}

.page-hero .eyebrow { margin-bottom: 0.875rem; }
.page-hero h1 { margin-bottom: 1.125rem; max-width: 680px; }
.page-hero p.lead { max-width: 560px; }

/* =============================================================================
   17. Timeline
   ============================================================================= */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px; top: 0;
  width: 2px;
  height: 0;
  background: var(--color-sage);
  transition: height 1.5s ease-out;
}

.timeline.revealed::before { height: 100%; }

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-sage);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--color-sage);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.2s;
}
.timeline-item.visible::before { transform: scale(1); }

.timeline-year {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.375rem;
}

.timeline-item h3 { margin-bottom: 0.5rem; }

/* =============================================================================
   18. Forms
   ============================================================================= */
.form-group {
  position: relative;
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-deep-olive);
  box-shadow: 0 0 0 3px rgba(79,107,90,0.12);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9990' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--color-deep-olive);
}
.form-checkbox span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =============================================================================
   19. Alert / Info Boxes
   ============================================================================= */
.alert {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 3px solid;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.alert--danger {
  background: rgba(192,57,43,0.08);
  border-color: #C0392B;
  color: #8B1A0F;
}
[data-theme="dark"] .alert--danger { color: #f08070; background: rgba(192,57,43,0.15); }
.alert--danger svg { color: #C0392B; }

.alert--info {
  background: rgba(79,107,90,0.08);
  border-color: var(--color-deep-olive);
  color: var(--color-deep-olive);
}
.alert--info svg { color: var(--color-deep-olive); }

.alert__title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; color: inherit; }
.alert__text { font-size: 0.875rem; line-height: 1.5; opacity: 0.85; }

/* =============================================================================
   20. Process Steps
   ============================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  counter-reset: steps;
}

.step {
  position: relative;
  counter-increment: steps;
  padding-top: 3.5rem;
}

.step::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(143,174,154,0.25);
  line-height: 1;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; }

/* =============================================================================
   21. Contact Info
   ============================================================================= */
.contact-info { display: flex; flex-direction: column; gap: var(--space-md); }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(143,174,154,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-deep-olive);
}
.contact-item__icon img { width: 22px; height: 22px; }

.contact-item__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 1.0625rem;
  color: var(--text-primary);
  font-weight: 400;
}
.contact-item__value a:hover { color: var(--color-deep-olive); }

/* =============================================================================
   22. Footer
   ============================================================================= */
.footer {
  background: var(--color-ink);
  color: rgba(253,252,249,0.75);
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__logo { height: 36px; width: auto; margin-bottom: var(--space-md); }

.footer__tagline { font-size: 0.9rem; line-height: 1.65; color: rgba(253,252,249,0.6); }

.footer__heading {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
}

.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link {
  font-size: 0.9rem;
  color: rgba(253,252,249,0.65);
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--color-sage); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(253,252,249,0.45);
}

@media (max-width: 1023px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}
@media (max-width: 599px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* =============================================================================
   23. Cookie Banner
   ============================================================================= */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  max-width: 560px;
  background: var(--color-ink);
  color: rgba(253,252,249,0.85);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateY(120%);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner.hide { transform: translateY(120%); }

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
}
.cookie-banner__text { font-size: 0.85rem; line-height: 1.55; margin-bottom: 1.25rem; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* =============================================================================
   24. Floating CTA (Mobile)
   ============================================================================= */
.floating-cta {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 990;
  display: none;
}

@media (max-width: 767px) {
  .floating-cta { display: block; }
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-deep-olive);
  color: white;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.floating-cta a:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.floating-cta svg { width: 16px; height: 16px; }

/* =============================================================================
   25. Scroll Reveal Animations
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* =============================================================================
   26. Utility Animations
   ============================================================================= */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.005); }
}

/* =============================================================================
   27. Divider / Ornament
   ============================================================================= */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-xl) 0;
}

.section-ornament {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.section-ornament::before,
.section-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* =============================================================================
   28. Badge / Tag
   ============================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}
.badge--sage { background: rgba(143,174,154,.15); color: var(--color-deep-olive); border: 1px solid rgba(143,174,154,.35); }
.badge--oak  { background: rgba(176,125,69,.1); color: var(--color-oak); border: 1px solid rgba(176,125,69,.25); }

/* =============================================================================
   29. Skip Link (Accessibility)
   ============================================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-deep-olive);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 0; }

/* =============================================================================
   30. Notfall Emergency Styling
   ============================================================================= */
.emergency-card {
  background: #f8f0ef;
  border: 2px solid #C0392B;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
[data-theme="dark"] .emergency-card { background: rgba(192,57,43,0.1); }

.emergency-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #C0392B;
  line-height: 1;
  letter-spacing: -0.02em;
}

.emergency-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.375rem;
}

/* =============================================================================
   31. Map Placeholder
   ============================================================================= */
.map-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #d5e3d9 0%, #c0d1c7 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color-deep-olive);
  border: 2px dashed rgba(79,107,90,0.3);
  cursor: pointer;
  transition: background var(--transition-base);
}
.map-placeholder:hover { background: linear-gradient(135deg, #c8dcd0 0%, #b2c9bf 100%); }
.map-placeholder svg { width: 40px; height: 40px; opacity: 0.6; }
.map-placeholder p { font-size: 0.875rem; color: var(--color-deep-olive); opacity: 0.7; text-align: center; }

/* =============================================================================
   32. Misc Helpers
   ============================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Page Transition Overlay */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-off-white);
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.page-overlay.fade-in  { opacity: 1; pointer-events: all; }
.page-overlay.fade-out { opacity: 0; }

/* Noise Texture on Cream */
.section--cream {
  position: relative;
}
.section--cream::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
}


/* =============================================================================
   33. RESPONSIVE FIX – Mobile & Tablet
   Ziel: Alle Inline-Grid-Layouts der Gutenberg Custom HTML Blocks
   stacken auf Mobile. CSS-Attributselektoren überschreiben Inline-Styles.
   ============================================================================= */

/* ── Mobile Header Fix (Astra 4.x+ mobile classes) ── */
#ast-mobile-header,
.ast-mobile-header-wrap,
.ast-primary-mobile-bar,
.site-header-mobile-bar-wrap,
.ast-mobile-header-wrap .main-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
    background-color: #FDFCF9 !important;
    border-bottom: 1px solid #E8E5DE !important;
}

#ast-mobile-header a,
.ast-mobile-header-wrap a,
.ast-primary-mobile-bar a,
.site-header-mobile-bar-wrap a {
    color: #1F2A24 !important;
}

/* Hamburger-Icon Farbe */
.ast-mobile-menu-buttons .menu-toggle,
.menu-toggle,
button.menu-toggle,
.ast-button-wrap button.menu-toggle {
    color: #1F2A24 !important;
    background: transparent !important;
}
.menu-toggle span,
.ast-mobile-menu-buttons span {
    background-color: #1F2A24 !important;
}

/* Mobiles Fly-out Menü */
.ast-mobile-header-wrap .main-navigation,
.ast-mobile-header-wrap .main-navigation ul,
.main-navigation-container {
    background-color: #FDFCF9 !important;
}
.ast-mobile-header-wrap .main-navigation a,
.main-navigation-container a {
    color: #1F2A24 !important;
    font-family: 'Josefin Sans', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* ── MOBILE: alle Grid-Layouts stacken (max 767px) ── */
@media (max-width: 767px) {

    /* ─ Hero: 60/40-Split → Stack ─ */
    section.hero {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 1.5rem 0 !important;
    }
    /* Rechte Spalte (visuell / Logo-BG) auf Mobile ausblenden */
    section.hero > div:last-child {
        display: none !important;
    }
    section.hero > div:first-child {
        padding: 2rem 1.25rem 2.5rem !important;
    }

    /* ─ Alle anderen Grid-Container stacken ─ */
    /* Trifft alle Inline-Grid-Layouts in den Gutenberg-Blocks */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* ─ Karten-Grids: Mindestbreite sichern ─ */
    [style*="grid-template-columns"] > * {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* ─ Öffnungszeiten-Grid: 2 Spalten bleiben OK → override zurücknehmen ─ */
    [style*="grid-template-columns:1fr 1fr"][style*="gap:0.5rem"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* ─ Sektions-Padding auf Mobile reduzieren ─ */
    section[style*="padding"] {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* ─ Container-Breite ─ */
    [style*="max-width:1280px"],
    [style*="max-width: 1280px"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* ─ Typografie auf Mobile anpassen ─ */
    .hero h1,
    section.hero h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
        line-height: 1.1 !important;
    }

    /* ─ Buttons volle Breite auf Mobile ─ */
    section.hero a[style*="background"] {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ─ Overflow verhindern ─ */
    section, div[style*="overflow:hidden"] {
        overflow-x: hidden !important;
    }

    /* Horizontalen Scroll global verhindern */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* ── TABLET: 768–1023px ── */
@media (min-width: 768px) and (max-width: 1023px) {

    /* ─ 3-Spalten → 2-Spalten ─ */
    [style*="repeat(3,1fr)"],
    [style*="repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ─ 4-Spalten → 2-Spalten ─ */
    [style*="repeat(4,1fr)"],
    [style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ─ 60/40 Hero → Stack ─ */
    section.hero {
        grid-template-columns: 1fr !important;
    }
    section.hero > div:last-child {
        display: none !important;
    }

    /* ─ Sektions-Padding auf Tablet ─ */
    [style*="max-width:1280px"],
    [style*="max-width: 1280px"] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

