@font-face {
    font-family: 'Breathing';
    src: url('fonts/Breathing Personal Use Only.ttf') format('truetype');
}

@font-face {
    font-family: 'Alta';
    src: url('fonts/alta-regular.otf') format('opentype');
}

:root {
    --color-navy: #0a1a2f;
    --color-gold: #c48e19;
    --color-gold-light: #e6c15b;
    --color-cream: #fdfaf3;
    --color-text-dark: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Alta', serif; 
    --font-signature: 'Breathing', cursive; /* Updated to Breathing font */
    --font-accent: 'Cormorant Upright', serif;
    --font-biryani: 'Biryani', sans-serif;
    
    /* Hero Control Variables */
    --hero-pos-x: 50%;
    --hero-pos-y: 50%;
    --hero-scale: 1;
    --hero-mobile-pos-x: 14%;
    --hero-mobile-pos-y: 40%;
    --hero-text-mobile-offset-x: 0px;
    --hero-text-mobile-offset-y: 0px;
    --about-hero-pos-x: 50%;
    --about-hero-pos-y: 18%;
    --about-hero-header-shift: 0px;
    --about-hero-header-opacity: 1;
    --about-hero-header-scale: 1;
    --spirit-cursor-x: 0.5;
    --spirit-cursor-y: 0.5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden; /* Must be on html, not only body — clip on body alone doesn't propagate to viewport */
}

body {
    font-family: var(--font-biryani);
    font-weight: 200;
    color: var(--color-text-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: clip; /* clip is better than hidden for mobile scroll */
    -webkit-overflow-scrolling: touch;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.cta-section.reveal,
.inspiration-section.reveal,
.impuls-section.reveal,
.cta-section.reveal.active,
.inspiration-section.reveal.active,
.impuls-section.reveal.active {
    opacity: 1;
    transform: none;
    transition: none;
}

.navbar {
    padding: 2rem 0;
    text-align: center;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    top: 0;
    opacity: 0;
    animation: fadeInDown 1.2s ease-out forwards;
    transition: top 0.35s ease, opacity 0.35s ease;
    will-change: top, opacity;
}

.navbar.nav-hidden {
    top: -120px;
    opacity: 0;
    pointer-events: none;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-links a {
    text-decoration: none;
    color: var(--color-cream);
    margin: 0 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72), 0 6px 18px rgba(0, 0, 0, 0.58);
}

/* Animated hover indicator for top-level nav items */
.nav-links > a,
.nav-dropdown > .dropdown-toggle {
    position: relative;
}

.nav-links > a::before,
.nav-dropdown > .dropdown-toggle::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.45rem;
    width: 72%;
    height: 2px;
    background: linear-gradient(90deg, rgba(230, 193, 91, 0), rgba(230, 193, 91, 0.95), rgba(230, 193, 91, 0));
    transform: translateX(-50%) scaleX(0.2);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: none;
}

.nav-links > a:hover::before,
.nav-links > a:focus-visible::before,
.nav-dropdown > .dropdown-toggle:hover::before,
.nav-dropdown > .dropdown-toggle:focus-visible::before,
.nav-links > a.active::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

.nav-links > a[href="kontakt.html"] {
    position: relative;
    padding-right: 1rem;
}

.nav-links > a[href="kontakt.html"]::after {
    content: '';
    position: absolute;
    right: -0.15rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--color-gold);
    transform: translateY(-50%) scale(0.7);
    opacity: 0;
    box-shadow: 0 0 0 rgba(196, 142, 25, 0);
    transition: opacity 0.3s ease;
}

.navbar.is-scrolled .nav-links > a[href="kontakt.html"]::after {
    opacity: 1;
    animation: navKontaktPulse 1.9s ease-out infinite;
}

@keyframes navKontaktPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 142, 25, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(196, 142, 25, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 142, 25, 0);
    }
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    text-decoration: none;
    color: var(--color-cream);
    margin: 0 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72), 0 6px 18px rgba(0, 0, 0, 0.58);
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(253, 250, 243, 0.97);
    border: 1px solid rgba(196, 142, 25, 0.28);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(10, 26, 47, 0.16);
    padding: 0.6rem 0;
    min-width: 320px;
    max-width: min(92vw, 360px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
    z-index: 1000;
    margin-top: 0.65rem;
    text-align: left;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    color: var(--color-navy);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.02rem;
    text-shadow: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.dropdown-menu a:hover {
    color: var(--color-gold);
    background-color: rgba(196, 142, 25, 0.09);
}

.dropdown-menu a + a {
    margin-top: 0;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover::after {
    width: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    justify-content: flex-start;
    padding-top: 8rem; /* Nudge down slightly */
    padding-left: 10%; /* Left margin for text */
    position: relative;
    color: var(--color-cream);
    text-align: left; /* Text alignment left */
}

.hero::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('images/TItelbild (1).jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--hero-pos-x) var(--hero-pos-y); 
    transform: scaleX(-1) scale(var(--hero-scale)); /* Mirror and zoom without exposing edges */
    transform-origin: center center;
    z-index: -1;
    transition: background-position 0.1s ease-out, transform 0.1s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.0; /* even tighter */
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 0rem; /* Remove gap, use margins for precision */
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.hero-title span {
    display: block;
    letter-spacing: 0.3rem;
}

.line-1, .line-2 {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    color: var(--color-cream);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-weight: 300;
    margin-bottom: -1.2rem;
}

.line-3 {
    display: none;
}

.line-4 {
    position: relative;
    font-family: var(--font-signature);
    font-size: 6.5rem !important;
    margin-top: -0.6rem !important;
    transform: translateY(31px);
    margin-left: 0;
    padding-left: 0;
    letter-spacing: 0 !important;
    display: inline-block;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.2));
    line-height: 1.0;
    opacity: 0;
    animation: fadeInUp-line4 1.5s ease-out 0.5s forwards;
}

.sun-icon-small {
    position: absolute;
    top: 30px; /* Aligned with 't' and 's' area */
    right: 32%;
    width: 140px;
    pointer-events: none;
}

.gold-text {
    color: var(--color-gold) !important;
    font-family: var(--font-signature);
}

/* Reuse the same glow interaction as the home hero "Potenzial" text */
.hero-title .gold-text,
.sv-hero-title .gold-text,
.ut-hero-title .gold-text,
.ka-hero-title .gold-text,
.ka-signature-white {
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.hero-title .gold-text:hover,
.hero-title .gold-text:focus-visible,
.sv-hero-title .gold-text:hover,
.sv-hero-title .gold-text:focus-visible,
.ut-hero-title .gold-text:hover,
.ut-hero-title .gold-text:focus-visible,
.ka-hero-title .gold-text:hover,
.ka-hero-title .gold-text:focus-visible,
.ka-signature-white:hover,
.ka-signature-white:focus-visible {
    text-shadow: 0 0 15px rgba(196, 142, 25, 0.8), 0 0 30px rgba(196, 142, 25, 0.4);
    transform: scale(1.05) rotate(-2deg);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp-line4 {
    from { opacity: 0; transform: translateY(61px); }
    to { opacity: 1; transform: translateY(31px); }
}

/* Intro Card */
.intro-card {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 960px;
    position: relative;
    margin: -80px auto 2rem;
    text-align: center;
    color: var(--color-text-dark);
    z-index: 10;
}

.ka-page .intro-card {
    background-color: var(--color-cream);
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-bottom: 0 !important;
    padding-top: 1.8rem !important;
    padding-bottom: 1.8rem !important;
}

.intro-title {
    font-family: var(--font-heading);
    font-size: 2.2rem; /* Slightly smaller */
    margin-bottom: 0.8rem; /* Reduced spacing */
}

.signature {
    font-family: var(--font-signature);
    color: var(--color-gold);
    font-size: 2.38rem; /* 15% smaller than 2.8rem */
    margin-left: 0.5rem;
    margin-top: 0.5rem; /* Nudged down by approx 10% of its height */
    font-weight: 400;
    transition: all 0.4s ease;
    display: inline-block;
}

.signature:hover {
    text-shadow: 0 0 15px rgba(196, 142, 25, 0.8), 0 0 30px rgba(196, 142, 25, 0.4);
    transform: scale(1.05) rotate(-2deg);
}

.line-4:hover {
    text-shadow: 0 0 15px rgba(196, 142, 25, 0.8), 0 0 30px rgba(196, 142, 25, 0.4);
    transform: translateY(31px) scale(1.05) rotate(-2deg);
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.intro-subtitle {
    font-family: var(--font-biryani);
    font-weight: 200;
    margin-bottom: 0.5rem; /* Reduced spacing */
    font-size: 1.1rem;
}

.intro-text {
    font-family: var(--font-biryani);
    font-weight: 200;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.4; /* Compressed line height (was default 1.6) */
}

/* CTA Section */
.cta-section {
    padding: 6.5rem 0 4rem;
    background-color: var(--color-cream);
    text-align: center;
}

.sun-rays-container {
    margin-bottom: 0.5rem;
    margin-top: -1rem; /* Dropped closer to the heading "Welten" */
}

.sun-rays-img {
    width: 150px; /* Slightly smaller for elegance */
    height: auto;
    margin: 0 auto;
    opacity: 0.9;
    mix-blend-mode: multiply; /* Removes white background */
}

.cta-heading {
    font-size: 2.5rem;
    line-height: 1.02;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.35rem;
    align-items: stretch;
}

.cta-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    min-width: 430px;
    padding: 1.2rem 2.4rem;
    border: 1px solid var(--color-gold);
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-text-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.38;
    transition: color 0.28s ease, background-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
    background: transparent;
    box-shadow: 0 8px 18px rgba(10, 26, 47, 0.06);
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(196, 142, 25, 0) 0%, rgba(196, 142, 25, 0.16) 50%, rgba(196, 142, 25, 0) 100%);
    transform: translateX(-130%);
    transition: transform 0.45s ease;
    pointer-events: none;
}

.cta-btn:hover {
    background-color: var(--color-gold);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(196, 142, 25, 0.32);
}

.cta-btn:hover::before {
    transform: translateX(130%);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--color-gold-light);
    outline-offset: 3px;
}

.cta-section,
.quote-section,
.inspiration-section,
.am-verbinderin,
.am-geschichte,
.am-slideshow {
    position: relative;
}

.cta-section::after,
.inspiration-section::after,
.am-verbinderin::after,
.am-geschichte::after,
.quote-section::after {
    content: '✶';
    position: absolute;
    left: 50%;
    bottom: -0.72rem;
    transform: translateX(-50%);
    font-size: 0.85rem;
    letter-spacing: 0;
    z-index: 2;
}

.cta-section::before,
.inspiration-section::before,
.am-verbinderin::before,
.am-geschichte::before,
.quote-section::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(220px, 56vw);
    height: 1px;
    z-index: 1;
}

.cta-section::after,
.inspiration-section::after,
.am-verbinderin::after,
.am-geschichte::after {
    color: rgba(196, 142, 25, 0.92);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-section::before,
.inspiration-section::before,
.am-verbinderin::before,
.am-geschichte::before {
    width: min(250px, 58vw);
    background: linear-gradient(90deg, transparent, rgba(196, 142, 25, 0.9), transparent);
}

.quote-section::after {
    color: rgba(230, 193, 91, 0.95);
    text-shadow: 0 0 10px rgba(230, 193, 91, 0.35);
}

.quote-section::before {
    width: min(200px, 52vw);
    background: linear-gradient(90deg, transparent, rgba(230, 193, 91, 0.68), transparent);
}

/* Quote Section */
.quote-section {
    background-color: var(--color-navy);
    color: white;
    padding: 8rem 2rem;
}

.quote-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.quote-text {
    font-family: var(--font-heading);
}

.quote-main {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.quote-author {
    font-size: 2.5rem;
    font-family: var(--font-signature);
    color: var(--color-gold);
}

.moon-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(196, 142, 25, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.moon-img img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 80px rgba(196, 142, 25, 0.4);
}

.quote-footer-text {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.45;
}

/* Inspiration Section */
.inspiration-section {
    padding: 5.75rem 2rem 5rem;
    text-align: center;
    background-color: var(--color-cream);
}

.sun-decoration .sun-rays-img {
    width: 120px;
    margin-bottom: 1.15rem;
    display: block; /* Center via margin-auto in .sun-rays-img */
}

.inspiration-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.06;
    margin-bottom: 0.55rem;
}

.inspiration-section .subtitle {
    font-size: 2.5rem;
    line-height: 0.98;
    margin-bottom: 1.85rem;
}

.poem {
    max-width: 600px;
    margin: 0 auto 2.6rem;
}

.poem p {
    margin-bottom: 1.3rem;
    font-size: 1.2rem;
    line-height: 1.38;
}

.poem p span {
    display: block;
    font-weight: 600;
    margin-top: 0.15rem;
}

.inspiration-footer {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.48;
    color: #555;
    font-size: 1.04rem;
}

/* Impuls Section */
.impuls-section {
    background-image: linear-gradient(rgba(10, 26, 47, 0.85), rgba(10, 26, 47, 0.85)), url('images/footer_bg.png');
    background-size: cover;
    background-position: top center; background-attachment: fixed;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.impuls-section h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-heading.signature,
.inspiration-section .subtitle.signature,
.impuls-section p.signature {
    transition: none !important;
    animation: none !important;
}

.cta-heading.signature:hover,
.inspiration-section .subtitle.signature:hover,
.impuls-section p.signature:hover {
    text-shadow: none;
    transform: none;
}

.impuls-contact-link {
    color: var(--color-gold);
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease, text-shadow 0.25s ease;
}

.impuls-contact-link:hover {
    color: var(--color-gold-light);
    border-color: rgba(230, 193, 91, 0.9);
    text-shadow: 0 0 14px rgba(230, 193, 91, 0.5);
    transform: none;
}

/* Footer */
.site-footer {
    background-color: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding: 4rem 2rem;
    border-top: 1px dotted var(--color-gold);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 2rem;
}

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

.footer-col p:first-child {
    color: var(--color-gold);
    font-family: var(--font-signature);
    text-transform: none; /* Changed from uppercase for better font display */
    font-size: 1.2rem; /* Adjusted for Breathing font */
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.footer-legal-links {
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.footer-legal-links a {
    color: var(--color-gold);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-legal-links a:hover {
    opacity: 0.8;
}

.footer-legal-links span {
    color: var(--color-gold);
    opacity: 0.75;
}

@media (max-width: 768px) {
    .hero {
        justify-content: flex-end; /* Push text downwards */
        padding-bottom: 5rem;
        padding-top: 6rem;
    }
    .hero::before {
        background-position: var(--hero-mobile-pos-x) var(--hero-mobile-pos-y);
    }
    .hero h1 { font-size: 2.5rem; }
    .intro-card { position: static; margin-top: -50px; padding: 2rem; }
    .quote-container { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-legal-links { margin-top: 1.6rem; }
}


/* --- Über Mich Page Styles --- */

.about-page {
    background-color: var(--color-cream);
}

.about-nav {
    background-color: transparent !important;
    position: fixed;
    box-shadow: none;
}

.about-nav .nav-links a {
    color: var(--color-cream);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72), 0 6px 18px rgba(0, 0, 0, 0.58);
}

.about-nav .nav-links a.active {
    color: var(--color-gold);
}

.about-nav .dropdown-menu a {
    color: var(--color-navy);
    text-shadow: none;
}

.about-nav .dropdown-menu a:hover {
    color: var(--color-gold);
}

.about-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 120vh;
    padding: 10rem 10% 5rem;
    gap: 5%;
}

.about-hero-image {
    flex: 1;
    max-width: 500px;
}

.about-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 300px 300px 20px 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-hero-card {
    flex: 1.2;
    background: white;
    padding: 4rem;
    border-radius: 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}

.about-intro-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-intro-subtitle {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.about-intro-text {
    font-family: var(--font-biryani);
    font-size: 1.1rem;
    line-height: 1.45;
    color: #444;
}

.divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-gold);
    margin-bottom: 2rem;
}

.verbinderin-section {
    background-color: #E5D7B8; /* Muted gold/beige from design */
    padding: 8rem 10%;
}

.verbinderin-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.verbinderin-title {
    flex: 1;
}

.verbinderin-text {
    flex: 2;
    background: rgba(255, 255, 255, 0.4);
    padding: 3rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.verbinderin-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.heading-large {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.spirituality-section {
    padding: 8rem 10%;
    text-align: center;
    background-color: var(--color-navy);
    color: white;
}

.spirituality-section .sun-rays-img {
    filter: brightness(0) invert(1); /* Make it white for the dark background */
    margin-bottom: 2rem;
    mix-blend-mode: normal;
}

.spirituality-section .signature {
    font-size: 5rem;
    margin-bottom: 3rem;
    color: white;
}

.spirituality-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    font-weight: 200;
}

.history-section {
    padding: 8rem 10%;
}

.history-section h2.signature {
    font-size: 4rem;
    margin-bottom: 5rem;
}

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

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

.history-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.history-item p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}

.slideshow-section {
    padding: 8rem 0;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.slideshow-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.slideshow-prev, .slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.slideshow-prev:hover, .slideshow-next:hover {
    background: var(--color-gold);
    color: white;
}

.slideshow-prev { left: 20px; }
.slideshow-next { right: 20px; }

.vision-cta {
    padding: 8rem 10%;
}

.heading-medium {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.signature.big {
    font-size: 4rem;
}

.about-cards-section {
    padding: 5rem 10% 8rem;
}

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

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.cta-btn.small {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 0 !important;
    width: max-content;
    align-self: flex-start;
    margin-top: auto;
}

.media-section {
    padding: 8rem 10%;
}

.media-container {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.media-text {
    flex: 1;
}

.media-text .description {
    margin: 2rem 0;
    line-height: 1.8;
}

.media-images {
    flex: 1;
    position: relative;
    height: 600px;
}

.image-wrapper.main {
    width: 80%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.image-wrapper.secondary {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 60%;
    height: 300px;
    border-radius: 30px;
    overflow: hidden;
    border: 10px solid var(--color-cream);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-cream { background-color: var(--color-cream); }
.bg-white { background-color: white; }
.centered { text-align: center; }

@media (max-width: 992px) {
    .about-hero { flex-direction: column; padding-top: 8rem; }
    .about-hero-card { margin-top: -3rem; }
    .verbinderin-content, .am-verbinderin-inner { flex-direction: column; }
    .history-grid, .cards-grid { grid-template-columns: 1fr; }
    .media-container { flex-direction: column; }
    .media-images { height: 400px; width: 100%; }
}

/* ============================================================
   ÜBER MICH — REBUILT (am-* prefix)
   ============================================================ */

/* ----- NAV override for about page ----- */
.about-page .about-nav {
    background-color: transparent !important;
    position: fixed;
    box-shadow: none;
}

.about-page .about-nav .nav-links a {
    color: var(--color-cream);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72), 0 6px 18px rgba(0, 0, 0, 0.58);
}

.about-page .about-nav .nav-links a.active {
    color: var(--color-gold);
}

.about-page .about-nav .dropdown-menu a {
    color: var(--color-navy) !important;
    text-shadow: none !important;
}

.about-page .about-nav .dropdown-menu a:hover {
    color: var(--color-gold) !important;
}

/* ----- HERO ----- */
.am-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
    isolation: isolate;
    z-index: 2;
}

.am-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.am-hero-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.am-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--about-hero-pos-x) var(--about-hero-pos-y);
    display: block;
}

.am-hero-right {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    align-self: stretch;
    width: min(100% - 1rem, 620px);
    margin: 0 2.25% 0 auto;
    padding: 16rem 0 0;
}

.am-greeting-line {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--color-cream);
    line-height: 1.1;
    margin-bottom: 0;
    text-shadow: 0 10px 30px rgba(10, 26, 47, 0.28);
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.am-hero-greeting {
    transform: translate3d(0, var(--about-hero-header-shift), 0) scale(var(--about-hero-header-scale));
    transform-origin: right center;
    opacity: var(--about-hero-header-opacity);
    will-change: transform, opacity;
}

.am-kerstin-sig {
    font-family: var(--font-signature);
    color: var(--color-gold);
    font-size: 5.5rem;
    display: block;
    line-height: 1.05;
    margin-top: -0.3rem;
    opacity: 0;
    animation: fadeInUp-line4 1.5s ease-out 0.5s forwards;
    transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.am-kerstin-sig:hover {
    text-shadow: 0 0 15px rgba(196, 142, 25, 0.8), 0 0 30px rgba(196, 142, 25, 0.4);
    transform: scale(1.05) rotate(-2deg);
}

.am-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-cream);
    line-height: 1.5;
    margin-top: 1.2rem;
    text-shadow: 0 10px 30px rgba(10, 26, 47, 0.28);
}

.am-hero-card {
    position: relative;
    margin: -80px auto 2rem;
    width: min(90%, 760px);
    overflow: visible;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 250, 243, 0.95) 100%);
    border: 1px solid rgba(196, 142, 25, 0.18);
    border-radius: 24px;
    padding: 2.55rem 2.85rem 2.35rem;
    box-shadow: 0 26px 70px rgba(10, 26, 47, 0.16), 0 8px 22px rgba(10, 26, 47, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px) saturate(135%);
    -webkit-backdrop-filter: blur(10px) saturate(135%);
    font-size: 1.05rem;
    line-height: 1.45;
    color: rgba(10, 26, 47, 0.82);
    text-shadow: none;
    z-index: 2;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

.am-hero-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, rgba(196, 142, 25, 0.14) 0%, rgba(196, 142, 25, 0.7) 28%, rgba(230, 193, 91, 0.95) 50%, rgba(196, 142, 25, 0.7) 72%, rgba(196, 142, 25, 0.14) 100%);
    z-index: -1;
}

.am-hero-card::after {
    content: '';
    position: absolute;
    inset: 14px 18px auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 193, 91, 0.2) 0%, rgba(230, 193, 91, 0.08) 35%, rgba(230, 193, 91, 0) 72%);
    opacity: 0.75;
    pointer-events: none;
    z-index: -1;
}

.am-hero-card p {
    position: relative;
    max-width: 34ch;
    margin: 0;
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    color: rgba(10, 26, 47, 0.82);
    text-wrap: pretty;
}

.am-hero-lead {
    display: block;
    margin-bottom: 0.9rem;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 1.15rem + 1vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: var(--color-navy);
}

.am-hero-lead::after {
    content: '';
    display: block;
    width: 72px;
    height: 2px;
    margin-top: 0.8rem;
    background: linear-gradient(90deg, rgba(196, 142, 25, 0.95) 0%, rgba(230, 193, 91, 0.45) 100%);
}

.am-hero-copy {
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .am-hero-card:hover {
        transform: translateY(-4px);
        border-color: rgba(196, 142, 25, 0.3);
        box-shadow: 0 34px 82px rgba(10, 26, 47, 0.2), 0 12px 30px rgba(10, 26, 47, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }
}

/* ----- VERBINDERIN ----- */
.am-verbinderin {
    position: relative;
    z-index: 1;
    background-color: var(--color-cream);
    margin-top: -1.5rem;
    padding: 6rem 10% 8rem;
    color: var(--color-text-dark);
}

.am-verbinderin-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 6rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.am-verbinderin-left,
.am-verbinderin-right {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.am-verbinderin-left {
    transform: translateX(-38px);
}

.am-verbinderin-right {
    transform: translateX(38px);
}

.am-verbinderin.active .am-verbinderin-left,
.am-verbinderin.active .am-verbinderin-right {
    opacity: 1;
    transform: translateX(0);
}

.am-verbinderin.active .am-verbinderin-right {
    transition-delay: 0.14s;
}

.am-verbinderin-left h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    line-height: 0.95;
    color: #111;
    transform: none;
    margin-top: 0.45rem;
}

.am-verbinderin-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
}

.am-verbinderin-right p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #444;
}

/* ----- SPIRITUALITÄT ----- */
.am-spirituality {
    position: relative;
    overflow: hidden;
    padding: 7rem 10%;
    text-align: center;
    background-color: var(--color-navy);
}

.am-spirituality::before,
.am-spirituality::after,
.ka-dark-section::before,
.ka-dark-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.am-spirituality::before,
.ka-dark-section::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95) 0 1.2px, rgba(255, 255, 255, 0.36) 2.6px, transparent 4.2px),
        radial-gradient(circle at 24% 72%, rgba(232, 190, 92, 0.95) 0 1.4px, rgba(232, 190, 92, 0.34) 2.9px, transparent 4.5px),
        radial-gradient(circle at 35% 38%, rgba(255, 255, 255, 0.86) 0 1px, rgba(255, 255, 255, 0.28) 2.2px, transparent 3.9px),
        radial-gradient(circle at 52% 20%, rgba(255, 255, 255, 0.92) 0 1.1px, rgba(255, 255, 255, 0.34) 2.4px, transparent 4px),
        radial-gradient(circle at 66% 62%, rgba(232, 190, 92, 0.98) 0 1.3px, rgba(232, 190, 92, 0.36) 2.8px, transparent 4.4px),
        radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.9) 0 1px, rgba(255, 255, 255, 0.3) 2.2px, transparent 4px),
        radial-gradient(circle at 90% 78%, rgba(255, 255, 255, 0.94) 0 1.2px, rgba(255, 255, 255, 0.34) 2.5px, transparent 4.2px),
        radial-gradient(circle at 15% 46%, rgba(232, 190, 92, 0.92) 0 1.2px, rgba(232, 190, 92, 0.33) 2.5px, transparent 4.1px),
        radial-gradient(circle at 43% 82%, rgba(255, 255, 255, 0.9) 0 1.05px, rgba(255, 255, 255, 0.28) 2.3px, transparent 4px),
        radial-gradient(circle at 71% 14%, rgba(255, 255, 255, 0.88) 0 1px, rgba(255, 255, 255, 0.27) 2.1px, transparent 3.8px),
        radial-gradient(circle at 95% 48%, rgba(232, 190, 92, 0.9) 0 1.1px, rgba(232, 190, 92, 0.3) 2.4px, transparent 4px);
    opacity: 0.95;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 12px rgba(232, 190, 92, 0.22));
    animation: amTwinkleA 5.8s ease-in-out infinite alternate, amFloatA 18s ease-in-out infinite;
}

.am-spirituality::after,
.ka-dark-section::after {
    background:
        radial-gradient(circle at 8% 54%, rgba(255, 255, 255, 0.8) 0 0.9px, rgba(255, 255, 255, 0.22) 1.8px, transparent 3px),
        radial-gradient(circle at 18% 86%, rgba(232, 190, 92, 0.85) 0 1px, rgba(232, 190, 92, 0.24) 2px, transparent 3.2px),
        radial-gradient(circle at 41% 16%, rgba(255, 255, 255, 0.78) 0 0.9px, rgba(255, 255, 255, 0.2) 1.7px, transparent 2.9px),
        radial-gradient(circle at 59% 78%, rgba(255, 255, 255, 0.76) 0 0.8px, rgba(255, 255, 255, 0.18) 1.6px, transparent 2.8px),
        radial-gradient(circle at 73% 34%, rgba(255, 255, 255, 0.82) 0 1px, rgba(255, 255, 255, 0.22) 2px, transparent 3.1px),
        radial-gradient(circle at 93% 14%, rgba(232, 190, 92, 0.82) 0 0.95px, rgba(232, 190, 92, 0.22) 1.9px, transparent 3px),
        radial-gradient(circle at 27% 44%, rgba(255, 255, 255, 0.78) 0 0.9px, rgba(255, 255, 255, 0.2) 1.7px, transparent 2.9px),
        radial-gradient(circle at 48% 92%, rgba(232, 190, 92, 0.78) 0 0.95px, rgba(232, 190, 92, 0.2) 1.8px, transparent 3px),
        radial-gradient(circle at 81% 58%, rgba(255, 255, 255, 0.76) 0 0.85px, rgba(255, 255, 255, 0.19) 1.6px, transparent 2.8px);
    opacity: 0.78;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 10px rgba(232, 190, 92, 0.16));
    animation: amTwinkleB 6.7s ease-in-out infinite alternate, amFloatB 24s ease-in-out infinite;
}

@keyframes amTwinkleA {
    0% { opacity: 0.55; }
    50% { opacity: 0.9; }
    100% { opacity: 0.65; }
}

@keyframes amTwinkleB {
    0% { opacity: 0.4; }
    50% { opacity: 0.75; }
    100% { opacity: 0.5; }
}

@keyframes amFloatA {
    0% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * 16px), calc((var(--spirit-cursor-y) - 0.5) * 12px), 0) scale(1); }
    25% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * 16px + 6px), calc((var(--spirit-cursor-y) - 0.5) * 12px - 8px), 0) scale(1.015); }
    50% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * 16px + 12px), calc((var(--spirit-cursor-y) - 0.5) * 12px - 3px), 0) scale(1.02); }
    75% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * 16px + 5px), calc((var(--spirit-cursor-y) - 0.5) * 12px + 7px), 0) scale(1.012); }
    100% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * 16px), calc((var(--spirit-cursor-y) - 0.5) * 12px), 0) scale(1); }
}

@keyframes amFloatB {
    0% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * -14px), calc((var(--spirit-cursor-y) - 0.5) * -10px), 0) scale(1); }
    25% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * -14px - 7px), calc((var(--spirit-cursor-y) - 0.5) * -10px + 5px), 0) scale(1.012); }
    50% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * -14px - 13px), calc((var(--spirit-cursor-y) - 0.5) * -10px - 6px), 0) scale(1.02); }
    75% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * -14px - 4px), calc((var(--spirit-cursor-y) - 0.5) * -10px - 10px), 0) scale(1.015); }
    100% { transform: translate3d(calc((var(--spirit-cursor-x) - 0.5) * -14px), calc((var(--spirit-cursor-y) - 0.5) * -10px), 0) scale(1); }
}

.am-sun-rays {
    position: relative;
    z-index: 1;
    width: 130px;
    height: 130px;
    display: block;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    mix-blend-mode: normal;
}

/* Keep desktop inline SVG ray tips visible outside the viewBox */
svg.am-sun-rays {
    overflow: visible;
}

.am-spirituality-title {
    position: relative;
    z-index: 1;
    font-size: 5rem !important;
    color: var(--color-gold) !important;
    display: block;
    margin-bottom: 2.5rem;
}

.am-spirituality-text {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    
}

/* ----- GESCHICHTE ----- */
.am-geschichte {
    background-color: #f4ecda;
    padding: 8rem 10%;
}

.am-geschichte-heading {
    font-size: 4rem !important;
    display: block;
    margin-bottom: 4.5rem !important;
}

.am-geschichte-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.am-geschichte-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--color-text-dark);
}

.am-geschichte-item p {
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
}

/* ----- SLIDESHOW ----- */
.am-slideshow {
    padding: 8rem 0;
    background-color: var(--color-cream);
    overflow: hidden;
}

.am-slideshow-header {
    text-align: center;
    padding: 0 10%;
    margin-bottom: 4rem;
}

.am-section-heading {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    color: var(--color-text-dark);
    font-weight: 400;
}

.am-slideshow-sub {
    font-size: 2.5rem !important;
    display: block;
    margin-top: 0.8rem;
}

.am-geschichte-heading.signature,
.am-slideshow-sub.signature,
.am-geschichte-heading.signature:hover,
.am-slideshow-sub.signature:hover {
    transition: none;
    transform: none;
    text-shadow: none;
}

.am-carousel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
}

.am-carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--color-gold);
}

.am-carousel-btn:hover {
    background: var(--color-gold);
    color: white;
}

.am-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.am-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}

.am-carousel-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    position: relative;
}

.am-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6rem 2rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.am-slide-overlay h3 {
    font-family: var(--font-biryani);
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--color-cream);
    line-height: 1.1;
}

.am-slide-overlay p {
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    color: var(--color-cream);
}

.am-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.am-carousel-slide:hover img {
    transform: scale(1.04);
}

.am-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
}

.am-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(196, 142, 25, 0.65);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.am-carousel-dot.is-active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.15);
}

.am-carousel-dot:hover,
.am-carousel-dot:focus-visible {
    border-color: var(--color-gold);
    transform: scale(1.1);
    outline: none;
}

/* ----- VISION CTA ----- */
.am-vision-cta {
    padding: 8rem 10%;
    text-align: center;
    background-color: white;
}

.am-vision-heading {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    line-height: 1.3;
    max-width: 860px;
    margin: 0 auto 1.5rem;
    font-weight: 400;
    color: var(--color-text-dark);
}

/* ----- CARDS ----- */
.am-cards {
    padding: 6rem 10%;
    background-color: var(--color-cream);
}

.am-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.am-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.am-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.am-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.am-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.am-card:hover .am-card-image img {
    transform: scale(1.06);
}

.am-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.am-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-dark);
}

.am-card-body p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* ----- CONSCIOUS MEDIA ----- */
.am-media {
    padding: 8rem 10%;
    background-color: white;
}

.am-media-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.am-media-sig {
    font-size: 1.9rem !important;
    display: block;
    margin: 1rem 0 1.5rem;
}

.am-media-description {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 2rem;
}

.am-media-images {
    position: relative;
    height: 580px;
}

.am-media-main {
    position: absolute;
    right: 0;
    top: 0;
    width: 480px;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.about-page .am-hero {
    min-height: 100vh;
}

.about-page .am-hero-right {
    width: min(100% - 1rem, 560px);
    margin: 0 3.5% 0 auto;
    padding-top: 13.5rem;
}

.about-page .am-hero-card {
    width: min(92%, 860px);
    margin: -64px auto 1.5rem;
    padding: 2rem 2.3rem 1.85rem;
}

.about-page .am-hero-card::after {
    display: none;
}

.about-page .am-hero-card p {
    max-width: none;
    line-height: 1.62;
}

.about-page .am-hero-lead {
    margin-bottom: 0.7rem;
}

.about-page .am-hero-lead::after {
    margin-top: 0.65rem;
}

.about-page .am-hero-copy {
    max-width: 26ch;
}

@media (min-width: 901px) {
    .about-page .am-hero-card {
        padding: 1.85rem 2.25rem 1.75rem;
    }

    .about-page .am-hero-card p {
        display: grid;
        grid-template-columns: minmax(210px, 0.86fr) minmax(0, 1.3fr);
        gap: 0 2.1rem;
        align-items: start;
    }

    .about-page .am-hero-lead {
        margin-bottom: 0;
        font-size: clamp(1.75rem, 1.45rem + 0.7vw, 2.3rem);
        line-height: 1.02;
    }

    .about-page .am-hero-lead::after {
        width: 64px;
        margin-top: 0.75rem;
    }

    .about-page .am-hero-copy {
        max-width: none;
        font-size: clamp(1.04rem, 0.97rem + 0.22vw, 1.18rem);
        line-height: 1.54;
    }
}

@media (min-width: 769px) {
    .hero,
    .about-page .am-hero,
    .sv-page .sv-hero,
    .ut-hero {
        min-height: 100vh !important;
    }
}

.about-page .am-verbinderin {
    padding: 4.5rem 8% 5.5rem;
}

.about-page .am-verbinderin-inner {
    gap: 4rem;
    max-width: 1100px;
}

.about-page .am-verbinderin-left h2 {
    font-size: 4.2rem;
    line-height: 0.92;
    margin-top: 0;
}

.about-page .am-verbinderin-right {
    gap: 1.35rem;
}

.about-page .am-verbinderin-right p {
    font-size: 1.08rem;
    line-height: 1.72;
}

.about-page .am-spirituality {
    padding: 5.5rem 8%;
}

.about-page .am-sun-rays {
    width: 112px;
    height: 112px;
    margin-bottom: 1rem;
}

.about-page .am-spirituality-title {
    font-size: 4.2rem !important;
    margin-bottom: 1.5rem;
}

.about-page .am-spirituality-text {
    max-width: 760px;
    font-size: 1.08rem;
    line-height: 1.72;
}

.about-page .am-geschichte {
    padding: 5.5rem 8%;
}

.about-page .am-geschichte-heading {
    font-size: 3.35rem !important;
    margin-bottom: 3rem !important;
}

.about-page .am-geschichte-grid {
    gap: 2.2rem;
}

.about-page .am-geschichte-item h3 {
    font-size: 1.18rem;
    margin-bottom: 0.8rem;
}

.about-page .am-geschichte-item p {
    font-size: 0.97rem;
    line-height: 1.66;
}

.about-page .am-slideshow {
    padding: 5.5rem 0;
}

.about-page .am-slideshow-header {
    padding: 0 8%;
    margin-bottom: 2.6rem;
}

.about-page .am-section-heading {
    font-size: 3rem;
    line-height: 1.08;
}

.about-page .am-slideshow-sub {
    font-size: 2.05rem !important;
    margin-top: 0.45rem;
}

.about-page .am-carousel {
    gap: 1rem;
}

.about-page .am-slide-overlay {
    padding: 4.75rem 1.4rem 1.35rem 1.4rem;
}

.about-page .am-slide-overlay h3 {
    font-size: 1.55rem;
}

.about-page .am-slide-overlay p {
    font-size: 0.95rem;
    line-height: 1.42;
}

.about-page .am-carousel-dots {
    margin-top: 1.4rem;
}

.about-page .am-vision-cta {
    padding: 5.5rem 8%;
}

.about-page .am-vision-heading {
    font-size: 2.3rem;
    line-height: 1.22;
    max-width: 760px;
    margin-bottom: 0.85rem;
}

.about-page .am-vision-cta .signature.big {
    font-size: 2.4rem !important;
    line-height: 1.02;
}

.about-page .am-cards {
    padding: 4.5rem 8%;
}

.about-page .am-cards-grid {
    gap: 1.5rem;
}

.about-page .am-card-body {
    padding: 1.35rem;
}

.about-page .am-card-body h3 {
    margin-bottom: 0.55rem;
}

.about-page .am-card-body p {
    line-height: 1.55;
    margin-bottom: 1rem;
}

.about-page .am-media {
    padding: 5.5rem 8%;
}

.about-page .am-media-inner {
    gap: 4rem;
    max-width: 1100px;
}

.about-page .am-media-sig {
    font-size: 1.6rem !important;
    margin: 0.7rem 0 1rem;
}

.about-page .am-media-description {
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 1.35rem;
}

.about-page .am-media-images {
    height: 480px;
}

.about-page .am-media-main {
    width: 400px;
    height: 400px;
}

.about-page .impuls-section {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

@media (max-width: 1100px) {
    .about-page .am-hero-right {
        width: min(100% - 1rem, 520px);
        padding-top: 12rem;
    }

    .about-page .am-hero-card {
        width: min(92%, 720px);
    }

    .about-page .am-verbinderin-inner,
    .about-page .am-media-inner {
        gap: 2.75rem;
    }

    .about-page .am-geschichte-grid {
        gap: 1.7rem;
    }

    .about-page .am-media-images {
        height: 420px;
    }

    .about-page .am-media-main {
        width: 340px;
        height: 340px;
    }
}

.am-media-main img,
.am-media-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.am-media-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52%;
    height: 270px;
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid var(--color-cream);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ----- FOOTER ----- */
.am-footer {
    background-color: var(--color-navy);
    color: rgba(255, 255, 255, 0.68);
    padding: 5rem 10% 2.5rem;
    border-top: 1px dotted var(--color-gold);
}

.am-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.am-footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.4rem;
    font-weight: 400;
}

.am-footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.am-footer-col ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.am-footer-col ul li a:hover {
    color: var(--color-gold);
}

.am-footer-col p {
    font-size: 0.9rem;
    line-height: 1.9;
}

.am-footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.am-footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s;
}

.am-footer-social a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.am-footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ----- RESPONSIVE (am-*) ----- */
@media (max-width: 992px) {
    .am-hero {
        min-height: 100svh;
    }
    .am-hero-photo {
        position: absolute;
        inset: 0;
    }
    .am-hero-right {
        width: calc(100% - 2.5rem);
        margin: auto 1.25rem 1.5rem;
        align-self: auto;
        justify-content: center;
        padding-top: 0;
        padding: 0;
    }
    .am-hero-card {
        position: relative;
        transform: none;
        margin-top: -68px;
        padding: 2.2rem 2.35rem 2.1rem;
    }
    .am-verbinderin {
        padding: 4rem 8% 6rem;
    }
    .am-verbinderin-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .am-verbinderin-left h2 {
        font-size: 3.5rem;
    }
    .am-geschichte-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .am-carousel-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    .am-cards-grid {
        grid-template-columns: 1fr;
    }
    .am-media-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .am-media-images {
        height: 420px;
        width: 100%;
    }
    .am-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-page .am-hero-right {
        align-items: center;
        text-align: center;
    }

    .about-page .am-hero-greeting {
        width: 100%;
        text-align: center;
        transform-origin: center center;
        transform: translate3d(0, calc(var(--about-hero-header-shift) - 200%), 0) scale(var(--about-hero-header-scale));
    }

    .about-page .am-greeting-line,
    .about-page .am-kerstin-sig,
    .about-page .am-tagline {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .am-carousel-btn {
        display: none;
    }
}

@media (max-width: 600px) {
    .am-kerstin-sig { font-size: 4rem; }
    .about-page .am-spirituality-title {
        font-size: 3.15rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center;
    }
    .am-geschichte-heading { font-size: 2.8rem !important; }
    .am-section-heading { font-size: 2.4rem; }
    .am-slideshow-sub { font-size: 1.8rem !important; }
    .am-verbinderin-left h2 { font-size: 2.8rem; }
    .am-carousel-slide {
        flex: 0 0 100%;
    }
    .am-carousel-dots {
        margin-top: 1.25rem;
    }
    .am-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== KLAR AUFGESTELLT PAGE (ka-*) ===== */
.ka-hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* full viewport height to match other pages */
    background-image: url('images/Sternenstaub.jpg');
    background-size: cover;
    background-position: top center; background-attachment: fixed; /* better centering */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem 5%;
}

.ka-hero-overlay {
    /* Transparent or removed, no dark overlay wanted */
    display: none;
}

.ka-hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #fff;
    text-align: right;
    padding-right: 5%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); /* slight shadow for readability */
}

.ka-hero-klar {
    display: block;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 0.3s forwards;
}

.ka-hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 400;
}

.ka-signature-white {
    font-family: var(--font-signature);
    color: var(--color-gold);
    font-size: 5.5rem;
    display: block;
    margin-top: -1.6rem;
    padding-right: 1.5rem;
    opacity: 0;
    animation: fadeInUp-line4 1.5s ease-out 0.5s forwards;
}

.ka-hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    font-family: var(--font-main);
}

.ka-overlap-section {
    position: relative;
    z-index: 10;
    margin-top: -160px; /* Moved up slightly by user request */
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.ka-box-gold-text {
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.8rem;
}

.ka-overlap-box {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 4rem;
    max-width: 800px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    color: var(--color-text-dark);
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-right: 0;
    font-family: var(--font-main);
}

.ka-dark-section {
    background-color: var(--color-navy); /* Dark blue background */
    color: var(--color-cream);
    padding: 11rem 5% 6rem !important;
    position: relative;
    margin-top: -10rem;
    z-index: 1;
    text-align: center;
}

.ka-dark-section-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ka-dark-text p {
    font-size: 1.35rem;
    line-height: 1.45;
    margin-bottom: 2rem;
    font-family: var(--font-main);
    font-weight: 300;
    color: inherit;
}

.ka-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
}

.ka-image-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    aspect-ratio: 4 / 3;
    position: relative;
}

.ka-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ka-image-card img:hover {
    transform: scale(1.05);
}

.ka-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
}

.ka-image-overlay h3 {
    font-family: var(--font-biryani);
    font-size: 1.1rem;
    font-weight: 300;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.ka-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 1.3rem;
    display: inline-block;
    margin-bottom: 3rem;
    font-family: var(--font-main);
}

.ka-button {
    background: var(--color-gold);
    color: #fff;
    padding: 1rem 3.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: transform 0.3s, background 0.3s;
    font-family: var(--font-main);
}

.ka-button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    color: var(--color-navy);
}

@media (max-width: 992px) {
    .ka-hero {
        min-height: 100svh;
        justify-content: center;
    }
    .ka-hero-content {
        text-align: center;
        padding-right: 0;
    }
    .ka-hero-title {
        font-size: 4rem;
    }
    .ka-overlap-section {
        justify-content: center;
        margin-top: -120px; /* Adjusted up slightly */
    }
    .ka-overlap-box {
        margin-right: 0;
        margin-top: 0;
        padding: 2rem;
    }
    .ka-dark-section {
        padding-top: 0;
    }
    .ka-image-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* --- UNTERNEHMEN & TEAM PAGE --- */
.ut-page { background-color: var(--color-cream); overflow-x: hidden; }
.ut-hero {
    position: relative; z-index: 2; width: 100%; min-height: 100vh;
    background-image: url('images/Header CB.avif'); /* fallback img */
    background-size: cover; background-position: center 40%; background-attachment: fixed;
}
.ut-hero-content {
    position: absolute; top: 30%; left: 10%; color: var(--color-cream); z-index: 2;
}
.ut-hero-title {
    font-size: 5rem; line-height: 1; margin: 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.ut-hero-sub {
    font-size: 1.2rem; font-weight: 600; margin-top: 1rem; text-transform: uppercase; letter-spacing: 1px; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.ut-overlap-card {
    background-color: var(--color-cream); padding: 2.25rem 2.35rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative; margin: -80px auto 2rem; transform: none;
    width: 430px; font-size: 1.05rem; line-height: 1.58; text-align: center; z-index: 10;
    position: relative; margin-left: auto; margin-right: 8%; transform: translateY(-80px); margin-bottom: -56px;
    width: 430px; font-size: 1.05rem; line-height: 1.58; text-align: center; z-index: 5;
}
@media (max-width: 900px) {
    .ut-hero { min-height: 100svh; padding-bottom: 0; }
    .ut-hero-title { font-size: 3.5rem; }
    .ut-overlap-card { position: static; width: 90%; margin: 2rem auto; transform: none; margin-bottom: 0; padding: 2rem; }
    .ut-intro { padding-top: 3rem !important; }
}

.ut-intro { padding: 5rem 8% 2.5rem; text-align: center; }
.ut-intro h2 { font-family: var(--font-heading); font-size: 2.55rem; color: var(--color-dark-blue); margin-bottom: 0; }
.ut-intro > .signature { margin-top: -0.6rem !important; margin-bottom: 1.2rem !important; }
.ut-intro-text { max-width: 760px; margin: 1.75rem auto 0; font-size: 1.04rem; line-height: 1.68; }
.ut-intro-text strong { display: block; margin-bottom: 0.7rem; font-family: var(--font-heading); font-size: 1.2rem; }

.ut-divider {
    margin: 2.25rem 0 2.4rem !important;
}

.ut-divider .sun-rays-img {
    width: 122px;
}

.ut-ansatz { padding: 2.5rem 8% 1rem; text-align: center; }
.ut-ansatz h2 { font-family: var(--font-heading); font-size: 2.55rem; color: var(--color-dark-blue); margin-bottom: 0; }
.ut-ansatz > .signature { margin-top: -0.7rem !important; margin-bottom: 1.15rem !important; }
.ut-ansatz p { max-width: 780px; margin: 0 auto 2rem; font-size: 1.04rem; line-height: 1.68; }

.ut-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1120px; margin: 0 auto; }
.ut-grid-item { height: 350px; border-radius: 20px; background-size: cover; background-position: top center; background-attachment: fixed; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
@media (max-width: 768px) { .ut-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

.ut-cta { padding: 4.5rem 8% !important; text-align: center; }

.ut-cta h2 {
    line-height: 1.45 !important;
}

.ut-cta h2 .signature {
    margin: -1rem 0 -0.1rem 0 !important;
}

.ut-footer-img {
    height: 78vh; background-image: url('images/Website.JPG'); background-size: cover; background-position: center 20%; background-attachment: fixed;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 3.5rem; position: relative;
    border-radius: 0;
}
.ut-footer-img::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: transparent; border-radius: 0; }
.ut-footer-content { position: relative; z-index: 2; text-align: center; color: var(--color-cream); }

.ut-footer-content .signature {
    margin-bottom: 0.55rem !important;
}

.ut-footer-content p {
    font-size: 1.28rem !important;
    line-height: 1.45;
}

.gold-text { color: var(--color-gold); }
.white-text { color: white; }
.nav-links a.active { color: var(--color-gold); }

/* --- FLIP CARD CSS --- */
.flip-card {
    background-color: transparent;
    aspect-ratio: 1 / 1;
    height: auto;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.55rem;
}

.flip-card-front {
    background-color: var(--color-navy);
    color: white;
}

.flip-card-back {
    background-color: var(--color-cream);
    color: var(--color-navy);
    transform: rotateY(180deg);
    border: 2px solid var(--color-gold);
}

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    z-index: 1001;
    position: relative;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
}

/* Sun icon button */
.sun-toggle-icon {
    width: 60px;
    height: auto;
    opacity: 0.95;
    mix-blend-mode: normal;
    filter: brightness(0) invert(1); /* white on dark backgrounds */
    transform-origin: center bottom;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, opacity 0.3s ease;
    display: block;
}

/* Legal pages: dark background needs gold sun */
.legal-nav .sun-toggle-icon {
    filter: none;
    opacity: 0.85;
}

/* When menu is open: sun glows (rays bloom via JS) */
.navbar.mobile-open .sun-toggle-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(230,193,91,0.7));
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================================
   MOBILE-FIRST RESPONSIVE: 768px and below
   ============================================================ */
@media (max-width: 768px) {
    /* --- Sun toggle icon: show gold, no white filter --- */
    .sun-toggle-icon {
        filter: none !important;
    }
    .navbar.mobile-open .sun-toggle-icon {
        filter: drop-shadow(0 0 8px rgba(196,142,25,0.9)) !important;
        transform: none !important;
    }

    /* --- Mobile hamburger visible --- */
    .mobile-menu-toggle {
        display: flex;
        position: fixed !important;
        top: 1.2rem !important;
        right: 1.2rem !important;
        left: auto !important;
        bottom: auto !important;
        z-index: 1200;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .navbar.mobile-toggle-hidden .mobile-menu-toggle {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }

    /* Keep navbar from fully hiding on mobile — hamburger stays visible */
    .navbar.nav-hidden {
        top: 0;
        opacity: 1;
        pointer-events: auto;
    }

    /* Links still hidden unless mobile-open */

    /* --- Mobile nav overlay ---
       NOTE: must NOT use translateX(100%) — position:fixed elements
       are not clipped by overflow:hidden on html/body, so an off-screen
       fixed panel causes swipe-to-blank on every page.
       Use opacity + pointer-events instead. */
    .navbar .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(10, 26, 47, 0.97);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0s 0.35s;
        z-index: 999;
        padding: 2rem;
        --mobile-menu-item-width: min(84vw, 640px);
    }

    .navbar.mobile-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.35s ease, visibility 0s 0s;
    }

    /* Stack nav links vertically, touch-friendly sizing */
    .nav-links a,
    .nav-links .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--mobile-menu-item-width);
        margin: 0.75rem auto;
        padding: 0.75rem 1.75rem;
        font-size: 1.2rem;
        letter-spacing: 0.12rem;
        color: var(--color-cream) !important;
        text-shadow: none !important;
        text-align: center;
        min-height: 48px;
        line-height: 1.25;
        border: 1px solid var(--color-gold);
        border-radius: 14px;
        background: transparent;
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links .dropdown-toggle:hover {
        border-color: var(--color-gold);
        color: var(--color-gold) !important;
    }

    .nav-links > a::before,
    .nav-dropdown > .dropdown-toggle::before {
        display: none;
    }

    .nav-links > a[href="kontakt.html"]::after {
        display: none;
    }

    /* Dropdown in mobile: inline, no absolute */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: var(--mobile-menu-item-width);
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        max-width: none;
        margin-top: 0;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-dropdown.open .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        transform: none;
    }

    .dropdown-menu a {
        color: var(--color-gold) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0.75rem auto;
        text-align: center;
        padding: 0.8rem 2rem;
        font-size: 1rem;
        white-space: normal;
        min-height: 44px;
        line-height: 1.25;
        transition: all 0.3s ease;
    }

    .dropdown-menu a:hover {
        color: var(--color-gold-light) !important;
        background: transparent;
        transform: none;
        text-shadow: 0 0 10px rgba(230, 193, 91, 0.3);
    }

    .about-page .about-nav .dropdown-menu a {
        color: var(--color-gold) !important;
    }

    /* Legal nav mobile */
    .legal-nav .nav-links {
        background-color: rgba(233, 230, 222, 0.98);
    }

    .legal-nav .nav-links a,
    .legal-nav .nav-links .dropdown-toggle {
        color: #0f0f0f !important;
    }

    .legal-nav .dropdown-menu a {
        color: rgba(15, 15, 15, 0.7) !important;
    }

    /* About nav mobile: same dark overlay */
    .about-nav .nav-links {
        background-color: rgba(10, 26, 47, 0.97);
    }

    /* --- Hero section mobile --- */
    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 6rem;
        padding-left: 6%;
        padding-right: 6%;
    }

    .intro-card {
        position: relative;
        transform: none;
        left: auto;
        margin: -60px auto 0;
        padding: 1.5rem 1.5rem;
        max-width: 100%;
        border-radius: 16px;
    }

    .intro-title {
        font-size: 1.6rem;
    }

    /* --- CTA section mobile --- */
    .cta-section {
        padding: 6rem 5% 3.25rem;
    }

    .cta-heading {
        font-size: 2rem;
        margin-bottom: 1.4rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }

    .cta-btn {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        padding: 1.05rem 1.4rem;
        font-size: 1.1rem;
        text-align: center;
    }

    /* --- Quote section mobile --- */
    .quote-section {
        padding: 5rem 5%;
    }

    .quote-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .quote-main {
        font-size: 2.2rem;
    }

    .quote-author {
        font-size: 1.8rem;
    }

    .moon-img img {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    .quote-footer-text {
        font-size: 1rem;
        margin-top: 2rem;
    }

    /* --- Inspiration section mobile --- */
    .inspiration-section {
        padding: 4rem 5% 3.5rem;
    }

    .poem p {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    /* --- Impuls section mobile --- */
    .impuls-section {
        background-attachment: scroll;
        padding: 4rem 5%;
    }

    .impuls-section h2 {
        font-size: 2rem;
    }

    /* --- Footer mobile --- */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-legal-links {
        margin-top: 1.6rem;
    }

    /* --- Fix background-attachment: fixed on mobile (iOS breaks) --- */
    .ut-hero,
    .ut-grid-item,
    .ut-footer-img,
    .ka-hero {
        background-attachment: scroll !important;
    }

    /* --- UT page mobile --- */
    .ut-hero {
        min-height: 100svh !important;
    }

    /* KA page: tighter hero for 16:9 mobile */
    .ka-page .ut-hero {
        min-height: 100svh !important;
        max-height: none;
        background-position: 44% 60% !important;
    }

    .ut-hero-content {
        top: auto;
        bottom: 20.6%;
        left: 7.0%;
    }

    .ut-hero-title span:first-child {
        font-size: 13vw !important;
        line-height: 1.1;
    }
    .ut-hero-title span.signature {
        font-size: 16vw !important;
        margin-top: -1vw !important;
        display: block;
    }

    .ut-overlap-card {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        margin: -60px auto 2rem !important; /* Negative margin pulls it up onto the hero image slightly */
        width: 90% !important;
        transform: none !important; /* Kills the desktop translateX(-50%) that was making it fly off the page! */
        z-index: 10 !important;
    }

    .ut-intro {
        padding: 4rem 5% 2.5rem;
    }

    .ut-intro h2 {
        font-size: 2rem;
    }

    .ut-ansatz {
        padding: 2.5rem 5% 1.5rem;
    }

    .ut-ansatz h2 {
        font-size: 2rem;
    }

    .ut-grid {
        grid-template-columns: 1fr;
    }

    .ut-footer-img {
        height: 60vh;
    }

    /* --- KA page mobile --- */
    .ka-page {
        background-color: var(--color-navy) !important;
    }

    .ka-page .intro-card {
        position: relative !important;
        transform: none !important;
        margin: -4rem auto 0 !important;
        width: 90% !important;
        padding: 1.5rem !important;
    }

    .ka-hero-title {
        font-size: 3rem;
    }

    .ka-signature-white {
        font-size: 3.5rem;
    }

    .ka-image-grid {
        grid-template-columns: 1fr;
    }

    /* --- Flip cards mobile: tap to flip --- */
    .flip-card {
        height: auto;
    }

    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* Keep the three KA images side by side */
.ka-image-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 769px) {
    .ut-hero {
        min-height: 100vh !important;
        background-attachment: fixed !important;
        background-position: center 40% !important;
    }

    .ut-hero-content {
        position: absolute;
        top: 30%;
        left: 10%;
        color: var(--color-cream);
        z-index: 2;
    }

    .ut-hero-title span:first-child {
        font-size: 5rem !important;
        line-height: 1;
    }

    .ut-hero-title span.signature {
        font-size: 5rem !important;
        margin-top: -1rem !important;
        display: block;
    }

    body:not([class]) .quote-section {
        padding: 8rem 2rem !important;
    }

    body:not([class]) .quote-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        align-items: center;
        gap: 4rem !important;
        max-width: 1000px;
        margin: 0 auto;
        text-align: left;
    }

    body:not([class]) .quote-main {
        font-size: 3.5rem !important;
        line-height: 1.1;
        padding-right: 0 !important;
    }

    body:not([class]) .quote-author {
        font-size: 2.5rem !important;
    }

    body:not([class]) .moon-img img {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0;
        display: block;
    }

    body:not([class]) .quote-footer-text {
        max-width: 800px;
        margin: 4rem auto 0 !important;
        font-size: 1.2rem !important;
        line-height: 1.45;
        text-align: center;
    }

    body:not([class]) > .intro-card {
        max-width: 860px;
        padding: 2.5rem 3rem !important;
    }

    .ka-image-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .ka-image-card {
        min-width: 0;
        aspect-ratio: 4 / 3;
    }

    .ut-ansatz {
        padding: 4rem 10% 2rem !important;
        text-align: center;
    }

    .ut-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2rem !important;
        max-width: 1200px;
        margin: 0 auto;
    }

    .flip-card {
        height: 350px;
    }

    .site-footer {
        padding: 4rem 2rem !important;
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 2rem !important;
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .footer-legal-links {
        margin: 2rem auto 0 !important;
        justify-content: center;
    }
}

/* ============================================================
   SMALL MOBILE: 480px and below
   ============================================================ */
@media (max-width: 480px) {
    .hero {
        padding-top: 5rem;
        padding-left: 5%;
        padding-right: 5%;
    }

    .line-1, .line-2 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .line-4 {
        font-size: clamp(2.8rem, 13vw, 3.8rem) !important;
    }

    .intro-card {
        padding: 1.2rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .intro-text br {
        display: none;
    }

    .cta-section {
        padding: 6rem 5% 3rem;
    }

    .quote-main {
        font-size: 1.8rem;
    }

    .quote-footer-text {
        font-size: 0.95rem;
    }

    .impuls-section h2 {
        font-size: 1.6rem;
    }

    /* SV page: circle shrinks on small screens */
    .sv-page .sv-circle-section div[style*="width: 500px"] {
        width: 340px !important;
        height: 340px !important;
        padding: 1.2rem !important;
    }

    .sv-page .sv-circle-section .sv-circle-sun {
        width: 85px !important;
        top: 12px !important;
    }

    .sv-page .sv-circle-section div[style*="width: 500px"] h3 {
        font-size: 1.2rem !important;
        margin-top: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .sv-page .sv-circle-section div[style*="width: 500px"] p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
    }

    .sv-page .sv-circle-section div[style*="width: 500px"] img {
        width: 80px !important;
    }

    .ut-hero-title span:first-child {
        font-size: 13vw !important;
    }
    .ut-hero-title span.signature {
        font-size: 16vw !important;
        margin-top: -1vw !important;
    }

    .ka-hero-title {
        font-size: 2.4rem;
    }

    .ka-signature-white {
        font-size: 2.8rem;
    }
}

/* ============================================================
   SV PAGE MOBILE OVERRIDES (inline style overrides)
   ============================================================ */
.sv-page .sv-hero {
    min-height: 100vh !important;
    padding-bottom: 6rem !important;
}

.sv-page .sv-hero-content {
    top: 31% !important;
    right: 12% !important;
}

.sv-page .intro-card {
    max-width: 860px !important;
    margin: 2rem auto -3.5rem !important;
    top: 2.5rem;
    padding: 1.6rem 2.35rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 250, 243, 0.96) 100%) !important;
    border: 1px solid rgba(196, 142, 25, 0.16);
    border-radius: 24px;
    box-shadow: 0 22px 52px rgba(10, 26, 47, 0.12), 0 8px 20px rgba(10, 26, 47, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sv-page .intro-card p {
    max-width: 46ch;
    margin: 0 auto;
    font-size: 1.14rem !important;
    line-height: 1.48 !important;
    color: rgba(10, 26, 47, 0.86) !important;
    text-wrap: pretty;
}

.sv-page .sv-intro {
    padding: 8rem 8% 2.5rem !important;
}

.sv-page .sv-intro h2 {
    font-size: 2.2rem !important;
    line-height: 1.55 !important;
}

.sv-page .sv-intro h2 .signature.gold-text {
    font-size: 5rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.55rem !important;
}

body.sv-page {
    --sv-hero-image: url('images/nzbabe-9078 (1).jpg');
    --sv-hero-pos-x: 50%;
    --sv-hero-pos-y: 50%;
    --sv-hero-size: cover;
    --sv-hero-shift-x: 0px;
    --sv-hero-shift-y: 0px;
    --sv-hero-scale: 1;
    --sv-hero-mobile-pos-x: var(--sv-hero-pos-x);
    --sv-hero-mobile-pos-y: var(--sv-hero-pos-y);
    --sv-hero-mobile-size: var(--sv-hero-size);
    --sv-hero-mobile-shift-x: var(--sv-hero-shift-x);
    --sv-hero-mobile-shift-y: var(--sv-hero-shift-y);
    --sv-hero-mobile-scale: var(--sv-hero-scale);
    background-color: transparent !important;
}

body.sv-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--sv-hero-image);
    background-repeat: no-repeat;
    background-size: var(--sv-hero-size);
    background-position: var(--sv-hero-pos-x) var(--sv-hero-pos-y);
    transform: translate(var(--sv-hero-shift-x), var(--sv-hero-shift-y)) scale(var(--sv-hero-scale));
    transform-origin: center center;
    z-index: -10;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.sv-page::before {
        background-size: var(--sv-hero-mobile-size);
        background-position: var(--sv-hero-mobile-pos-x) var(--sv-hero-mobile-pos-y);
        transform: translate(var(--sv-hero-mobile-shift-x), var(--sv-hero-mobile-shift-y)) scale(var(--sv-hero-mobile-scale));
    }
}

.sv-page .sv-hero {
    background-image: none !important;
    background-color: transparent !important;
}

.sv-page .sv-intro,
.sv-page .sv-steps,
.sv-page .sv-why-me {
    background-color: var(--color-cream);
    box-shadow: 0 0 0 100vw var(--color-cream);
    clip-path: inset(-2px -100vw -2px -100vw);
    border-radius: 0;
}

.sv-page .sv-circle-section {
    padding: 1.5rem 8% 5rem !important;
    overflow: clip !important;
    background-color: transparent !important;
}

.sv-page .sv-circle-card {
    --sv-circle-progress: 0;
    background-color: transparent !important;
    box-shadow: 0 0 0 100vw var(--color-cream), inset 0 20px 40px rgba(10, 26, 47, 0.12) !important;
    overflow: visible;
    isolation: isolate;
}

.sv-page .sv-circle-card > * {
    position: relative;
    z-index: 1;
}

.sv-page .sv-circle-card::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        rgba(196, 142, 25, 0.95) 0deg,
        rgba(196, 142, 25, 0.95) calc((var(--sv-circle-progress) * 179deg) + 1deg),
        rgba(196, 142, 25, 0) calc((var(--sv-circle-progress) * 179deg) + 1.4deg),
        rgba(196, 142, 25, 0) calc(358.6deg - (var(--sv-circle-progress) * 179deg)),
        rgba(196, 142, 25, 0.95) calc(359deg - (var(--sv-circle-progress) * 179deg)),
        rgba(196, 142, 25, 0.95) 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: calc(0.12 + (var(--sv-circle-progress) * 0.88));
    box-shadow: 0 0 0 1px rgba(196, 142, 25, 0.04), 0 12px 28px rgba(196, 142, 25, 0.16);
    pointer-events: none;
    z-index: 0;
}


.sv-page .sv-circle-sun {
    transform-origin: center;
}

.sv-page .sv-circle-card h3,
.sv-page .sv-circle-card p {
    text-shadow: 0 1px 18px rgba(253, 250, 243, 0.68);
}

.sv-page .sv-circle-section div[style*="width: 500px"] {
    width: 420px !important;
    height: 420px !important;
    padding: 2.8rem !important;
}

.sv-page .sv-circle-section div[style*="width: 500px"] img {
    width: 120px !important;
    top: 28px !important;
}

.sv-page .sv-circle-section div[style*="width: 500px"] h3 {
    font-size: 1.55rem !important;
    margin-top: 2.2rem !important;
    margin-bottom: 0.9rem !important;
}

.sv-page .sv-circle-section div[style*="width: 500px"] p {
    font-size: 1.03rem !important;
    line-height: 1.55 !important;
}

.sv-page .sv-steps {
    padding: 1rem 8% 5rem !important;
    max-width: 1040px !important;
    gap: 2.1rem !important;
}

.sv-page .sv-steps > div {
    max-width: 62% !important;
}

.sv-page .sv-steps .signature.gold-text {
    font-size: 4.1rem !important;
}

.sv-page .sv-steps div[style*="margin-bottom: -2rem"] {
    margin-bottom: -1.35rem !important;
}

.sv-page .sv-steps div[style*="padding: 2.5rem 3rem"] {
    padding: 1.85rem 2.2rem !important;
}

.sv-page .sv-steps p {
    font-size: 1.08rem !important;
    line-height: 1.58 !important;
}

.sv-page .sv-coaching-fit {
    padding: 3rem 8% 6.5rem !important;
    max-width: 920px !important;
    margin-bottom: 0 !important;
}

.sv-page .sv-coaching-fit h2 {
    font-size: 3rem !important;
    margin-bottom: 2rem !important;
}

.sv-page .sv-coaching-fit ul {
    font-size: 1.08rem !important;
    line-height: 1.6 !important;
}

.sv-page .sv-coaching-fit li {
    margin-bottom: 0.35rem !important;
}

.sv-page .sv-why-me {
    padding: 3rem 8% 5.5rem !important;
    gap: 2.5rem !important;
    align-items: center !important;
}

.sv-page .sv-why-me .sv-why-text {
    max-width: 36rem;
}

.sv-page .sv-why-me .sv-why-text h2 {
    font-size: 3.8rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 0.92 !important;
}

.sv-page .sv-why-me .sv-why-text p {
    font-size: 1.08rem !important;
    line-height: 1.58 !important;
    margin-bottom: 1.2rem !important;
    text-align: left !important;
    text-wrap: pretty;
}

.sv-page .sv-why-me .sv-why-text strong {
    display: inline-block;
    margin-bottom: 0.3rem;
}

.sv-page .sv-why-me .sv-why-img div[style*="max-width: 450px"] {
    max-width: 390px !important;
}

.sv-page .sv-why-portrait {
    --sv-why-ring-progress: 0;
    display: inline-block;
    aspect-ratio: 1 / 1;
    line-height: 0;
    isolation: isolate;
    overflow: visible;
}

.sv-page .sv-why-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.sv-page .sv-why-portrait::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(
        from 0deg,
        rgba(196, 142, 25, 0.95) 0deg,
        rgba(196, 142, 25, 0.95) calc((var(--sv-why-ring-progress) * 179deg) + 1deg),
        rgba(196, 142, 25, 0) calc((var(--sv-why-ring-progress) * 179deg) + 1.4deg),
        rgba(196, 142, 25, 0) calc(358.6deg - (var(--sv-why-ring-progress) * 179deg)),
        rgba(196, 142, 25, 0.95) calc(359deg - (var(--sv-why-ring-progress) * 179deg)),
        rgba(196, 142, 25, 0.95) 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: calc(0.12 + (var(--sv-why-ring-progress) * 0.88));
    filter: drop-shadow(0 0 8px rgba(230, 193, 91, 0.28)) drop-shadow(0 0 18px rgba(196, 142, 25, 0.2));
    pointer-events: none;
    z-index: 1;
}

.sv-page .sv-why-portrait::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 0;
}

.sv-page .sv-why-portrait.is-complete::after {
    opacity: 0;
}

.sv-page .sv-why-me .sv-why-img p {
    max-width: 24ch;
    margin: 1.25rem auto 0;
    font-size: 1.04rem !important;
    line-height: 1.55 !important;
}

.about-page .am-media-text .cta-btn {
    min-width: 0;
    width: fit-content;
}

@media (max-width: 1100px) {
    .sv-page .sv-hero-content {
        right: 11% !important;
    }

    .sv-page .sv-steps > div {
        max-width: 72% !important;
    }

    .sv-page .sv-why-me {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr) !important;
        gap: 2rem !important;
    }

    .sv-page .sv-why-me .sv-why-text h2 {
        font-size: 3.3rem !important;
    }

    .sv-page .sv-why-me .sv-why-img div[style*="max-width: 450px"] {
        max-width: 340px !important;
    }

    .sv-page .sv-why-portrait::before {
        inset: -7px;
        padding: 2px;
    }

    .sv-page .sv-why-portrait::after {
        inset: -14px;
    }
}

@media (max-width: 768px) {
    .sv-hero {
        min-height: 100svh !important;
        background-attachment: scroll !important;
        padding-bottom: 4rem !important;
    }

    .sv-hero-content {
        top: 32.7% !important;
        right: 31.0% !important;
    }

    .sv-hero-title span.signature {
        font-size: 3.2rem !important;
    }

    .sv-intro {
        padding: 2rem 5% 3rem !important;
    }

    .sv-intro h2 {
        font-size: 1.8rem !important;
        line-height: 1.8 !important;
    }

    .sv-intro h2 .signature.gold-text {
        font-size: 3.5rem !important;
    }

    .sv-circle-section {
        padding: 1rem 5% 5rem !important;
        overflow: hidden !important;
    }

    .sv-page .sv-circle-card::before {
        inset: -7px;
        padding: 2px;
    }

    .sv-page .sv-circle-section .sv-circle-sun {
        position: static !important;
        top: auto !important;
        margin-bottom: 5px !important;
    }

    .sv-page .sv-circle-section div[style*="width: 500px"] h3 {
        margin-top: 0 !important;
    }

    .sv-steps > div {
        max-width: 100% !important;
        align-self: stretch !important;
    }

    .sv-steps .signature.gold-text {
        font-size: 3rem !important;
    }

    .sv-steps div[style*="padding: 2.5rem 3rem"] {
        padding: 1.5rem 1.5rem !important;
    }

    .sv-steps p {
        font-size: 1.05rem !important;
    }

    .sv-coaching-fit {
        padding: 2.5rem 5% 5rem !important;
    }

    .sv-coaching-fit h2 {
        font-size: 2rem !important;
    }

    .sv-coaching-fit ul {
        font-size: 1.05rem !important;
        padding-left: 1.2rem !important;
    }

    .sv-why-me {
        grid-template-columns: 1fr !important;
        padding: 2.5rem 5% 5rem !important;
        gap: 2rem !important;
    }

    .sv-why-me .sv-why-text h2 {
        font-size: 3rem !important;
    }

    .sv-why-me .sv-why-text p {
        font-size: 1.05rem !important;
        text-align: left !important;
    }

    .sv-why-me .sv-why-img {
        text-align: center !important;
    }

    .sv-why-me .sv-why-img div[style*="max-width: 450px"] {
        max-width: 300px !important;
    }
}

/* ============================================================
   KONTAKT PAGE MOBILE ENHANCEMENTS
   ============================================================ */
@media (max-width: 768px) {
    .kontakt-split {
        grid-template-columns: 1fr !important;
        grid-template-rows: 50vh auto !important;
    }

    .kontakt-split-image img {
        object-position: center 0% !important;
    }

    .kontakt-split-form {
        padding: 3.75rem 1.5rem 3rem !important;
    }

    .kontakt-form input[type="text"],
    .kontakt-form input[type="email"],
    .kontakt-form textarea {
        font-size: 16px !important;
        padding: 0.9rem 1rem !important;
        min-height: 48px;
    }

    .kontakt-form button {
        min-height: 48px;
        font-size: 1rem !important;
    }
}

/* ============================================================
   LEGAL PAGES MOBILE ENHANCEMENTS
   ============================================================ */
@media (max-width: 768px) {
    .legal-nav {
        padding: 1rem 0 0.8rem;
    }

    .legal-content {
        padding: 1.5rem 1rem 3rem;
    }
}

/* ============================================================
   TOUCH-FRIENDLY & ACCESSIBILITY
   ============================================================ */
@media (pointer: coarse) {
    /* Minimum 44px tap targets */
    .cta-btn,
    .ka-button,
    .kontakt-form button,
    .nav-links a,
    .dropdown-toggle,
    .dropdown-menu a,
    .footer-legal-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Disable hover-dependent flip on touch devices */
    .flip-card:hover .flip-card-inner {
        transform: none;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }
}

/* =========================================
   Schritt für Schritt Section Animation
   ========================================= */
.sv-page section.sv-steps.reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.sv-page .sv-steps > div {
    opacity: 0;
    will-change: transform, opacity, filter;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center center;
}

.sv-page .sv-steps > div:nth-child(1) {
    transform: translateX(-40px) translateY(80px) rotate(-4deg);
    filter: blur(8px);
}

.sv-page .sv-steps > div:nth-child(2) {
    transform: translateX(40px) translateY(80px) rotate(4deg);
    filter: blur(8px);
}

.sv-page .sv-steps > div:nth-child(3) {
    transform: translateX(-40px) translateY(80px) rotate(-4deg);
    filter: blur(8px);
}

.sv-page .sv-steps.active > div {
    opacity: 1;
    transform: translate(0) rotate(0) !important;
    filter: blur(0);
}

.sv-page .sv-steps.active > div:nth-child(1) { transition-delay: 0s; }
.sv-page .sv-steps.active > div:nth-child(2) { transition-delay: 0.15s; }
.sv-page .sv-steps.active > div:nth-child(3) { transition-delay: 0.3s; }

/* Signature drawing effect */
.sv-page .sv-steps > div .signature.gold-text {
    opacity: 0;
    transform: translateY(20px) rotate(-10deg) scale(0.85) !important;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease-out;
}

.sv-page .sv-steps.active > div .signature.gold-text {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1) !important;
}

.sv-page .sv-steps.active > div:nth-child(1) .signature.gold-text { transition-delay: 0.4s; }
.sv-page .sv-steps.active > div:nth-child(2) .signature.gold-text { transition-delay: 0.55s; }
.sv-page .sv-steps.active > div:nth-child(3) .signature.gold-text { transition-delay: 0.7s; }

/* Interactive Hover effect on the boxes */
.sv-page .sv-steps > div > div:nth-child(2) {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease-out !important;
}

.sv-page .sv-steps > div:hover > div:nth-child(2) {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(196, 142, 25, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
}

@media (max-width: 768px) {
    .sv-page .sv-steps > div:nth-child(1),
    .sv-page .sv-steps > div:nth-child(3) {
        transform: translateY(60px) rotate(-2deg);
    }
    .sv-page .sv-steps > div:nth-child(2) {
        transform: translateY(60px) rotate(2deg);
    }
}



/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* =========================================
   Whole page: remove reveal animations from backgrounds
   ========================================= */
body.sv-page > section.reveal {
    opacity: 1 !important;
    transform: none !important;
    /* Do not reset transition here, children must inherit inline delay from JS */
}

/* Apply staggered reveal to children instead of the section wrapper */
body.sv-page > section.reveal:not(.sv-steps) > * {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform !important;
    transition-duration: 1s !important;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
    /* Inner children inherit the 0.05s increments set on the section by JS */
    transition-delay: inherit !important;
}

body.sv-page > section.reveal.active:not(.sv-steps) > * {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* --- FIX FOR SECTION CLIPPING AND GAPS ON SV PAGE --- */
body.sv-page .sv-coaching-fit {
    /* Convert the 4rem inline HTML margin-bottom to padding-bottom to prevent a transparent gap */
    margin-bottom: 0 !important;
    padding-bottom: 12rem !important; /* 8rem inline + 4rem margin */
}

/* On smaller screens override padding appropriately so no margin is used */
@media (max-width: 1024px) {
    body.sv-page .sv-coaching-fit {
        padding-bottom: 6.5rem !important; /* 5rem + 1.5rem margin */
    }
}

/* Ensure sv-coaching-fit background is fully transparent */
body.sv-page .sv-coaching-fit {
    background-color: transparent !important;
    box-shadow: none !important;
}
body.sv-page .sv-coaching-fit {
    clip-path: none !important;
}


/* ============================================================
   MOBILE PLACEMENT & STRUCTURE OPTIMIZATIONS
   All changes are scoped inside max-width: 768px and page
   class selectors — desktop is never touched.
   ============================================================ */
@media (max-width: 768px) {

    /* ---- Hero title sizes: prevent overflow on narrower screens ---- */
    h1, .hero-title, .ka-hero-title, .sv-hero-title, .ut-hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
        line-height: 1.15;
    }

    /* Home page hero text spans (line-1 / line-2 use their own class) */
    .line-1, .line-2 {
        font-size: clamp(2.8rem, 9vw, 5rem);
        letter-spacing: 0.06rem;
    }
    /* "Potenzial" signature line: scales to viewport width */
    .line-4 {
        font-size: clamp(3rem, 11vw, 5.5rem) !important;
    }

    /* ---- Hero content: vertically centred on standard pages ---- */
    .hero-content {
        width: 90% !important;
        left: 5% !important;
        right: auto !important;
        top: 50% !important;
        transform: translate(-64px, calc(-50% - 259px)) !important;
        text-align: center !important;
        margin: 0 !important;
        position: absolute !important;
        transition: transform 0.05s ease-out !important;
    }
    .ut-hero-content, .ka-hero-content {
        width: 90% !important;
        left: 5% !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        text-align: center !important;
        margin: 0 !important;
        position: absolute !important;
        transition: transform 0.05s ease-out !important;
    }

    .ut-page .ut-hero-content {
        top: 33% !important;
    }

    /* SV page: hero text near bottom so the person stays visible above */
    .sv-page .sv-hero-content {
        width: 90% !important;
        left: 5% !important;
        right: auto !important;
        top: auto !important;
        bottom: 7rem !important;
        transform: none !important;
        text-align: center !important;
        margin: 0 !important;
        position: absolute !important;
    }

    /* ---- KA page: clean stacking — remove hero overlap that needs 11rem padding to work ---- */
    .ka-dark-section {
        margin-top: 0 !important;
        padding: 4rem 5% 3.5rem !important;
    }

    /* ---- UT page: CTA heading fits single column ---- */
    .ut-cta h2 {
        font-size: clamp(1.6rem, 5vw, 2rem) !important;
        line-height: 1.7 !important;
    }
    /* "Business" signature inside the UT CTA heading */
    .ut-cta h2 .signature {
        font-size: clamp(3rem, 12vw, 5rem) !important;
        margin: -0.5rem 0 -0.2rem !important;
    }

    /* ---- About page: compact section paddings on small screens ---- */
    .about-page .am-verbinderin    { padding: 3.5rem 5% 4rem; }
    .about-page .am-spirituality   { padding: 4rem 5%; }
    .about-page .am-geschichte     { padding: 3.5rem 5% 4rem; }
    .about-page .am-vision-cta     { padding: 3.5rem 5% 3rem; }
    .about-page .am-cards          { padding: 3rem 5% 3.5rem; }
    .about-page .am-media          { padding: 3.5rem 5% 3rem; }
    .about-page .am-slideshow      { padding: 3.5rem 0; }
    .about-page .am-slideshow-header { padding: 0 5%; }

    /* About page hero card: smaller spacing and padding on narrow devices */
    .about-page .am-hero-card {
        margin-top: -50px;
        padding: 1.6rem 1.4rem;
    }

    /* ---- Images: always scale within viewport ---- */
    img {
        max-width: 100%;
        height: auto;
    }

    /* ---- Navbar spacing ---- */
    .navbar {
        padding: 1rem 1.5rem !important;
    }

    /* ---- Grids: single column on mobile ---- */
    .ka-image-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* SV circle card: viewport-based size in the 481 px–768 px range
   (≤ 480 px is handled by the existing 480px block with 300px) */
@media (min-width: 481px) and (max-width: 768px) {
    .sv-page .sv-circle-section div[style*="width: 500px"] {
        width: min(380px, calc(100vw - 40px)) !important;
        height: min(380px, calc(100vw - 40px)) !important;
        padding: 2.2rem !important;
    }
    .sv-page .sv-circle-section div[style*="width: 500px"] img {
        position: relative !important;
        top: auto !important;
        margin-bottom: 5px !important;
    }
    .sv-page .sv-circle-section div[style*="width: 500px"] h3 {
        margin-top: 0 !important;
    }
}

/* ============================================================
   SV PAGE: MOBILE FIXES
   These rules are placed AFTER the non-media .sv-page overrides
   so they correctly win the cascade on mobile viewports.
   ============================================================ */

/* Circle card ≤ 480px: override the always-on 420px non-media rule */
@media (max-width: 480px) {
    .sv-page .sv-circle-section div[style*="width: 500px"] {
        width: min(300px, calc(100vw - 40px)) !important;
        height: min(300px, calc(100vw - 40px)) !important;
        padding: 1.5rem !important;
    }
    .sv-page .sv-circle-section div[style*="width: 500px"] img {
        width: 75px !important;
        position: relative !important;
        top: auto !important;
        margin-top: -20px !important;
        margin-bottom: 5px !important;
    }
    .sv-page .sv-circle-section .sv-circle-sun {
        width: 75px !important;
        position: relative !important;
        top: auto !important;
        margin-top: -20px !important;
        margin-bottom: 5px !important;
    }
    .sv-page .sv-circle-section div[style*="width: 500px"] h3 {
        font-size: 1.15rem !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    .sv-page .sv-circle-section div[style*="width: 500px"] p {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
    }
}

/* SV page fixes at ≤ 768px */
@media (max-width: 768px) {
    /* "JETZT" signature: override non-media 5rem → fits viewport */
    .sv-page .sv-intro h2 {
        font-size: 1.7rem !important;
        line-height: 1.65 !important;
    }
    .sv-page .sv-intro h2 .signature.gold-text {
        font-size: 3.2rem !important;
    }

    /* Steps: full-width boxes (override non-media 62% max-width) */
    .sv-page .sv-steps > div {
        max-width: 100% !important;
        align-self: stretch !important;
    }
    .sv-page .sv-steps .signature.gold-text {
        font-size: 2.8rem !important;
    }
    .sv-page .sv-steps div[style*="padding: 2.5rem 3rem"] {
        padding: 1.25rem 1.5rem !important;
    }
    .sv-page .sv-steps p {
        font-size: 1rem !important;
        line-height: 1.55 !important;
    }

    /* Coaching fit: tighten heading */
    .sv-page .sv-coaching-fit h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* "Warum mit mir": switch to single column
       Override the 1100px @media .sv-page rule (minmax(320px,…)) */
    .sv-page .sv-why-me {
        grid-template-columns: 1fr !important;
        padding: 2.5rem 5% 4rem !important;
        gap: 2rem !important;
    }
    .sv-page .sv-why-me .sv-why-text p {
        text-align: left !important;
    }
    .sv-page .sv-why-me .sv-why-img {
        text-align: center !important;
    }
    .sv-page .sv-why-me .sv-why-img div[style*="max-width: 450px"] {
        max-width: min(280px, 75vw) !important;
    }
}
