/* --- Selv-hostede skrifttyper (ingen kontakt til Google) ---
   Læg filerne i static/fonts/ - se README_UPDATES.txt for hvor de hentes. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap;
    src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url('../fonts/playfair-display-400.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap;
    src: local('Playfair Display Bold'), local('PlayfairDisplay-Bold'), url('../fonts/playfair-display-700.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap;
    src: local('Playfair Display Italic'), local('PlayfairDisplay-Italic'), url('../fonts/playfair-display-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap;
    src: local('Lato Light'), local('Lato-Light'), url('../fonts/lato-300.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap;
    src: local('Lato Regular'), local('Lato-Regular'), url('../fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap;
    src: local('Lato Bold'), local('Lato-Bold'), url('../fonts/lato-700.woff2') format('woff2'); }

:root {
    --gold: #c5a059;
    --dark-bg: #0a0a0a;
    --darker-bg: #121212;
    --text-light: #e0e0e0;
    /* Skift billedet i toppen her (filen ligger i static/images/) */
    --hero-image: url('../images/improvisation_dafnesynger.webp');
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    color: var(--gold);
    font-weight: 700;
}

.hero-section {
    height: 85vh;
    background-color: var(--dark-bg);
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), var(--hero-image);
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--gold);
}

.bg-darker { background-color: var(--darker-bg); }
.bg-black { background-color: #000; }

.section-title {
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.profile-img {
    border: 1px solid var(--gold);
    padding: 10px;
    filter: grayscale(20%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.table-dark {
    --bs-table-bg: transparent;
    border-color: #333;
}

.gold-text { color: var(--gold); }
.italic { font-style: italic; }

.video-card {
    background: #1a1a1a;
    padding: 10px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.btn-outline-gold {
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 0;
    padding: 12px 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: #000;
}

footer {
    border-top: 1px solid #222;
}

/* Placeholders */
::-webkit-input-placeholder { color: #ffffff !important; opacity: 1 !important; }
::-moz-placeholder { color: #ffffff !important; opacity: 1 !important; }
:-ms-input-placeholder { color: #ffffff !important; opacity: 1 !important; }
::placeholder { color: #ffffff !important; opacity: 1 !important; }

.form-control {
    color: white !important;
    padding: 12px !important;
}

.text-muted, .text-secondary {
    color: #8a8a8a !important;
}

.italic, .venue-text {
    color: #a68b54 !important;
    font-style: italic;
}

.border-secondary {
    border-color: #222 !important;
}

.photo-credit {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-family: 'Lato', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Table styling */
.table thead th {
    background-color: #c5a059 !important;
    color: #000000 !important;
    border-color: #a6854a !important;
    vertical-align: middle;
    padding: 12px 8px;
}

.table tbody td {
    border-color: #333 !important;
}

/* --- DEN ULTIMATIVE FIX TIL DINE LINKS --- */

/* Vi fanger alle tilstande: link, visited, hover, active */
a.admin-footer-link, 
a.admin-footer-link:link, 
a.admin-footer-link:visited {
    color: #b0b0b0 !important; /* Tvinger den lysegrå */
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

a.admin-footer-link:hover {
    color: #c5a059 !important; /* Tvinger guld ved hover */
    text-decoration: underline !important;
}

/* Hvis du bruger footer-nav div'en */
.footer-nav a, 
.footer-nav a:link, 
.footer-nav a:visited {
    color: #b0b0b0 !important;
    text-decoration: none !important;
}

.footer-nav a:hover {
    color: #c5a059 !important;
}

/* Link på koncerttitel: samme tekststil, men med svag stiplet guld-linje under */
a.event-link,
a.event-link:link,
a.event-link:visited,
a.event-link:active {
    color: inherit !important;
    font: inherit;
    text-decoration-line: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-color: rgba(197, 160, 89, 0.55) !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 5px;
    transition: text-decoration-color 0.2s ease;
}
a.event-link:hover {
    color: inherit !important;
    text-decoration-line: underline !important;
    text-decoration-style: solid !important;
    text-decoration-color: var(--gold) !important;
}

/* Fokusmarkering på det usynlige koncert-link (kun synlig ved tastaturnavigation) */
a.event-link:focus-visible {
    outline: 1px dotted var(--gold);
    outline-offset: 3px;
}

/* --- Video: klik for at indlæse (YouTube kontaktes først ved klik) --- */
.video-facade {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    background: #0d0d0d;
    border: 0;
    color: var(--text-light);
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.video-facade:hover { background: #151515; }
.video-facade:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.video-facade-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.4rem;
    padding-left: 4px;
}
.video-facade-title { font-family: 'Playfair Display', Georgia, serif; color: var(--gold); font-size: 1.05rem; }
.video-facade-note { color: #8a8a8a; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; }

/* Video-boks med thumbnail */
/* position styres af Bootstraps .ratio (absolute) - må ikke overskrives */
.video-facade { overflow: hidden; }
.video-facade > span, .video-facade > small { position: relative; z-index: 1; }
.video-facade-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* beskærer evt. sorte bjælker i YouTubes billeder */
    transition: transform 0.4s ease;
}
.video-facade:hover .video-facade-img { transform: scale(1.03); }
.video-facade-img ~ .video-facade-play { background: rgba(0, 0, 0, 0.5); }
.video-facade-img ~ .video-facade-title,
.video-facade-img ~ .video-facade-note { text-shadow: 0 1px 4px #000; }
.video-facade-img ~ .video-facade-note { color: #d0d0d0; }

/* Videotitel øverst i boksen (hvid, som i YouTubes egen afspiller) */
.video-facade::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    z-index: 1;
    pointer-events: none;
}
.video-facade > .video-facade-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem 1.25rem;
    text-align: left;
    font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Click to load video from YouTube"-teksten vises aldrig */
.video-facade-note { display: none !important; }

/* --- Anmeldelser / Press: roterende citater --- */
.press-section {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
    /* glider blødt mellem sektionen over (#121212) og under (#000) */
    background:
        radial-gradient(ellipse 60% 80% at 50% 0%, rgba(197, 160, 89, 0.09), transparent 70%),
        linear-gradient(#121212, #000);
}
.press-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
}
.press-label::before, .press-label::after { content: ''; width: 64px; height: 1px; }
.press-label::before { background: linear-gradient(to right, transparent, var(--gold)); }
.press-label::after  { background: linear-gradient(to left,  transparent, var(--gold)); }

.press-slider { max-width: 56rem; margin: 0 auto; padding: 0 1rem; text-align: center; }
.press-mark {
    display: block;
    height: 2.4rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.35;
    user-select: none;
}

/* Alle citater ligger oven i hinanden, så højden = det højeste citat (ingen hop) */
.press-stage { display: grid; }
.press-slide {
    grid-area: 1 / 1;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s linear 0.9s;
}
.press-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.9s ease 0.25s, transform 0.9s ease 0.25s, visibility 0s;
}

.press-quote {
    margin: 0 0 1.75rem;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.3vw, 1.75rem);
    line-height: 1.55;
    color: #ece6d6;
    text-wrap: balance;
}
.press-source { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.press-source::before { content: ''; width: 36px; height: 1px; background: var(--gold); margin-bottom: 0.35rem; }
.press-source cite {
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}
.press-source cite a, .press-source cite a:visited { color: inherit; text-decoration: none; }
.press-source cite a:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
.press-prod { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #8a8a8a; }

/* Uden JavaScript vises alle citater pænt under hinanden */
.press-slider:not(.is-js) .press-stage { display: block; }
.press-slider:not(.is-js) .press-slide { opacity: 1; visibility: visible; transform: none; margin-bottom: 2.5rem; }

/* Styring: små pile + tynde streger, der fyldes op som tidtager */
.press-controls { display: none; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.25rem; }
.press-slider.is-js .press-controls { display: flex; }
.press-arrow {
    background: none; border: 0; padding: 0.5rem; cursor: pointer;
    font-size: 0.8rem; color: #6f6f6f; transition: color 0.3s ease;
}
.press-arrow:hover, .press-arrow:focus-visible { color: var(--gold); }
.press-arrow:focus-visible, .press-dash:focus-visible { outline: 1px dotted var(--gold); outline-offset: 3px; }
.press-dashes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.press-dash { position: relative; width: 28px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.press-dash::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 2px; margin-top: -1px; background: #333; transition: background 0.3s ease;
}
.press-dash:hover::before { background: #5a5a5a; }
.press-dash i {
    position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px;
    background: var(--gold); transform: scaleX(0); transform-origin: left center;
}
.press-dash.is-active i { animation: press-fill var(--press-time, 9s) linear forwards; }
.press-slider.is-hover .press-dash.is-active i,
.press-slider.is-offscreen .press-dash.is-active i { animation-play-state: paused; }
@keyframes press-fill { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
    .press-slide, .press-slide.is-active { transform: none; transition: opacity 0.01s; }
    .press-dash.is-active i { animation: none; transform: scaleX(1); }  /* ingen automatisk skift */
}
@media (max-width: 575px) {
    .press-section { padding: 3.5rem 0 3.5rem; }
    .press-mark { font-size: 4.5rem; height: 2rem; }
}
