/* ============================================================
   Fahrplan Monitor – 16:9 Werbemonitor-Ausgabe
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---- Vollbild-Wrapper ---- */
.fp-monitor {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #0a1628 0%, #0f2545 40%, #0e3a6e 75%, #0a2850 100%);
    overflow: hidden;
    font-family: 'Source Sans 3', sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

/* Wellen-Animation im Hintergrund */
.fp-monitor::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0,120,200,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0,80,160,0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Hintergrund-Wasserzeichen Logo */
.fp-monitor-bg {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 46%;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-8deg);
}
.fp-monitor-bg img {
    width: 100%;
    filter: brightness(0) invert(1);
}

/* Wellen-Linien dekorativ */
.fp-monitor::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
    z-index: 0;
}

/* ---- Header ---- */
.fp-monitor-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2.2% 3.5% 1.5%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
    flex-shrink: 0;
}

.fp-monitor-logo {
    flex: 0 0 auto;
    margin-right: 3%;
}
.fp-monitor-logo img {
    height: 7.5vh;
    max-height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.fp-monitor-headline {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.fp-monitor-pre {
    font-size: clamp(10px, 1.3vw, 16px);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.65);
    margin-bottom: 3px;
}
.fp-monitor-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 3.2vw, 44px);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Wellendekor im Header */
.fp-monitor-welle {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 1;
}
.fp-monitor-welle svg { width: 100%; height: 100%; }

/* ---- Fahrten-Grid ---- */
.fp-monitor-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    gap: 1.2%;
    padding: 1.8% 2.8% 1.4%;
    align-items: stretch;
    min-height: 0;
}

/* Grid-Layouts je nach Anzahl */
.fp-monitor-grid-1 { grid-template-columns: 1fr; }
.fp-monitor-grid-2 { grid-template-columns: 1fr 1fr; }
.fp-monitor-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.fp-monitor-grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fp-monitor-grid-5 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fp-monitor-grid-6 { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; }

.fp-monitor-empty {
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 4%;
    font-size: clamp(12px, 1.8vw, 22px);
    align-self: center;
}

/* ---- Einzelne Monitor-Card ---- */
.fp-mc {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
    animation: fp-fadein 0.6s ease both;
    min-height: 0;
}
.fp-mc:hover {
    background: rgba(255,255,255,0.11);
}

@keyframes fp-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bild */
.fp-mc-img {
    flex: 0 0 36%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a2545 0%, #1a4a8a 100%);
    min-height: 0;
}
.fp-mc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}
.fp-mc:hover .fp-mc-img img {
    transform: scale(1.06);
}
.fp-mc-img-placeholder {
    background: linear-gradient(135deg, #0a2545 0%, #0e3a6e 60%, #1a5090 100%);
}
/* Gradient-Overlay über Bild */
.fp-mc-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 50%, rgba(10,22,40,0.5) 100%);
}

/* Body */
.fp-mc-body {
    flex: 1;
    padding: 5% 6% 5% 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4%;
    min-width: 0;
    overflow: hidden;
}

/* Datum-Badge */
.fp-mc-datum {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 2px 8px;
    width: fit-content;
    line-height: 1.2;
}
.fp-mc-tag {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(13px, 1.6vw, 22px);
    font-weight: 700;
    color: #fff;
}
.fp-mc-monat {
    font-size: clamp(9px, 1vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.75);
}
.fp-mc-wotag {
    font-size: clamp(8px, 0.9vw, 12px);
    color: rgba(255,255,255,0.5);
    margin-left: 2px;
}

/* Titel */
.fp-mc-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(10px, 1.15vw, 17px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Zeiten – hervorgehoben */
.fp-mc-zeiten {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #5bbfff;
    border-radius: 0 4px 4px 0;
    padding: 3px 8px;
    font-size: clamp(9px, 1.05vw, 15px);
    font-weight: 700;
    color: #d8edff;
    letter-spacing: 0.01em;
    width: fit-content;
}
.fp-mc-zeiten svg { opacity: 0.85; flex-shrink: 0; }

/* Hafen */
.fp-mc-hafen {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: clamp(8px, 0.85vw, 12px);
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}
.fp-mc-hafen svg { opacity: 0.7; flex-shrink: 0; }

/* Preise */
.fp-mc-preise {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fp-mc-preis {
    font-size: clamp(8px, 0.85vw, 12px);
    font-weight: 700;
    border-radius: 3px;
    padding: 2px 7px;
}
.fp-mc-preis-erw  { background: rgba(80,200,120,0.25); color: #a0f0b0; }
.fp-mc-preis-kind { background: rgba(255,160,100,0.25); color: #ffd0b0; }

/* ---- Footer ---- */
.fp-monitor-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8% 3%;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.fp-monitor-wave {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}
.fp-monitor-url {
    font-size: clamp(9px, 1vw, 14px);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

/* ---- Vollbild-Seite (WordPress-Template) ---- */
body.fp-monitor-page {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}
body.fp-monitor-page .fp-monitor {
    width: 100vw;
    height: 100vh;
    aspect-ratio: unset;
    border-radius: 0;
}
