:root {
    --navy: #0f2740;
    --navy-2: #153754;
    --blue: #1f6fa7;
    --gold: #d9a441;
    --gold-2: #ebb95b;
    --white: #ffffff;
    --text: #182733;
    --text-soft: #5f6f7c;
    --card: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.16);
    --shadow: 0 18px 50px rgba(7, 20, 33, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --chat-header-height: 88px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, sans-serif;
    color: var(--text);
}

body {
    background-color: #eaf1f6;
}

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

.theme-landing {
    background:
            linear-gradient(180deg, rgba(7, 21, 35, 0.28) 0%, rgba(7, 21, 35, 0.52) 42%, #e8f1f7 100%),
            url("https://www.sternundkreis.de/wp-content/uploads/2024/04/20220712_144028.jpg") center/cover no-repeat fixed;
}

.theme-chat {
    background: linear-gradient(180deg, #dfeaf1, #eef4f8);
    overflow: hidden;
}

.page {
    min-height: 100vh;
    padding:
            calc(14px + var(--safe-top))
            14px
            calc(20px + var(--safe-bottom));
}

.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shell {
    width: 100%;
    margin: 0 auto;
}

.shell-narrow {
    max-width: 720px;
}

/* Landingpage */

.hero-card {
    background: linear-gradient(180deg, rgba(16, 39, 61, 0.82), rgba(18, 53, 84, 0.68));
    color: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(8, 20, 34, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-top {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.96;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), #f1cf82);
    flex-shrink: 0;
}

.hero-content {
    padding: 22px 18px 22px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.lead {
    margin: 0 0 18px;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.tour-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.tour-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 4px;
}

.tour-value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
}

.live-pill {
    flex-shrink: 0;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(115, 211, 143, 0.16);
    border: 1px solid rgba(115, 211, 143, 0.24);
    color: #c8f5d2;
    font-size: 0.82rem;
    font-weight: 700;
}

.info-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.info-item {
    background: var(--card);
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow);
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.info-item span {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.cta-button {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: #13212c;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    padding: 18px 18px;
    box-shadow: 0 16px 35px rgba(217, 164, 65, 0.28);
}

.subnote {
    margin-top: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    line-height: 1.5;
}

.mono {
    font-family: "Courier New", Courier, monospace;
    word-break: break-word;
}

/* Chatseite */

.chat-app {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(15, 39, 64, 0.98), rgba(20, 58, 89, 0.96));
}

.chat-topbar {
    min-height: var(--chat-header-height);
    padding:
            calc(10px + var(--safe-top))
            14px
            10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(10, 29, 46, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.chat-topbar-left {
    min-width: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.chat-title {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}

.chat-subtitle {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.tour-pill {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.chat-main {
    flex: 1;
    min-height: 0;
    background: var(--white);
}

#willma-chat {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--white);
}

/* Responsive */

@media (min-width: 700px) {
    .hero-content {
        padding: 28px 26px 26px;
    }

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

@media (min-width: 900px) {
    .chat-app {
        max-width: 540px;
        margin: 0 auto;
        box-shadow: 0 0 0 1px rgba(0,0,0,0.05), 0 30px 80px rgba(0,0,0,0.18);
    }

    .chat-subtitle {
        max-width: 280px;
    }
}

@media (max-width: 420px) {
    .brand {
        font-size: 0.76rem;
    }

    .tour-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .live-pill {
        align-self: flex-start;
    }

    .chat-topbar {
        gap: 10px;
    }

    .tour-pill {
        font-size: 0.76rem;
        padding: 9px 10px;
    }

    .chat-subtitle {
        max-width: 170px;
    }
}