/* === WACHTKAMER DASHBOARD — FULL REWRITE === */

:root {
    --color-fa: #00A1E0;
    --color-f4k: #E84C1C;
    --color-hermanns: #8CC63F;
    --active-accent: #00A1E0;
    --active-accent-rgb: 0, 161, 224;
    --ticker-height: 64px;
}

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

html, body {
    height: 100%; width: 100%;
    overflow: hidden;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #0f172a;
}

/* Improve general readability on TV */
body {
    font-size: 18px;
}

.slide-badge {
    font-size: 1.1rem;
}

.slide-badge.logo-only {
    padding: 10px 14px;
}

.slide-badge.logo-only .badge-logo {
    height: 92px;
}

.slide-badge.logo-only .badge-logo.large {
    height: 112px;
}

.review-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    width: fit-content;
}

.review-cta i {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.25);
    font-size: 1.2rem;
}

.review-cta strong { font-size: 1.15rem; }
.review-cta span { display: block; color: #475569; font-weight: 600; }

.qr-card {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 26px;
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    background: white;
    padding: 18px;
}

.qr-caption {
    font-weight: 700;
    color: #334155;
    font-size: 1.1rem;
}

/* =============================================
   LIQUID GLASS WEATHER WIDGET
   ============================================= */
.glass-weather {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 1000;
    pointer-events: none;
    animation: glassAppear 1.5s ease-out 0.5s both;
}

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

.glass-weather-inner {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px 28px;
    min-width: 200px;
    color: rgba(15, 23, 42, 0.92);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.glass-time {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(135deg, #1e293b, #334155);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.15), transparent);
    margin: 4px 0;
}

.glass-temp-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glass-temp-row i {
    font-size: 2.2rem;
    animation: floatIcon 5s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.glass-temp-row span {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.glass-details {
    display: flex;
    gap: 16px;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.82;
}

.glass-details i { margin-right: 4px; }

.glass-location {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =============================================
   FULL-SCREEN SLIDER
   ============================================= */
.slider-container {
    position: fixed;
    inset: 0;
    bottom: var(--ticker-height);
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 92px 80px 40px;
}

.slide-badge {
    position: absolute;
    top: 34px;
    left: 80px;
    z-index: 20;
}

.badge-logo {
    height: 46px;
}

.badge-logo.large {
    height: 68px;
}

/* --- Split Layout (text + visual) --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout.reverse { flex-direction: row-reverse; }

.split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 50%;
}

.split-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 50%;
}

/* --- Person Layout (photo + info) --- */
.person-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.person-layout.reverse { flex-direction: row-reverse; }

.person-photo-wrap {
    flex: 1 1 50%;
    max-width: 50%;
    display: flex;
    justify-content: center;
}

.person-info {
    max-width: 50%;
}

.person-photo {
    width: min(520px, 100%);
    height: min(84vh, 860px);
    border-radius: 32px;
    position: relative;
    background-size: cover;
    background-position: center top;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: photoReveal 0.8s ease-out 0.3s both;
}

@keyframes photoReveal {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.person-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Cards Layout --- */
.cards-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 40px;
}

.cards-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1200px;
}

.info-card-item {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
    animation: cardUp 0.6s ease-out both;
}

.info-card-item:nth-child(1) { animation-delay: 0.1s; }
.info-card-item:nth-child(2) { animation-delay: 0.2s; }
.info-card-item:nth-child(3) { animation-delay: 0.3s; }
.info-card-item:nth-child(4) { animation-delay: 0.4s; }

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

.card-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-fa), #0284c7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 161, 224, 0.25);
}

.info-card-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card-item p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.5;
}

.cards-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0.5;
    font-size: 1rem;
}

.footer-logo { height: 32px; }

/* =============================================
   SHARED SLIDE COMPONENTS
   ============================================= */

/* Headings */
.slide-inner h1 {
    font-size: 3.9rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #0f172a;
    animation: fadeSlideDown 0.6s ease-out 0.1s both;
}

.lead {
    font-size: 1.7rem;
    line-height: 1.6;
    color: #475569;
    max-width: 600px;
    animation: fadeSlideDown 0.6s ease-out 0.2s both;
}

.person-role {
    font-size: 1.4rem;
    color: var(--color-fa);
    font-weight: 600;
    animation: fadeSlideDown 0.6s ease-out 0.15s both;
}

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

/* Expertise Tags */
.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeSlideDown 0.6s ease-out 0.25s both;
}

.expertise-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--active-accent-rgb), 0.10);
    border: 1px solid rgba(var(--active-accent-rgb), 0.20);
    color: var(--active-accent);
    padding: 10px 18px;
    border-radius: 14px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.expertise-tag i { font-size: 1rem; opacity: 0.7; }

/* Person Contact */
.person-contact {
    display: flex;
    gap: 24px;
    font-size: 1.2rem;
    color: #64748b;
    margin-top: 10px;
    animation: fadeSlideDown 0.6s ease-out 0.35s both;
}

.person-contact i { color: var(--active-accent); margin-right: 8px; }

/* Feature List */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeSlideDown 0.6s ease-out 0.25s both;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.45rem;
    font-weight: 500;
    color: #334155;
}

.feature-list li i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.slide[data-accent="#8CC63F"] .feature-list li i {
    background: rgba(140, 198, 63, 0.12);
    color: #4d7c0f;
}

.slide[data-accent="#E84C1C"] .feature-list li i {
    background: rgba(232, 76, 28, 0.1);
    color: #c2410c;
}

/* CTA Box */
.cta-box {
    padding: 18px 28px;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 600;
    animation: fadeSlideDown 0.6s ease-out 0.4s both;
}

.hermanns-cta {
    background: rgba(140, 198, 63, 0.1);
    border: 1px solid rgba(140, 198, 63, 0.25);
    color: #365314;
}

.f4k-cta {
    background: rgba(232, 76, 28, 0.08);
    border: 1px solid rgba(232, 76, 28, 0.2);
    color: #7c2d12;
}

/* Team Names */
.team-names-row {
    font-size: 1.25rem;
    color: #475569;
    animation: fadeSlideDown 0.6s ease-out 0.35s both;
}

/* Visual Card (image placeholder) */
.visual-card {
    width: 100%;
    height: 420px;
    border-radius: 28px;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: photoReveal 0.8s ease-out 0.3s both;
}

.hermanns-visual {
    height: min(62vh, 640px);
    aspect-ratio: 1 / 1;
    background-position: center top;
}

/* Review Float */
.review-float {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 20px;
    padding: 20px 24px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #334155;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    animation: fadeSlideDown 0.8s ease-out 0.5s both;
    position: relative;
}

.review-float i {
    color: var(--color-hermanns);
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.review-float span {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Photo Fallback */
.photo-fallback {
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Hide fallback labels when JS confirms image exists */
.has-bg .photo-fallback {
    display: none;
}

/* =============================================
   INSTAGRAM CARD
   ============================================= */
.ig-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
    animation: fadeSlideDown 0.6s ease-out 0.3s both;
}

.ig-cta i { font-size: 2.5rem; }
.ig-cta strong { font-size: 1.4rem; display: block; }
.ig-cta span { opacity: 0.85; font-size: 1.05rem; }

.ig-card {
    width: 380px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: rotate(-3deg);
    animation: igCardIn 0.8s ease-out 0.4s both;
}

@keyframes igCardIn {
    from { opacity: 0; transform: rotate(-3deg) translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: rotate(-3deg) translateY(0) scale(1); }
}

.ig-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.ig-avatar-ring {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
}

.ig-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #262626;
}

.ig-handle { font-weight: 600; font-size: 1.1rem; color: #262626; }

.ig-card-image {
    width: 100%;
    height: 380px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ig-card-actions {
    display: flex;
    gap: 16px;
    padding: 14px 16px 6px;
    font-size: 1.6rem;
    color: #262626;
}

.ig-card-likes {
    padding: 0 16px 4px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #262626;
}

.ig-card-caption {
    padding: 0 16px 16px;
    font-size: 1.05rem;
    color: #262626;
    line-height: 1.4;
}

/* =============================================
   PROGRESS / DOTS
   ============================================= */
.slider-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: rgba(0,0,0,0.06);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: var(--active-accent);
    transition: width 0.1s linear;
    border-radius: 0 4px 4px 0;
}

.slide-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.slide-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.slide-dot.active {
    background: var(--active-accent);
    width: 32px;
    border-radius: 10px;
}

/* =============================================
   FIXED BOTTOM NEWS TICKER
   ============================================= */
.zone-ticker {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--ticker-height);
    z-index: 500;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #0c4a6e 0%, #0369a1 40%, var(--color-fa) 100%);
    color: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.ticker-label {
    background: rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 28px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    flex-shrink: 0;
    gap: 10px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
    mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerScroll linear infinite;
}

.ticker-item {
    padding: 0 32px;
    font-size: 1.3rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =============================================
   RESPONSIVE — 4K
   ============================================= */
@media (min-width: 2560px) {
    :root { --ticker-height: 90px; }
    .slide-inner { padding: 80px 120px 60px; }
    .slide-inner h1 { font-size: 5rem; }
    .lead { font-size: 2rem; }
    .person-photo { height: min(78vh, 900px); }
    .glass-time { font-size: 3.5rem; }
    .glass-temp-row span { font-size: 3.2rem; }
    .ticker-item { font-size: 1.6rem; }
    .expertise-tag { font-size: 1.4rem; padding: 14px 22px; }
}

/* =============================================
   SPECIALTIES SLIDE
   ============================================= */
.specialties-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.specialties-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.specialties-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-content: start;
}

.specialty-tile {
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 18px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    animation: fadeSlideDown 0.6s ease-out 0.2s both;
}

.specialty-tile i {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-fa), #0284c7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,161,224,0.22);
}

.specialty-tile span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.2;
}

.specialties-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.75);
    color: #475569;
    font-weight: 700;
    font-size: 1.15rem;
}

.specialties-footer i {
    color: var(--color-fa);
    margin-right: 10px;
}

.ticker-sep {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    display: inline-block;
    margin: 0 4px;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

html.lite *,
html.lite *::before,
html.lite *::after {
    animation: none !important;
    transition: none !important;
}

html.lite .glass-weather-inner,
html.lite .review-cta,
html.lite .qr-card,
html.lite .info-card-item,
html.lite .expertise-tag,
html.lite .slide-badge,
html.lite .visual-card,
html.lite .review-float {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

html.lite .slide {
    transition: none !important;
}

html.lite .ticker-wrap {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

html.lite .ticker-move {
    animation: tickerScroll linear infinite !important;
}

html.lite .progress-bar {
    transition: width 15s linear !important;
}
