@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL@20..48,100..700,0..1');

/* ============ VIEW TRANSITIONS ============ */
@view-transition {
    navigation: auto;
}

:root {
    /* Farbpalette */
    --color-cream: #fbeed5;
    --color-white: #ffffff;
    --color-pink: #e6007e; /* Project magenta */
    --color-blue: #bde5fa; /* Project blue */
    --color-pink-light: #f9d5e8;
    --color-blue-light: #e8f5ff;
    --color-dark: #262626;
    --color-gray: #4a4a4a;
    --color-gray-light: #8a8a8a; /* Project light gray */

    /* Typographie */
    --font-display: 'Roboto Mono', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-icon: 'Material Symbols Outlined';

    /* Spacing */
    --spacing-unit: 1rem;
}

.material-symbols-outlined {
    font-family: var(--font-icon);
    font-weight: 600;
    font-style: normal;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-white);
    color: var(--color-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ SKIP LINK (Barrierefreiheit) ============ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    text-decoration: none;
}

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1.5rem;
    background: var(--color-pink);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.4);
    z-index: 9999;
}

.text-pink {
    color: var(--color-pink);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ HEADER ============ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    view-transition-name: site-header;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5rem;
}

nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

nav.active {
    display: flex;
}

.nav-sep {
    color: var(--color-pink);
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.6;
    user-select: none;
    margin: 0 0.5rem;
}

@media (min-width: 769px) {
    nav {
        display: flex;
    }
}

/* ============ NAVIGATION TOGGLE ADAPTATION ============ */
nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.6rem 0;
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

nav a:hover,
nav a:focus-visible {
    color: var(--color-pink);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 52px;
    height: 24px;
    border-radius: 999px;
    background: var(--color-gray-light);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: background-color 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    cursor: pointer;
}

.nav-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--color-white), var(--color-cream) 60%, var(--color-gray-light) 100%);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), background 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-gray);
}

nav a:hover .nav-toggle,
nav a:focus-visible .nav-toggle {
    background-color: var(--color-pink);
    box-shadow: 0 0 0 6px rgba(230, 0, 126, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: pulse 1.35s ease-in-out infinite;
}

nav a:hover .nav-toggle::before,
nav a:focus-visible .nav-toggle::before {
    transform: translateY(-50%) translateX(28px);
    background: radial-gradient(circle at 35% 35%, var(--color-white), var(--color-cream) 58%, var(--color-pink) 100%);
    box-shadow: 0 6px 12px rgba(217, 70, 239, 0.28);
}

nav a:hover .nav-label,
nav a:focus-visible .nav-label {
    color: var(--color-pink);
}

nav a.active .nav-toggle {
    background-color: var(--color-pink);
    box-shadow: 0 0 0 6px rgba(230, 0, 126, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
nav a.active .nav-toggle::before {
    transform: translateY(-50%) translateX(28px);
    background: radial-gradient(circle at 35% 35%, var(--color-white), var(--color-cream) 58%, var(--color-pink) 100%);
    box-shadow: 0 6px 12px rgba(217, 70, 239, 0.28);
}
nav a.active .nav-label {
    color: var(--color-pink);
}

/* ============ FOCUS VISIBLE (Barrierefreiheit) ============ */
:focus-visible {
    outline: 2px solid var(--color-pink);
    outline-offset: 2px;
}

nav a:focus-visible {
    outline-offset: 4px;
    border-radius: 8px;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(230, 0, 126, 0.4);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--color-pink);
    outline-offset: 2px;
    border-radius: 4px;
}

.format-card:focus-visible,
.theme-card:focus-visible {
    outline: 2px solid var(--color-pink);
    outline-offset: 4px;
}

footer a:focus-visible {
    outline: 2px solid var(--color-pink);
    outline-offset: 2px;
    border-radius: 4px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(230, 0, 126, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(230, 0, 126, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
}

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.1rem 2rem;
    width: 100%;
    max-width: 340px;
    border-radius: 60px;
    background: var(--color-pink);
    color: white;
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(230, 0, 126, 0.4);
    text-decoration: none;
}

.hero .btn-primary {
    font-size: 1.45rem;
    padding: 1.6rem 4rem;
    max-width: 440px;
    gap: 1.5rem;
}

.hero .btn-primary .btn-toggle {
    flex: 0 0 68px;
    height: 34px;
}

.hero .btn-primary .btn-toggle::before {
    width: 24px;
    height: 24px;
}

.hero .btn-primary:hover .btn-toggle::before {
    transform: translateY(-50%) translateX(34px);
}

.btn-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: background-color 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), background 0.42s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-primary:hover .btn-toggle::before {
    transform: translateY(-50%) translateX(26px);
    background: var(--color-pink);
}

.btn-primary:hover {
    background: #d1006e;
    box-shadow: 0 15px 35px rgba(230, 0, 126, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-dark);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    nav {
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        background: rgba(251, 238, 213, 0.97);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-bottom: 1px solid rgba(230, 0, 126, 0.15);
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        display: flex;
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.35s;
    }

    nav.active {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-sep {
        display: none;
    }

    nav a {
        width: 100%;
        justify-content: flex-start;
        gap: 0;
        padding: 0.9rem 1rem;
        min-height: 44px;
        border-radius: 12px;
        border-left: 3px solid transparent;
    }

    nav a .nav-toggle {
        display: none;
    }

    nav a .nav-label {
        font-size: 1.1rem;
    }

    nav a:hover,
    nav a:focus-visible {
        background: rgba(230, 0, 126, 0.06);
    }

    nav a.active {
        border-left-color: var(--color-pink);
        background: rgba(230, 0, 126, 0.08);
    }

    .menu-toggle {
        display: flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hamburger-line,
    nav {
        transition: none !important;
    }
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(189, 229, 250, 0.35) 100%);
    padding-top: 5.76rem;
    padding-bottom: 86px;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.8s ease;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(189, 229, 250, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(249, 213, 232, 0.2) 0%, transparent 45%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 80rem;
    padding: 0 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7rem;
    animation: slideDown 0.8s ease-out;
}

.badge-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.hero h1, .hero-title {
    font-size: clamp(2rem, 6.4vw, 4.8rem);
    font-weight: 800;
    margin-bottom: 6rem;
    letter-spacing: -0.03em;
    font-family: var(--font-display);
    line-height: 1.1;
    text-wrap: balance;
    animation: slideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
}

.hero p {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-gray);
    margin-bottom: 7rem;
    line-height: 1.7;
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
    transition: color 0.5s ease, font-weight 0.5s ease, text-shadow 0.5s ease;
}

.hero.video-active p {
    color: var(--color-dark);
    font-weight: 600;
    text-shadow: 
        0 0 12px var(--color-cream),
        0 0 6px var(--color-cream),
        0 0 2px var(--color-cream);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate-border {
    to { --angle: 360deg; }
}

.save-the-date-wrapper {
    margin-bottom: 10rem;
    animation: slideUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards;
    display: flex;
    justify-content: center;
    width: 100%;
}

.save-the-date-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 4rem;
    border-radius: 24px;
    background: var(--color-blue);
    color: var(--color-dark);
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.save-the-date-card::before,
.save-the-date-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: conic-gradient(from var(--angle), var(--color-blue), var(--color-pink), #ff80c8, var(--color-pink), var(--color-blue));
}

.save-the-date-card::after {
    inset: -6px;
    border-radius: 30px;
    filter: blur(12px);
    opacity: 0.55;
    z-index: -2;
    animation: rotate-border 4s linear infinite;
}

.save-the-date-card::before {
    z-index: -1;
    animation: rotate-border 4s linear infinite;
}

.save-the-date-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.save-the-date-date {
    font-size: 4.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--color-dark);
    letter-spacing: -0.04em;
    line-height: 1;
}

.save-the-date-location {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gray);
    letter-spacing: 0.05em;
    margin-top: 0.9rem;
    text-transform: uppercase;
}

/* ============ COUNTDOWN ============ */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin: 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.countdown-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--color-dark);
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: lowercase;
    font-weight: 500;
    color: var(--color-gray);
}

.countdown-label .label-short {
    display: none;
}

/* ============ SECTIONS ============ */
section {
    position: relative;
    padding: 4.32rem 0;
    overflow: hidden;
}

section h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.08rem;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    color: var(--color-dark);
    text-wrap: balance;
}

.section-header {
    text-align: center;
    margin-bottom: 2.88rem;
}



/* ============ SUBPAGE STYLES (Eigenständig) ============ */
.subpage {
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(189, 229, 250, 0.35) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.subpage::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(189, 229, 250, 0.2) 0%, transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(249, 213, 232, 0.2) 0%, transparent 45%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.subpage-main {
    position: relative;
    z-index: 1;
    padding-top: 7.2rem;
    padding-bottom: 5.76rem;
    flex-grow: 1;
}

.format-intro {
    text-align: center;
    margin-bottom: 3.6rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray);
    max-width: 850px;
    margin: 1.44rem auto;
    font-family: var(--font-display);
}

.format-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 2.16rem;
    margin-top: 2.88rem;
}

.format-card {
    padding: 3.5rem 3rem;
    border-radius: 32px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.04), 
        inset 0 1px 2px rgba(255, 255, 255, 0.5), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.format-card:hover {
    transform: translateY(calc(var(--fade-y, 0px) - 10px));
    border-color: rgba(230, 0, 126, 0.2);
    box-shadow: 
        0 30px 60px rgba(230, 0, 126, 0.08), 
        inset 0 1px 2px rgba(255, 255, 255, 0.6), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.format-card.card-visitor {
    background: rgba(251, 238, 213, 0.45);
}

.format-card.card-speaker {
    background: rgba(189, 229, 250, 0.45);
}

.format-card h2 {
    font-size: 1.8rem;
    color: var(--color-pink);
}

.format-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--color-dark);
    border-bottom: 2px solid rgba(230, 0, 126, 0.2);
    padding-bottom: 1rem;
    width: fit-content;
}

.format-card li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--color-gray);
    list-style: none;
}

.format-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-pink);
    font-weight: 900;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

/* ============ FOOTER ============ */
footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.75rem;
    z-index: 40;
}

/* On specific pages where footer should be sticky at the bottom of the viewport but not fixed */
.subpage footer {
    position: relative;
    margin-top: auto;
}

/* On the home page, it was fixed? Let's check index.html again. No, it was fixed there too. */
/* Keeping it relative/static for flow is safer if the content is long. */

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.footer-content a {
    color: var(--color-gray);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--color-pink);
}

.footer-divider {
    color: rgba(74, 74, 74, 0.4);
}

.footer-sponsor-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
}

.footer-star {
    color: #0088cc;
    animation: footer-star-pulse 2s infinite ease-in-out;
}

@keyframes footer-star-pulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 0px rgba(0, 136, 204, 0); }
    50% { transform: scale(1.3); text-shadow: 0 0 10px rgba(0, 136, 204, 0.5); }
}

/* ============ ANIMATIONS ============ */
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ============ MOBILE OPTIMIERUNG ============ */

/* Großzügige Margins im Hero per clamp reduzieren */
.badge {
    margin-bottom: clamp(2rem, 6vw, 7rem);
}

.hero h1, .hero-title {
    margin-bottom: clamp(2rem, 5vw, 6rem);
}

.hero p {
    margin-bottom: clamp(2rem, 5vw, 7rem);
}

.save-the-date-wrapper {
    margin-bottom: clamp(2.5rem, 6vw, 10rem);
}

/* ============ MOBILE: max 600px ============ */
@media (max-width: 600px) {
    /* Save-the-date-card: nicht breiter als Viewport */
    .save-the-date-card {
        padding: 1.75rem 1.25rem;
        width: calc(100% - 3rem);
        border-radius: 18px;
    }

    .save-the-date-card::before { border-radius: 20px; }
    .save-the-date-card::after  { border-radius: 24px; }

    /* Datum kleiner */
    .save-the-date-date {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .save-the-date-location {
        font-size: 1rem;
    }

    /* Countdown auf engen Screens */
    .countdown-container {
        gap: 0.75rem;
    }

    .countdown-value {
        font-size: 1.35rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .countdown-label .label-full {
        display: none;
    }

    .countdown-label .label-short {
        display: inline;
    }

    .countdown-sep {
        font-size: 1.2rem;
        line-height: 1;
    }

    /* Hero-Button kompakter */
    .hero .btn-primary {
        font-size: 1.1rem;
        padding: 1.1rem 1.75rem;
        max-width: calc(100% - 3rem);
        width: calc(100% - 3rem);
    }

    .hero .btn-primary .btn-toggle {
        flex: 0 0 52px;
        height: 26px;
    }

    .hero .btn-primary .btn-toggle::before {
        width: 18px;
        height: 18px;
    }

    .hero .btn-primary:hover .btn-toggle::before {
        transform: translateY(-50%) translateX(26px);
    }

    /* Hero-Content Padding */
    .hero-content {
        padding: 0 1rem;
    }

    /* Button-Gruppe full-width */
    .button-group {
        display: flex;
        justify-content: center;
    }

    /* Footer umbruch-sicher */
    .footer-content {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ============ MOBILE: max 400px (sehr kleine Phones) ============ */
@media (max-width: 400px) {
    .save-the-date-date {
        font-size: 7.5vw;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-value {
        font-size: 1.1rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }
}

/* ============ THEMEN PAGE & CARDS ============ */

.themen-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.themen-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Glassmorphism & High-end Horizontal Card Styling */
.theme-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.03),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition:
        background-color 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

/* Glowing Border Effect on Hover */
.theme-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, rgba(230, 0, 126, 0.3), rgba(189, 229, 250, 0.6), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-card:hover {
    transform: translateY(calc(var(--fade-y, 0px) - 8px));
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(230, 0, 126, 0.15);
    box-shadow:
        0 30px 60px rgba(230, 0, 126, 0.08),
        0 0 0 1px rgba(230, 0, 126, 0.03);
}

.theme-card:hover::after {
    opacity: 1;
}

/* Scroll-coupled fade: opacity/offset driven continuously by scroll position (see script.js) */
.scroll-fade {
    opacity: var(--fade-opacity, 1);
    transform: translateY(var(--fade-y, 0px));
    transition: opacity 0.15s linear, transform 0.15s linear;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-fade {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Speaker Portrait */
.speaker-portrait-wrapper {
    position: relative;
    flex: 0 0 300px;
    height: 300px;
    border-radius: 24px;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-card:hover .speaker-portrait-wrapper {
    transform: rotate(2deg) scale(1.05);
}

.speaker-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    background-color: var(--color-cream);
    display: block;
}

/* Card Content Container on the Right */
.theme-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.speaker-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.speaker-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.speaker-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-dark);
}

.speaker-divider {
    color: var(--color-pink);
    opacity: 0.5;
}

.speaker-title {
    font-size: 0.95rem;
    color: var(--color-gray-light);
}

.speaker-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-gray);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border-left: 3px solid var(--color-pink);
    
    /* Accordion styles */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    margin-top: 0;
    transition: max-height 0.6s ease, opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}

.speaker-bio.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
}

.speaker-bio strong {
    color: var(--color-dark);
}

.company-tag {
    background: rgba(230, 0, 126, 0.08);
    color: var(--color-pink);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.theme-card:hover .company-tag {
    background: var(--color-pink);
    color: white;
    box-shadow: 0 4px 10px rgba(230, 0, 126, 0.25);
}

.theme-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.theme-card:hover .theme-title {
    color: var(--color-pink);
}

.theme-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray);
}

.theme-card-footer {
    border-top: 1px dashed rgba(74, 74, 74, 0.15);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-more-bio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: transparent;
    border: 1px solid var(--color-pink);
    color: var(--color-pink);
    padding: 0.4rem 1.25rem;
    border-radius: 22px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    font-weight: 600;
}

.btn-more-bio:hover {
    background: var(--color-pink);
    color: white;
}

.theme-passion {
    font-size: 0.88rem;
    color: var(--color-gray-light);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-passion::before {
    content: '★';
    color: var(--color-pink);
    font-style: normal;
}

.themen-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Kachel: Weitere Themen folgen bald */
.theme-card-more {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    border-style: dashed;
    border-width: 2px;
    border-color: rgba(230, 0, 126, 0.25);
    background: rgba(255, 255, 255, 0.25);
}

.theme-card-more:hover {
    border-color: rgba(230, 0, 126, 0.45);
}

.theme-more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--color-pink), var(--color-blue));
    box-shadow: 0 12px 30px rgba(230, 0, 126, 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.theme-card-more .theme-description {
    max-width: 480px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .theme-card {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .speaker-portrait-wrapper {
        flex: 0 0 240px;
        width: 240px;
        height: 240px;
    }

    .theme-title, .format-card h2 {
        font-size: 1.5rem;
    }

    .speaker-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .speaker-divider {
        display: none;
    }
}

/* ============ REDUCED MOTION (Barrierefreiheit) ============ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ UTILITIES ============ */
.lead-text-multiline {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    font-family: var(--font-display);
    line-height: 1.7;
    color: var(--color-gray);
}

.btn-full {
    max-width: 100%;
}

a.btn-dark, button.btn-dark {
    background: var(--color-dark);
    box-shadow: 0 10px 25px rgba(38, 38, 38, 0.3);
}

a.btn-dark:hover, button.btn-dark:hover {
    background: #000;
}

@media (max-width: 768px) {
    .lead-text, .lead-text-multiline {
        text-align: justify !important;
        hyphens: auto;
        -webkit-hyphens: auto;
    }
}

/* ============ INFO & LEGAL CARDS ============ */
.info-card-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.info-card {
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.info-card h2 {
    font-size: 2rem;
}

.info-card p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-gray);
    font-family: var(--font-display);
}

.info-card .small-text {
    font-size: 1.1rem;
    color: var(--color-gray-light);
}

.info-card-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn-fixed-width {
    max-width: 280px;
}

.legal-wrapper {
    max-width: 900px;
    margin: 2rem auto;
}

.legal-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    border-radius: 32px;
    gap: 0.5rem;
    text-align: left;
    align-items: stretch;
}

.legal-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    font-family: var(--font-display);
    color: var(--color-dark);
}

.legal-card p, .legal-card ul {
    color: var(--color-gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-card ul {
    padding-left: 20px;
}

.legal-card li {
    margin-bottom: 8px;
}

/* ============ FAQ ============ */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 5.76rem 0;
    text-align: center;
}

.faq-section .hero-title {
    margin-bottom: 2.88rem;
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.faq-item {
    padding: 1.75rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(230, 0, 126, 0.2);
    box-shadow:
        0 30px 60px rgba(230, 0, 126, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-dark);
    position: relative;
    padding-right: 2.5rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-pink);
    font-weight: 900;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin-top: 1.25rem;
    color: var(--color-gray);
    line-height: 1.7;
}
