@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:wght@400;500;600&family=Inter:wght@400;600;800&display=swap');

/* Bearbeitungszustand: Gut 1 */

:root {
    --cdu-turquoise: #52B7C1; /* Türkis */
    --cdu-magenta: rgb(231, 0, 140);  /* Magenta aktualisiert */
    --cdu-gold: rgb(255, 190, 40);    /* Leuchtgelb aktualisiert */
    --cdu-green: #009B55;    /* Sattes Grün */
    --cdu-white: #FFFFFF;    /* Weiß */
    --cdu-blue: #000000;     /* Schwarz (ersetzt bisheriges Blau) */
    --cdu-darkgray: #333333;
    --cdu-lightgray: #F5F5F5;
}

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

body {
    font-family: 'IBM Plex Serif', serif;
    line-height: 1.6;
    color: var(--cdu-blue);
    background-color: var(--cdu-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

header {
    background-color: var(--cdu-white);
    border-bottom: 4px solid var(--cdu-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--cdu-blue);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-name {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-name h1 { 
    font-size: 2.25rem; 
    margin: 0; 
    color: var(--cdu-magenta); 
    font-family: 'IBM Plex Serif', serif;
    word-break: keep-all;
    hyphens: none;
}

.city-logo { height: 80px; width: auto; }

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--cdu-blue);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

nav { display: flex; gap: 32px; }

nav a {
    color: var(--cdu-blue);
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

nav a:hover { color: var(--cdu-turquoise); }

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--cdu-turquoise);
    transform: scaleX(0);
    transition: transform 0.2s;
}

nav a:hover::after { transform: scaleX(1); }

.hero-section {
    background-color: var(--cdu-white);
    color: var(--cdu-blue);
    padding: 80px 0;
    margin-bottom: 64px;
    position: relative;
    background-image: url('bilder/RathausHintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--cdu-gold);
}

.hero-content { max-width: 800px; margin: 0 auto; text-align: center; }
.hero-badges { display: flex; gap: 50px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-badge { display: flex; align-items: center; justify-content: center; width: 300px; height: 300px; border-radius: 50%; border: 4px solid var(--cdu-turquoise); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); background-color: var(--cdu-white); text-align: center; padding: 4px; }
.hero-badge--title { 
    border-color: var(--cdu-gold); 
    border-radius: 25%;
    transform: rotate(-135deg);
    background-color: var(--cdu-gold);
    border: none;
    padding: 0;
    animation: squareRotate 1s ease-out forwards;
    position: relative;
    z-index: 2;
}

@keyframes squareRotate {
    0% {
        transform: rotate(-135deg);
        opacity: 0;
    }
    100% {
        transform: rotate(45deg);
        opacity: 1;
    }
}
.hero-badge--subtitle { 
    border: none !important;
    background-color: transparent !important;
    border-radius: 25%;
    transform: rotate(45deg);
    padding: 0;
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}
.hero-badge__inner { width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 6px; text-align: center; }
.hero-badge--title .hero-badge__inner { 
    background-color: transparent;
    border-radius: 25%;
    transform: rotate(135deg);
    animation: innerSquareRotate 1s ease-out forwards;
    opacity: 0;
}

@keyframes innerSquareRotate {
    0% {
        transform: rotate(135deg);
        opacity: 0;
    }
    100% {
        transform: rotate(-45deg);
        opacity: 1;
    }
}
.hero-badge--subtitle .hero-badge__inner { 
    background-color: var(--cdu-white);
    border-radius: 25%;
    transform: rotate(-45deg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 4px solid var(--cdu-turquoise);
    box-shadow: inset 0 0 0 4px var(--cdu-gold);
}

.hero-badge--subtitle .hero-badge__inner p {
    margin-top: 8px;
}
.hero-badge h2 { margin: 0; font-size: clamp(3rem, 10vw, 4rem); line-height: 0.98; color: #FFFFFF; font-family: 'IBM Plex Serif', serif; letter-spacing: -0.01em; }
.hero-badge h2 .hero-badge__line1 { display: inline-block; font-size: 0.6em; line-height: 1; letter-spacing: -0.015em; }
.hero-badge h2 .hero-badge__line3 { display: inline-block; font-size: 1.2em; }
.hero-badge h2 .hero-badge__line2 { display: inline-block; }
.hero-badge h2 .hero-badge__line3 { display: inline-block; }
.hero-badge p { margin: 0; font-size: clamp(1.55rem, 4.6vw, 2.2rem); line-height: 1.18; color: #FFFFFF; font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.012em; }
.hero-badge--subtitle p { 
    line-height: 1.34; 
    letter-spacing: -0.02em; 
    word-break: keep-all; 
    hyphens: none;
    font-weight: 800;
}
.hero-badge--subtitle p .hero-sub__line1 { display: inline-block; font-size: 1.02em; margin-bottom: 0.15em; }
.hero-badge--subtitle p .hero-sub__line2 { display: inline-block; font-size: 1.6em; }
.hero-badge--subtitle p .hero-sub__line3 { display: inline-block; font-size: 1.9em; }

.hero-image-square {
    width: 300px;
    height: 300px;
    margin: 30px auto 48px auto;
    display: block;
    position: relative;
    transform: rotate(45deg);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 25%;
    border: 4px solid var(--cdu-turquoise);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform-origin: center;
    opacity: 0;
    transform: rotate(45deg) scale(0);
}

.hero-image-square img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.18);
    transform-origin: center center;
}

.hero-image-square.animate {
    animation: heroSquareGrow 0.8s ease-out forwards;
}

@keyframes heroSquareGrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}

.hero-content h2 { color: var(--cdu-turquoise); font-size: 3.75rem; margin-bottom: 1.5rem; line-height: 1.05; animation: headingScale 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); font-family: 'IBM Plex Serif', serif; }

@keyframes headingScale {
    0% { opacity: 0; transform: scale(1.2); }
    60% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-content h2.animate { animation: headingScale 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Staggered, theatrical word reveal inside the circle */
.hero-badge h2 span { opacity: 0; transform: translateY(12px) scale(0.96); filter: blur(2px); display: inline-block; }
.hero-badge h2 span.revealed { opacity: 1; filter: blur(0); animation: wordEntrance 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes wordEntrance {
    0% { opacity: 0; transform: translateY(12px) scale(0.96); letter-spacing: 0.02em; }
    60% { opacity: 1; transform: translateY(-2px) scale(1.06); letter-spacing: 0.01em; }
    100% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: 0em; }
}
/* Subtle extra emphasis for the last word */
.hero-badge h2 .hero-badge__line3.revealed { animation: wordEntrance 900ms cubic-bezier(0.22, 1, 0.36, 1) both, wordEmphasis 800ms 700ms ease-out both; }
@keyframes wordEmphasis {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-1px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

.hero-section p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; font-family: 'Inter', sans-serif; color: var(--cdu-green); }

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--cdu-turquoise);
    color: var(--cdu-white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    border-radius: 8px;
}

.cta-button:hover { background-color: var(--cdu-gold); color: var(--cdu-blue); transform: translateY(-2px); }

.content { padding: 64px 0; background-image: url('bilder/RathausHintergrund.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; }

.termine {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.termin {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    overflow: hidden;
    border: 1px solid var(--cdu-lightgray);
}

.termin:hover { transform: translateY(-8px); }

.termin img { width: 100%; height: 240px; object-fit: cover; }

.termin-info { padding: 24px; }

.termin-datum {
    color: var(--cdu-turquoise);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 64px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
}

.social-media a { color: var(--cdu-green); text-decoration: none; font-weight: 600; transition: color 0.2s; font-size: 1rem; }

.social-media a:hover { color: var(--cdu-gold); }

footer {
    background-color: var(--cdu-white);
    color: var(--cdu-blue);
    padding: 64px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--cdu-turquoise);
}

footer a { color: var(--cdu-blue); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--cdu-turquoise); }

footer a[href^="tel:"],
footer a[href^="tel:"]:link,
footer a[href^="tel:"]:visited { color: var(--cdu-blue); text-decoration: none; opacity: 1; transition: color 0.2s; }

footer a[href^="tel:"]:hover,
footer a[href^="tel:"]:active { color: var(--cdu-turquoise); text-decoration: none; }

footer p { opacity: 0.9; margin-bottom: 8px; }

.aqua-bar { height: 4px; background-color: var(--cdu-turquoise); width: 100%; }

.facebook-feed-container { background: rgba(255, 255, 255, 0.5); padding: 40px 0; margin: 40px 0; }

.facebook-feed-section {
    background-color: var(--cdu-white);
    padding: 64px 0;
    margin: 0;
}

.facebook-feed-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 1200px;
}

.facebook-feed-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

/* Ensure Facebook iframe is visible and scrollable */
.facebook-feed-wrapper iframe {
    width: 100% !important;
    max-width: 500px !important;
    border: none !important;
    display: block;
    margin: 0 auto;
    height: 1200px !important;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
    .facebook-feed-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .facebook-feed-wrapper iframe {
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Fallback für Browser, die iframes blockieren */
.facebook-feed-noscript,
.facebook-feed-fallback-link {
    text-align: center;
    padding: 40px 20px;
    background: var(--cdu-lightgray);
    border-radius: 8px;
    margin-top: 20px;
}

.facebook-feed-noscript p,
.facebook-feed-fallback-link p {
    margin-bottom: 20px;
    color: var(--cdu-blue);
}

.facebook-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background-color: var(--cdu-turquoise);
    color: var(--cdu-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facebook-link-button:hover,
.facebook-link-button:focus {
    background-color: var(--cdu-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.facebook-link-button img {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .facebook-feed-section {
        padding: 40px 0;
    }
    
    .facebook-feed-wrapper {
        min-height: 800px;
    }
    
    .facebook-feed-wrapper iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 800px !important;
    }
}

.consent-buttons { display: flex; gap: 20px; justify-content: center; }
.consent-accept { background: var(--cdu-turquoise); color: white; padding: 12px 24px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 800; transition: background-color 0.2s; }
.consent-accept:hover { background: var(--cdu-blue); }
.consent-decline { background: var(--cdu-lightgray); color: var(--cdu-blue); padding: 12px 24px; border: 1px solid var(--cdu-blue); cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 800; transition: all 0.2s; }
.consent-decline:hover { background: var(--cdu-blue); color: white; }

.legal-links { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.legal-links a { color: var(--cdu-blue); text-decoration: none; margin: 0 16px; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.2s; }
.legal-links a:hover { opacity: 1; }

.page-transition { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--cdu-white); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 1s ease-in-out; }
.page-transition.active { opacity: 1; pointer-events: auto; }
.transition-circle { 
    position: fixed; 
    width: 300px; 
    height: 300px; 
    border-radius: 25%; 
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-origin: center center;
    top: -400px;
    left: -400px;
    opacity: 0;
    visibility: hidden;
}
.transition-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 25%; border: 4px solid var(--cdu-turquoise); transform: rotate(-45deg); }
.transition-circle.animate { 
    transform: translate(-50%, -50%) rotate(45deg) scale(1.1) !important; 
    top: 50% !important; 
    left: 50% !important;
    opacity: 1;
    visibility: visible;
}

/* Impressum / Datenschutz specifics */
.narrow-container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
h1.page-title { font-size: 2.25rem; color: var(--cdu-magenta); border-bottom: 3px solid var(--cdu-turquoise); padding-bottom: 1rem; margin-bottom: 1.5rem; }
h2.section-title { font-size: 1.5rem; color: var(--cdu-green); margin-top: 2rem; }
p.paragraph { margin-bottom: 1rem; }
.back-link { display: inline-block; margin-top: 2rem; color: var(--cdu-white); text-decoration: none; transition: color 0.2s, background-color 0.2s; border-radius: 8px; background-color: var(--cdu-turquoise); padding: 12px 24px; font-weight: 600; }
.back-link:hover { background-color: var(--cdu-gold); color: var(--cdu-blue); }
.city-logo-responsive { height: 80px; width: auto; }

.list-default { margin-left: 20px; margin-bottom: 1rem; }

/* Kontakt specifics */
.contact-section { background-color: var(--cdu-white); color: var(--cdu-blue); padding: 80px 0; margin-bottom: 64px; position: relative; flex-grow: 1; }
.contact-content { max-width: 800px; margin: 0 auto; text-align: center; }

.contact-section .hero-image {
    width: 300px;
    height: 300px;
    margin: 30px auto;
    display: block;
    position: relative;
    transform: rotate(45deg);
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 25%;
    border: 4px solid var(--cdu-turquoise);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    transform-origin: center;
}

.contact-section .hero-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.18);
    transform-origin: center center;
}

.contact-section .hero-image.animate {
    animation: contactHeroGrow 0.8s ease-out forwards;
}

@keyframes contactHeroGrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }
}
.contact-info { background: var(--cdu-white); border-radius: 10px; padding: 40px; margin-top: 40px; color: var(--cdu-blue); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); }
.contact-info h2 { color: var(--cdu-blue); margin-bottom: 24px; font-family: 'Inter', sans-serif; }
.contact-info a { color: var(--cdu-blue); text-decoration: none; transition: color 0.2s; }
.contact-info a:hover { color: var(--cdu-turquoise); }
.back-button { display: inline-block; margin-top: 32px; padding: 12px 24px; background-color: var(--cdu-turquoise); color: var(--cdu-white); text-decoration: none; border-radius: 8px; transition: background-color 0.2s, color 0.2s; }
.back-button:link, .back-button:visited { color: var(--cdu-white); text-decoration: none; }
.contact-info .back-button { color: var(--cdu-white); }
.contact-info .back-button:link, .contact-info .back-button:visited { color: var(--cdu-white); }
.contact-info .back-button:hover { background-color: var(--cdu-gold); color: var(--cdu-blue); }
.contact-social { margin-top: 2rem; }
.contact-social-link { display: block; margin-bottom: 1rem; }

/* Spendenkonto specifics */
.account-field {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--cdu-lightgray);
    padding: 40px;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 8px;
}

.account-field p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.account-field p:first-child {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--cdu-blue);
    margin-bottom: 24px;
}

.account-field p strong {
    color: var(--cdu-blue);
}

/* Footer (Kontakt) */
footer.compact { padding: 32px 0; margin-top: auto; }
footer.compact p { text-align: center; opacity: 0.9; }
footer .legal-links { margin-top: 16px; text-align: center; }
footer .legal-links a { color: var(--cdu-blue); text-decoration: none; margin: 0 16px; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.2s; }
footer .legal-links a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-section h2 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
    /* Header adjustments for mobile */
    .logo-name {
        gap: 12px;
        flex-shrink: 1;
        min-width: 0;
    }
    
    .logo-name h1 {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
        flex-shrink: 1;
    }
    
    .city-logo {
        height: 60px;
        flex-shrink: 0;
    }
    
    .header-flex {
        gap: 12px;
    }
    
    .hero-badge { width: 220px; height: 220px; box-shadow: 0 3px 18px rgba(0, 0, 0, 0.06); }
    .hero-badge h2 { font-size: clamp(2.2rem, 13vw, 3.1rem); line-height: 0.98; }
    .hero-badge p { font-size: clamp(1.28rem, 5.2vw, 1.6rem); line-height: 1.15; }
    .hero-badge h2 .hero-badge__line1 { font-size: 0.48em; }
    .hero-badge h2 .hero-badge__line3 { font-size: 1.30em; }
    .hero-badge--subtitle p { line-height: 1.2; letter-spacing: -0.012em; }
    .hero-badge--subtitle p .hero-sub__line1 { font-size: 1.12em; }
    .hero-badge--subtitle p .hero-sub__line2 { font-size: 1.26em; }
    .hero-badge--subtitle p .hero-sub__line3 { font-size: 1.52em; }
    /* Stack circles vertically */
    .hero-content { display: flex; flex-direction: column; align-items: center; gap: 32px; }
    .hero-badges { display: flex; flex-direction: column; align-items: center; gap: 32px; }
    .hero-image-square { margin: 0 auto 32px auto; }

    /* Mobile burger menu */
    .hamburger { display: flex; z-index: 1001; }
    nav { display: none; position: fixed; inset: 0; background: var(--cdu-white); padding: 96px 24px 24px; flex-direction: column; align-items: center; gap: 24px; z-index: 1000; }
    nav a { font-size: 1.25rem; padding: 12px 0; }
    nav.active { display: flex; }
    .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 999; }
    .nav-backdrop.active { display: block; }

    .account-field {
        padding: 24px;
        margin: 40px 16px;
    }

    .account-field p {
        font-size: 1rem;
    }

    .account-field p:first-child {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo-name h1 {
        font-size: 1.35rem;
    }
    
    .city-logo {
        height: 55px;
    }
}

@media (max-width: 360px) {
    .logo-name h1 { 
        font-size: 1.25rem; 
    }
    .city-logo { 
        height: 45px; 
    }
}


/* Hero badge overrides to ensure white text on colored rectangles */
.hero-badge--title h2 { color: var(--cdu-magenta); }
.hero-badge--subtitle p { color: var(--cdu-turquoise); }

/* Make subtitle circle typography scale with its own circle width */
.hero-badge--subtitle { container-type: inline-size; }
@supports (font-size: 1cqw) {
    .hero-badge--subtitle p { font-size: clamp(1.1rem, 9cqw, 2.2rem); line-height: 1.3; }
    .hero-badge--subtitle p .hero-sub__line1 { font-size: 0.94em; }
    .hero-badge--subtitle p .hero-sub__line2 { font-size: 1.36em; }
    .hero-badge--subtitle p .hero-sub__line3 { font-size: 1.6em; }
}

/* Make title circle typography scale with its own circle width */
.hero-badge--title { container-type: inline-size; }
@supports (font-size: 1cqw) {
    .hero-badge--title h2 { font-size: clamp(2.6rem, 24cqw, 4.5rem); line-height: 0.96; }
    .hero-badge--title h2 .hero-badge__line1 { font-size: 0.48em; }
    .hero-badge--title h2 .hero-badge__line3 { font-size: 1.24em; }
}


/* Sequential reveal utility classes for hero circles */
.sequence-hidden { opacity: 0; transform: scale(0.96); pointer-events: none; }
.sequence-visible { opacity: 1; transform: scale(1); pointer-events: auto; transition: opacity 600ms ease, transform 600ms ease; }

/* Für subtitle: Rotation beibehalten */
.hero-badge--subtitle.sequence-visible {
    transform: rotate(45deg) scale(1) !important;
}
.hero-badge--subtitle.sequence-hidden {
    transform: rotate(45deg) scale(0.96) !important;
}

/* Subtitle (circle 2) fly-in animations per line */
@keyframes flyInLeft {
    0% { opacity: 0; transform: translateX(-28px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes flyInRight {
    0% { opacity: 0; transform: translateX(28px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: translateX(0) scale(1); }
    50% { transform: translateX(0) scale(1.3); }
    100% { transform: translateX(0) scale(1); }
}

/* start hidden until animated */
.hero-badge--subtitle .hero-sub__line1,
.hero-badge--subtitle .hero-sub__line2,
.hero-badge--subtitle .hero-sub__line3 { opacity: 0; }
/* apply animations with slight staggers */
.hero-badge--subtitle .hero-sub__line1.reveal-from-left { animation: flyInLeft 700ms ease-out forwards; }
.hero-badge--subtitle .hero-sub__line2.reveal-from-right { 
    animation: flyInRight 700ms 120ms ease-out forwards, 
               pulse 400ms 820ms ease-in-out;
}
.hero-badge--subtitle .hero-sub__line3.reveal-from-left { 
    animation: flyInLeft 700ms 240ms ease-out forwards, 
               pulse 400ms 1440ms ease-in-out;
}


/* Photo ring wrapper for contact page: outer border with transparent inner ring */
.photo-ring { width: 300px; height: 300px; border-radius: 50%; border: 4px solid var(--cdu-turquoise); padding: 4px; background: transparent; margin: 30px auto; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1); }
.photo-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; border: 4px solid var(--cdu-turquoise); }

