/*
 * ============================================================================
 * Ordination Dr. Rathmayr — Website-spezifisches Stylesheet (website.css)
 * ============================================================================
 *
 * NIBBLY-ARCHITEKTUR
 * ------------------
 * Diese Datei enthält ALLE site-spezifischen Stile für ordination-rathmayr.at.
 * Sie wird in includes/header.php NACH den Nibbly-Core-Stylesheets geladen,
 * d.h. Site-Stile dürfen Core-Defaults überschreiben:
 *
 *   1. css/style.css       → Nibbly-Core (Base + Block-Renderer)
 *   2. css/components.css  → Nibbly-Core (Standard-Komponenten)
 *   3. css/website.css     → SITE-SPEZIFISCH (diese Datei)
 *
 * Beim Update von Nibbly werden style.css und components.css ersetzt.
 * Diese Datei (website.css) bleibt unangetastet.
 *
 * Inhalt dieser Datei:
 *   1) BASIS-LAYOUT (CSS-Variablen, Reset, Typografie, Container, Header,
 *      Hero-Startseite, Sektionen, Buttons, Theme, Utilities)  ← war styles.css
 *   2) SITE-KOMPONENTEN (.page-hero, .bio-section, .feature-cards, .info-box,
 *      .cta-banner, .services-list, .subpage-content-grid, .error-page, …)
 *      ← waren in components.css
 * ============================================================================
 */


/* ============================================================================
 * 1) BASIS-LAYOUT  (vormals css/styles.css)
 * ============================================================================ */

/* 
 * Ordination Dr. Rathmayr - Main Stylesheet
 * Architecture: BEM (Block Element Modifier)
 */

:root {
    /* ----------------------------------------------------------------
     * Site Design Tokens — Ordination Rathmayr
     * ---------------------------------------------------------------- */

    /* Brand Colors */
    --color-primary: #265f3b;          /* Dark Green */
    --color-primary-light: #a4c641;    /* Bright Lime Green */
    --color-primary-hover: #193f27;    /* Darkest Green */
    --color-secondary: #d5e5b9;        /* Light Pastel Green */
    --color-bg: #FAFAF6;
    --color-bg-alt: #F2F0E8;
    --color-text: #3D3D3D;
    --color-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout Tokens */
    --grid-max-width: 1440px;
    --grid-gutter: clamp(18px, 5vw, 64px);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 32px;
    --box-shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.03);
    --box-shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.06);
    --transition-spring: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* ----------------------------------------------------------------
     * Nibbly Core Overrides
     *
     * Diese Variablen werden in css/style.css (Nibbly-Core) definiert
     * und von Core-Selektoren wie .content-inner h1, .block-heading,
     * .feature-grid usw. verwendet. Hier biegen wir sie auf die
     * Site-Farben um, damit alle vom Core gerenderten Block-Renderer
     * (Standardseiten wie Impressum/Datenschutz) automatisch im
     * Ordinations-Look erscheinen — ohne dass wir den Core patchen.
     *
     * Bitte nicht in style.css ändern! Updates kämen sonst kollidieren.
     * ---------------------------------------------------------------- */

    /* Primary-Skala (Core nutzt -dark, -dark-muted, -really-dark, -btn) */
    --color-primary-dark: var(--color-primary-hover);
    --color-primary-dark-muted: var(--color-primary);
    --color-primary-really-dark: #0d2515;
    --color-primary-btn: var(--color-primary);
    --color-primary-btn-hover: var(--color-primary-hover);

    /* Hintergrund- und Textvarianten */
    --color-background: var(--color-bg);
    --color-background-card: var(--color-white);
    --color-background-section: var(--color-bg-alt);
    --color-background-dark: var(--color-bg-alt);
    --color-background-darker: #E6E2D2;
    --color-text-secondary: #6B6B6B;
    --color-bg-light: var(--color-bg);

    /* Borders */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.05);

    /* Container/Layout (Core erwartet --container-max etc.) */
    --container-max: var(--grid-max-width);
    --container-standard: 1200px;
    --container-narrow: 800px;
}

/* ----------------------------------------------------------------
 * Heading-Hierarchie für Standard-Pages (.content-inner)
 *
 * Die Site setzt globale h1/h2/h3-Größen, die für Custom-Layouts
 * passen. Innerhalb der vom Nibbly-Core gerenderten Standard-Pages
 * (.content-inner — z.B. Impressum, Datenschutz) ziehen wir die
 * Skala auf eine kompakte, lesbare Hierarchie zurück. Sowohl Größen
 * als auch Abstände werden hier vollständig gesetzt: Core liefert
 * Margins nur für h1 und h2, h3+h4 fielen sonst auf das globale
 * Reset (margin: 0) zurück — d.h. ohne Abstand zu Nachbar-Absätzen.
 * ---------------------------------------------------------------- */
.content-inner h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--spacing-sm);
}
.content-inner h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.content-inner h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.25rem);
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}
.content-inner h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}
.content-inner p,
.content-inner ul,
.content-inner ol {
    margin-bottom: 1rem;
}
.content-inner ul,
.content-inner ol {
    padding-left: 1.5rem;
}
.content-inner ul { list-style: disc; }
.content-inner ol { list-style: decimal; }
.content-inner li::marker { color: var(--color-primary); }
.content-inner li + li {
    margin-top: 0.35rem;
}

/* Reset & Basics */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Grid & Layout */
.container {
    width: 100%;
    max-width: var(--grid-max-width);
    margin: 0 auto;
    padding: 0 var(--grid-gutter);
}

.page-subpage .main-content:has(> .page-hero:first-child),
.page-subpage .main-content:has(> .subpage-hero:first-child) {
    padding-top: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-serif {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.1;
    font-weight: 400;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(26px, 4vw, 42px);
}

h3 {
    font-size: clamp(20px, 2.5vw, 28px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

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

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: rgba(74, 90, 36, 0.05);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #E8E5D8;
    color: var(--color-primary);
    border: 1.5px solid rgba(38, 95, 59, 0.25);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    border-radius: 99px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    padding: 0 var(--grid-gutter);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.is-hidden {
    transform: translateY(-120%);
    pointer-events: none;
}

/* Admin-Bar (40px hoch, fixed top:0) verschiebt den schwebenden Header
   nach unten, damit er nicht von der Bar überdeckt wird. */
body.has-admin-bar .header {
    top: 64px;
}

@media (max-width: 768px) {
    body.has-admin-bar .header {
        top: 52px;
    }
}

.header.is-scrolled .header__inner {
    padding: 12px 32px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-white);
    padding: 16px 32px;
    border-radius: 99px;
    box-shadow: var(--box-shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 1400px;
    margin: 0 auto;
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .header {
        top: 12px;
    }

    .header__inner {
        padding: 8px 26px;
        border-radius: 99px;
    }

    .hidden-mobile {
        display: none !important;
    }
}

.header__logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.header__logo-link:hover {
    opacity: 0.75;
}

.header__logo-img {
    height: 80px;
    width: auto;
}

@media (max-width: 600px) {
    .header__logo-img {
        height: 60px;
    }
}

.nav__list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav__link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 99px;
}

.nav__link:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

/* Dropdown */
.nav__item--has-dropdown {
    position: relative;
    padding: 8px 0;
}

.nav__icon-dropdown {
    transition: transform 0.3s ease;
}

.nav__item--has-dropdown:hover .nav__icon-dropdown {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform-origin: top center;
    transform: translateX(-50%) translateY(12px) scale(0.96);
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    filter: blur(4px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.5s;
    min-width: 600px;
    pointer-events: none;
}

.nav__item--has-dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    filter: blur(0);
    transform: translateX(-50%) translateY(16px) scale(1);
    transition-delay: 0s;
}

.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav__dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.nav__dropdown-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav__dropdown-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    font-weight: 600;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
}

.nav__dropdown-link {
    font-size: 14px;
    color: var(--color-text);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    padding: 6px 14px;
    margin-left: -14px;
    border-radius: 99px;
    white-space: nowrap;
}

.nav__dropdown-link:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
}


.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
    padding: 8px 16px;
    border-radius: 99px;
    transition: var(--transition-fast);
}

.header__phone:hover {
    background-color: var(--color-primary-light);
    color: white;
}

/* Hamburger (Mobile) */
.header__menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 24px;
    margin-right: 8px;
    position: relative;
    z-index: 101;
    padding: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 24px;
    position: relative;
}

.hamburger__line {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.2s ease;
}

.hamburger__line:nth-child(1) { top: 2px; }
.hamburger__line:nth-child(2) { top: 11px; }
.hamburger__line:nth-child(3) { top: 20px; }

/* Hamburger → X animation */
[aria-expanded="true"] .hamburger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

[aria-expanded="true"] .hamburger__line:nth-child(2) {
    opacity: 0;
}

[aria-expanded="true"] .hamburger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-bg);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 99;
        padding-top: calc(var(--header-height, 80px) + 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header__nav.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav__list {
        flex-direction: column;
        font-size: 1.5rem;
        padding: 0 24px;
        gap: 4px;
        align-items: flex-start;
    }

    .nav__item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        width: 100%;
    }

    .nav__item:last-child {
        border-bottom: none;
    }

    .nav__link,
    .nav__link--dropdown {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 14px 16px;
        font-size: 1.35rem;
        border-radius: 0;
        text-align: left;
    }

    .nav__link:hover,
    .nav__link--dropdown:hover {
        background-color: transparent;
        color: var(--color-primary);
    }

    .nav__icon-dropdown {
        width: 18px;
        height: 18px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    /* Mobile Dropdown */
    .nav__item--has-dropdown {
        position: relative;
    }

    /* Reset all desktop dropdown styles */
    .nav__dropdown {
        position: static;
        transform: none !important;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0 0 12px 0;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        filter: none !important;
        pointer-events: auto;
        display: none;
        left: auto;
        top: auto;
        transition: none;
        transition-delay: 0s;
    }

    /* Override desktop hover transform */
    .nav__item--has-dropdown:hover .nav__dropdown {
        transform: none !important;
        filter: none !important;
    }

    .nav__item--has-dropdown.is-dropdown-open .nav__dropdown {
        display: block;
    }

    .nav__item--has-dropdown.is-dropdown-open .nav__icon-dropdown {
        transform: rotate(180deg);
    }

    .nav__dropdown-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding-left: 18px;
    }

    .nav__dropdown-col {
        gap: 4px;
        padding-left: 0;
    }

    .nav__dropdown-title {
        font-size: 0.7rem;
        margin-bottom: 4px;
        padding-bottom: 6px;
        padding-left: 0;
    }

    .nav__dropdown-link {
        font-size: 1rem;
        padding: 8px 0;
        margin-left: 0;
        border-radius: 0;
    }

    .nav__dropdown-link:hover {
        background-color: transparent;
        color: var(--color-primary);
    }

    .header__menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 165px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 246, 0.82);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero { min-height: 80vh; padding-top: 120px; }
}

.hero__title { margin-bottom: 24px; }
.hero__subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .hero__actions .btn { width: 100%; }
}

.hero__trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    font-size: 14px;
    color: #666;
}
.hero__trust-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__trust-list svg { color: var(--color-primary-light); }

.hero__image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: rgba(0,0,0,0.05);
    aspect-ratio: 4/5;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Utility Classes */
.js-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: var(--transition-spring);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base Layout & Utilities */
.section {
    padding: 96px 0;
}

.bg-alt {
    background-color: var(--color-bg-alt);
}

.bg-green-light {
    background-color: color-mix(in srgb, var(--color-primary-light) 18%, var(--color-bg));
}

.mt-4 {
    margin-top: 16px;
}

.mt-8 {
    margin-top: 32px;
}

.text-sm {
    font-size: 14px;
    line-height: 1.4;
}

.opacity-70 {
    opacity: 0.7;
}

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

.section__title {
    margin-bottom: 48px;
    font-size: clamp(28px, 4vw, 36px);
}

/* Double Bezel Card Concept (High-Agency) */
.card--double-bezel {
    border-radius: 2rem;
    overflow: hidden;
    transition: var(--transition-spring);
    height: 100%;
}

.card__shell {
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px;
    /* Inner bezel margin */
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
}

.card__core {
    background-color: var(--color-white);
    padding: 32px 24px;
    border-radius: calc(2rem - 6px);
    height: 100%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition-spring);
}

.card--double-bezel:hover {
    transform: translateY(-4px);
}

.card--double-bezel:hover .card__core {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), var(--box-shadow-medium);
}

.card__icon-wrapper {
    color: var(--color-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-alt);
}

.card__title {
    margin-bottom: 12px;
    font-size: 22px;
}

.card__text {
    color: #555;
    margin-bottom: 24px;
    font-size: 15px;
    flex-grow: 1;
}

.card__link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card--double-bezel:hover .card__link {
    transform: translateX(4px);
    color: var(--color-primary-light);
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

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

/* Quote Section */
.quote {
    padding: 120px 0;
    text-align: center;
    background-color: var(--color-primary-light);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.quote::before {
    content: '„';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 280px;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.quote__inner {
    position: relative;
    z-index: 1;
}

.quote__blockquote {
    max-width: 800px;
    margin: 0 auto;
}

/* Layout & Utilities */
.quote__text {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 40px);
    color: var(--color-white);
    line-height: 1.35;
    margin: 0 auto 32px;
    max-width: 30ch;
    text-wrap: balance;
}

.quote__author {
    font-family: var(--font-body);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
}

.quote__author cite {
    font-style: normal;
}

/* About Section Background Overlay Layout */
.about--fullscreen {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
}

.about__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.02);
}

.about__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.about__content-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

@media (max-width: 768px) {
    .about__content-card { 
        padding: 32px;
    }
    .about__bg-image {
        object-fit: contain;
        object-position: center top;
        transform: scale(1.2);
        transform-origin: top;
    }
}

.about__title {
    margin-bottom: 16px;
}

.about__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.about__text {
    margin-bottom: 32px;
    color: #555;
    line-height: 1.7;
}

.badge--small {
    padding: 6px 14px;
    font-size: 11px;
    margin-bottom: 0;
    background-color: var(--color-bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Teaser / Jiaogulan Full-Screen Background */
.teaser--jiaogulan {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background-color: var(--color-bg); /* fallback */
    color: var(--color-text);
    text-align: left;
}

.teaser__bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.teaser__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.teaser__container {
    position: relative;
    z-index: 2;
}

.teaser__content-block {
    max-width: 500px;
    margin-left: 0;
}

.teaser__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-primary);
    margin-bottom: 24px;
}

.teaser__text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .teaser__bg-image {
        object-fit: contain;
        object-position: right bottom;
        transform-origin: right bottom;
        transform: scale(1.3);
    }
    .teaser--jiaogulan {
        padding: 80px 0;
    }
}





/* News Section */
.news__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.news__item {
    display: flex;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-soft);
    overflow: hidden;
    transition: var(--transition-spring);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.news__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-medium);
}

.news__accent-line {
    width: 6px;
    background-color: var(--color-primary-light);
    flex-shrink: 0;
}

.news__content {
    padding: 32px;
}

.news__date {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.news__title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
}

.news__text {
    color: #555;
    font-size: 15px;
}

/* Contact Section */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    #kontakt {
        padding-bottom: 0;
    }
}

.contact__details {
    margin-top: 70px;
}

.contact__details h3 {
    margin-bottom: 8px;
}

.contact__details .contact__note {
    margin-bottom: 20px;
}

.contact__cta {
    margin-top: 16px;
}

/* Contact Form */
.contact__form-card {
    background: var(--color-bg-alt);
    border-radius: 24px;
    padding: 40px;
}

.contact__form-card h3 {
    margin: 0 0 24px;
}

@media (max-width: 600px) {
    .contact__form-card {
        padding: 28px 22px;
        border-radius: 20px;
    }
    .contact__details {
        margin-top: 40px;
    }
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.contact-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.contact-form .form-row .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(177, 194, 69, 0.15);
}

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

.contact-form .form-actions {
    margin-top: 24px;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.form-feedback.success {
    display: block;
    background: rgba(34, 139, 34, 0.08);
    color: #1f6f1f;
}

.form-feedback.error {
    display: block;
    background: rgba(200, 40, 40, 0.08);
    color: #b22222;
}

.hours-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    margin-top: 24px;
    margin-bottom: 16px;
}

.hours-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-table td {
    text-align: right;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact__note {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.contact__link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s;
    font-size: 18px;
}

.contact__link:hover {
    color: var(--color-primary-light);
}

.contact__cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact__cancel {
    font-size: 13px;
    color: #888;
    margin-top: 16px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contact__cta {
        align-items: center;
        text-align: center;
    }
}

.map-container {
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 900px) {
    .contact__map {
        margin-left: calc(-1 * var(--grid-gutter));
        margin-right: calc(-1 * var(--grid-gutter));
    }

    .contact__map .map-container {
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
    }

    .contact__map #wien-map {
        border-radius: 0 !important;
    }
}

.map-overlay-address {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--color-white);
    padding: 16px 24px;
    z-index: 10;
    box-shadow: var(--box-shadow-medium);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-fast);
}

.map-overlay-address:hover {
    box-shadow: var(--box-shadow-large);
}

.map-overlay-address strong {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

.map-overlay-logo {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--color-white);
    padding: 10px 24px;
    border-radius: 99px;
    z-index: 10;
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 600px) {
    .map-overlay-address {
        top: auto;
        bottom: 24px;
        left: 24px;
        right: 24px;
        text-align: center;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 96px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

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

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-white);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.footer__logo:hover {
    opacity: 0.8;
}

.footer__logo-img {
    height: 75px;
    width: auto;
}

.footer__desc {
    text-wrap: balance;
}

.footer__title {
    color: var(--color-white);
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__links li {
    margin-bottom: 16px;
}

.footer__links a,
.footer__address a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.footer__links a:hover,
.footer__address a:hover {
    color: var(--color-white);
}

.footer__address {
    font-style: normal;
    line-height: 2;
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.footer__legal {
    display: flex;
    gap: 32px;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__legal a:hover {
    color: var(--color-white);
}

@media (max-width: 600px) {
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

/* Stagger Delay Utility */
.js-reveal[style*="--reveal-delay"] {
    transition-delay: var(--reveal-delay);
}

/* ========================================= */
/* SUBPAGE LAYOUT                            */
/* ========================================= */

.subpage-header {
    background-color: var(--color-bg-alt);
    padding: 160px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.subpage-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--color-bg);
    transform: skewY(-2deg);
    z-index: 1;
}

.subpage-header__container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    color: var(--color-primary-dark);
}

.page-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--color-text);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.subpage-body {
    padding-top: 40px;
    padding-bottom: 80px;
    background: var(--color-bg);
}

/* Base styling for Nibbly generated blocks in subpages */
.subpage-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.subpage-body ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.subpage-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.subpage-body h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.subpage-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-highlight {
    background: var(--color-bg-alt);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    margin: 32px 0;
}


/* ============================================================================
 * 2) SITE-KOMPONENTEN  (vormals Site-Anteile aus css/components.css)
 * ============================================================================ */

/* Components – additional component styles */

/* ========================================= */
/* PAGE HERO (fullscreen bg + glass card)    */
/* ========================================= */

.page-hero {
    position: relative;
    min-height: 85vh;
    padding: 0 var(--grid-gutter);
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    transform: scale(1.02);
}

.page-hero__container {
    position: relative;
    z-index: 2;
    padding: 165px 0 64px;
    display: flex;
    justify-content: flex-start;
}

.page-hero__card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 560px;
}

.page-hero__title {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--color-primary);
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 20px;
}

.page-hero__text {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 12px;
}

.page-hero__text:last-of-type {
    margin-bottom: 0;
}

.page-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.page-hero__badges .badge {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: color-mix(in srgb, var(--color-primary) 82%, var(--color-text));
    font-size: 11px;
    letter-spacing: 0.12em;
}

.page-hero__badges .badge + .badge::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 10px 2px 0;
    border-radius: 50%;
    background: var(--color-primary-light);
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 70vh;
        align-items: flex-end;
    }

    .page-hero__container {
        padding: 120px 0 32px;
    }

    .page-hero__card {
        padding: 32px;
        max-width: 100%;
    }

}

@media (max-width: 1024px) {
    .page-hero__bg-image {
        object-position: right center;
    }

    .page-ueber-mich .page-hero__bg-image {
        object-position: 70% center;
    }
}

/* Tinnitus page — bespoke hero adjustments */
.page-tinnitus .page-hero {
    min-height: unset;
}

.page-tinnitus .page-hero__bg-image {
    object-position: right center;
}

.page-tinnitus .page-hero__container {
    padding: 170px 0 110px;
}

/* ========================================= */
/* SUBPAGE HERO (simple, for other pages)    */
/* ========================================= */

.subpage-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.subpage-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.subpage-hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.subpage-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.08) 100%
    );
}

.subpage-hero__container {
    position: relative;
    z-index: 1;
    padding: 160px 0 56px;
}

.subpage-hero__title {
    font-size: clamp(36px, 5vw, 56px);
    color: var(--color-white);
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 16px;
}

.subpage-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.5;
}

.subpage-hero .badge {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}

/* No hero image: dark text on light background */
.subpage-hero:not(:has(.subpage-hero__bg)) {
    min-height: auto;
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__container {
    max-width: 960px;
    padding: 200px var(--grid-gutter) 56px;
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__title {
    color: var(--color-text);
}

.subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__subtitle {
    color: var(--color-text-secondary);
}

.subpage-hero:not(:has(.subpage-hero__bg)) .badge {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
    .subpage-hero {
        min-height: 320px;
    }

    .subpage-hero__container {
        padding: 120px 0 32px;
    }

    .subpage-hero:not(:has(.subpage-hero__bg)) .subpage-hero__container {
        padding: 150px var(--grid-gutter) 36px;
    }
}

/* ========================================= */
/* SECTION WITH BACKGROUND IMAGE             */
/* ========================================= */

.section-with-bg {
    position: relative;
    padding: 96px var(--grid-gutter);
    overflow: hidden;
    background-color: var(--color-bg-alt);
}

.section-with-bg__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-with-bg__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}


.section-with-bg--flipped .section-with-bg__image img {
    object-position: left center;
}

.section-with-bg__content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 820px;
    margin-left: 0;
}

.section-with-bg--flipped .section-with-bg__content {
    margin-left: auto;
    margin-right: 0;
}

#kraeutermedizin .section-with-bg__content,
#fuehrerschein .section-with-bg__content,
#nieren-yin-mangel .section-with-bg__content,
#leberfeuer .section-with-bg__content,
#behandlung .section-with-bg__content,
#regelschmerzen .section-with-bg__content,
#wechselbeschwerden .section-with-bg__content {
    background: rgba(250, 250, 246, 0.6);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--box-shadow-soft);
}

@media (max-width: 1024px) {
    .section-with-bg {
        padding: 0;
    }

    .section-with-bg__image {
        position: relative;
        height: 320px;
    }

    .section-with-bg__image img {
        object-position: center;
    }

    .section-with-bg__content {
        max-width: 100%;
        margin: 0 auto;
        padding: 64px var(--grid-gutter);
    }

    .section-with-bg--flipped .section-with-bg__content {
        margin: 0 auto;
    }

    #kraeutermedizin .section-with-bg__content,
    #fuehrerschein .section-with-bg__content,
    #nieren-yin-mangel .section-with-bg__content,
    #leberfeuer .section-with-bg__content,
    #behandlung .section-with-bg__content {
        background-image: none;
        border-radius: 0;
        box-shadow: none;
    }
}

@media (max-width: 768px) {
    .section-with-bg__image {
        height: 220px;
    }

    .section-with-bg__content {
        padding: 48px var(--grid-gutter);
    }
}

/* ========================================= */
/* SUBPAGE SECTIONS                          */
/* ========================================= */

.subpage-section {
    margin-bottom: 48px;
}

.subpage-section:last-child {
    margin-bottom: 0;
}

.subpage-section h2 {
    margin-bottom: 16px;
}

.subpage-section ul {
    list-style: none;
    padding: 0;
}

.subpage-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.subpage-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
}

.subpage-image {
    margin: 32px 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.subpage-image img {
    width: 100%;
    height: auto;
    display: block;
}

.subpage-image figcaption {
    font-size: 13px;
    color: #888;
    padding: 12px 0 0;
}

/* ========================================= */
/* CONTAINER NARROW                          */
/* ========================================= */

.container--narrow {
    max-width: 960px;
    margin: 0 auto;
}

/* ========================================= */
/* BIO SECTION (editorial centered layout)   */
/* ========================================= */

@media (min-width: 1200px) {
    .bio-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .bio-grid > .bio-section {
        min-width: 0;
    }

    .bio-grid .bio-section__inner {
        max-width: 520px;
    }
}

.bio-section__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.bio-section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 56px;
}

.bio-section__title {
    margin: 16px 0 0;
    font-size: clamp(32px, 4.5vw, 44px);
}

.bio-section__rule {
    display: block;
    width: 48px;
    height: 2px;
    background-color: var(--color-primary-light);
    border-radius: 2px;
    margin-top: 28px;
}

.bio-section__body {
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    hyphens: auto;
}

.bio-section__body p + p {
    margin-top: 1.3em;
}

.bio-section__body > p:first-child::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 5.7em;
    line-height: 0.9;
    color: var(--color-primary);
    padding: 6px 12px 0 0;
    font-weight: 400;
    margin: -4px 0 0 -7px;
}


@media (max-width: 600px) {
    .bio-section__body {
        font-size: 17px;
    }

    .bio-section__body > p:first-child::first-letter {
        font-size: 3.6em;
        padding-right: 8px;
    }
}

/* ========================================= */
/* SUBPAGE CONTENT GRID (main + sidebar)     */
/* ========================================= */

.subpage-content-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.subpage-content-grid__main {
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

.subpage-content-grid__sidebar .content-highlight {
    margin: 0;
}

#nieren-yin-mangel .subpage-content-grid {
    grid-template-columns: 1fr;
}

#nieren-yin-mangel .info-box ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 12px;
}

@media (max-width: 1024px) {
    .subpage-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================= */
/* FEATURE CARDS (icon + title + text)       */
/* ========================================= */

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-cards--compact {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.feature-cards--2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-cards--2x2 .feature-card {
    padding: 40px 32px;
    text-align: center;
}

.feature-cards--2x2 .feature-card__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--color-bg-alt), color-mix(in srgb, var(--color-primary) 12%, transparent));
}

.feature-cards--2x2 .feature-card__icon svg {
    width: 32px;
    height: 32px;
}

.feature-cards--2x2 .feature-card__title {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-cards--2x2 .feature-card__text {
    font-size: 15px;
    line-height: 1.6;
}

.feature-cards--compact .feature-card {
    grid-column: span 3;
}

.feature-cards--compact .feature-card:nth-child(3),
.feature-cards--compact .feature-card:nth-child(4),
.feature-cards--compact .feature-card:nth-child(5) {
    grid-column: span 2;
}

.feature-card {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--box-shadow-medium);
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    margin-bottom: 8px;
}

.feature-card__text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.feature-cards--compact .feature-card {
    padding: 24px 20px;
    text-align: center;
}

.feature-cards--compact .feature-card__icon {
    margin: 0 auto 16px;
}

.feature-cards--compact .feature-card__title {
    font-size: 15px;
    margin-bottom: 4px;
}

.feature-cards--compact .feature-card__text {
    font-size: 13px;
}

@media (max-width: 768px) {
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .feature-cards > .feature-card {
        max-width: 300px;
        width: 100%;
    }

    .feature-cards--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-cards--compact .feature-card,
    .feature-cards--compact .feature-card:nth-child(3),
    .feature-cards--compact .feature-card:nth-child(4),
    .feature-cards--compact .feature-card:nth-child(5) {
        grid-column: span 1;
    }

    .feature-cards--2x2 .feature-card {
        padding: 28px 20px;
    }

    .feature-cards--2x2 .feature-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .feature-cards--compact,
    .feature-cards--2x2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* INFO BOX (sidebar callout, no border-left)*/
/* ========================================= */

.info-box {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.03);
}

.section-with-bg .info-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--box-shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.info-box__title {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-primary);
    margin-bottom: 12px;
}

.info-box p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 18px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box ul {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box p + ul {
    margin-top: 18px;
}

.info-box li {
    position: relative;
    padding-left: 22px;
    font-size: 16px;
    line-height: 1.55;
    color: #555;
}

.info-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary-light) 18%, transparent);
}

/* ========================================= */
/* TEXT COLUMNS                              */
/* ========================================= */

.text-columns {
    column-count: 2;
    column-gap: 48px;
    margin-top: 24px;
}

.text-columns p {
    break-inside: avoid;
}

@media (max-width: 768px) {
    .text-columns {
        column-count: 1;
    }
}

/* ========================================= */
/* SERVICES LIST (linked items)              */
/* ========================================= */

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    margin-bottom: 48px;
}

.services-list__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 99px;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

a.services-list__item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
}

a.services-list__item:hover svg {
    stroke: var(--color-white);
}

.services-list__item svg {
    color: var(--color-primary-light);
    flex-shrink: 0;
}

/* ========================================= */
/* CTA BANNER                                */
/* ========================================= */

.cta-banner {
    text-align: center;
}

.page-tinnitus .resource-links {
    background: var(--color-bg-alt);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-tinnitus .resource-links .section__title {
    margin-bottom: 24px;
}

.page-tinnitus .resource-links .content-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.page-tinnitus .resource-links ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-tinnitus .resource-links li {
    margin: 0;
    padding: 0;
}

.page-tinnitus .resource-links li::marker,
.page-tinnitus .resource-links li::before {
    content: none;
}

.page-tinnitus .resource-links a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: 22px 58px 22px 24px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(38, 95, 59, 0.12);
    box-shadow: var(--box-shadow-soft);
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.page-tinnitus .resource-links a::after {
    content: '↗';
    position: absolute;
    right: 24px;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--color-primary-light) 22%, var(--color-white));
    color: var(--color-primary);
    font-size: 15px;
    line-height: 1;
}

.page-tinnitus .resource-links a:hover,
.page-tinnitus .resource-links a:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-medium);
    background: var(--color-white);
}

.page-tinnitus .cta-banner {
    background: color-mix(in srgb, var(--color-secondary) 58%, var(--color-bg));
    color: var(--color-text);
    padding-top: 88px;
    padding-bottom: 96px;
}

.page-tinnitus .cta-banner h2 {
    color: var(--color-primary);
}

.page-tinnitus .cta-banner p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.page-tinnitus .cta-banner .btn--primary {
    color: var(--color-white);
    background-color: var(--color-primary-light);
}

.page-tinnitus .cta-banner .btn--primary:hover,
.page-tinnitus .cta-banner .btn--primary:focus-visible {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.page-tinnitus .main-content {
    padding-bottom: 0;
}

.page-tcm-therapien .cta-banner {
    background: color-mix(in srgb, var(--color-secondary) 58%, var(--color-bg));
    color: var(--color-text);
    padding-top: 88px;
    padding-bottom: 96px;
}

.page-tcm-therapien .cta-banner h2 {
    color: var(--color-primary);
}

.page-tcm-therapien .cta-banner p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.page-tcm-therapien .cta-banner .btn--primary {
    color: var(--color-white);
    background-color: var(--color-primary-light);
}

.page-tcm-therapien .cta-banner .btn--primary:hover,
.page-tcm-therapien .cta-banner .btn--primary:focus-visible {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.page-tcm-therapien .main-content {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .page-tinnitus .resource-links {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .page-tinnitus .resource-links ul {
        grid-template-columns: 1fr;
    }

    .page-tinnitus .resource-links a {
        white-space: normal;
    }

    #nieren-yin-mangel .info-box ul {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* UTILITY: text-center, mb-4, mb-8          */
/* ========================================= */

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

.mb-4 {
    margin-bottom: 16px;
}

.mb-8 {
    margin-bottom: 32px;
}

/* ========================================= */
/* 404 ERROR PAGE                            */
/* ========================================= */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 0 96px;
    background-color: var(--color-bg);
}

.error-page__inner {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(100px, 15vw, 180px);
    font-weight: 400;
    line-height: 1;
    background: none;
    color: var(--color-primary-light);
    -webkit-text-fill-color: var(--color-primary-light);
    opacity: 1;
    margin-bottom: 8px;
}

.error-page__title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
}

.error-page__message {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 40px;
}
