.admin {
      display: none;
}
/* Sikrer at admin-back knapper vises korrekt i admin-theme */
.admin-theme .admin-back {
    background: #1a2233 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-size: 1em !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    display: inline-block !important;
}
.admin-theme .admin-back:hover {
    background: #ffd700 !important;
    color: #1a2233 !important;
}
/* Admin panel layout og tema */
.admin-panel-full {
    width: 100vw;
    min-height: 100vh;
    background: #fff;
    margin: 0;
    padding: 0 0 2em 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #222;
}

.admin-panel-full section {
    width: 90vw;
    max-width: 1200px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
    margin-bottom: 2em;
    padding: 2em 2em 1.5em 2em;
}

.admin-panel-full h1 {
    font-size: 2.2em;
    font-weight: 500;
    margin: 1.2em 0 0.7em 0;
}

@media (max-width: 900px) {
    .admin-panel-full section {
        width: 98vw;
        padding: 1em 0.5em 1em 0.5em;
    }
}

.edit-row input[type="text"] {
    width: 98%;
    font-size: 1em;
}

/* Sikrer, at alt tager højde for padding og margin korrekt */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Sikrer lodret layout som standard */
    justify-content: center;
    align-items: center;
    color: yellow;
    /* Gør al tekst gul som standard */
    background-color: black;
    /* Sort baggrund */
    font-family: 'Bahnschrift Condensed', 'Arial', 'Lucida Console', 'Digital-7', 'Courier New', sans-serif;
    /* Standard font */
}

/* Sikrer, at hovedindholdet fylder hele skærmen */
#content {
    width: 100vw !important;
    height: 100vh !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Clock view container reset (moved from inline) */
.view-clock {
    margin: 0;
}

/* Overskrifter til dato og tid */
.clock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-weight: bold;
    margin: 4vh 0;           /* from inline */
    padding: 0;          /* from inline to avoid large vertical gaps */
}

/* Ugedag og dato */
.clock-weekday,
.clock-date,
.clock-time {
        /* From inline to preserve current look */
        font-size: 12vw;
    text-transform: uppercase;
        /* Inline had line-height:1 and margin:0 */
        line-height: 1;
        margin: 0;
        /* Use the inline font stack as source of truth */
        font-family: 'Roboto Condensed', 'Courier New', Courier, monospace;
        font-weight: 600;
        /* Only one transform applies; keep the effective one */
        transform: scaleY(1.5);
}
    /* Store bogstaver for bedre synlighed */


/* Container til alle aftaler */
.clock-appointments {
    font-size: 4vw;
    width: max-content;
    /* Fylder kun det nødvendige */
    margin: 1px auto;
    /* Centerer hele aftalelisten */
    display: grid;
    grid-template-columns: max-content max-content max-content;
    /* Ensartet afstand mellem kolonner */
    align-items: baseline; /* Sikrer at tekst står på samme linje uanset font */
    gap: 8px 20px;
    /* Undgår ekstra afstand mellem rækker */
    border: 0px solid gray;
    padding: 5px;
    margin-top: 1vh;
    /* 5% af skærmens højde */
}

/* Arial til alt i clock-view */
/* .view-clock {
    transform: scaleX(0.7);  
    transform: scaleY(1.3);
}
*/
/* Monospace kun til klokkeslet */
.clock-event-time {
    /*    font-family: Verdana, Courier, monospace !important; */

    letter-spacing: 1px;
}

/* Hver række */
.clock-appointment {
    display: contents;
    line-height: 1.1;
    /* 20% større end normal (1) */
    /* Sørger for, at rækkerne arver grid-layoutet fra containeren */
}

/* Celler */
.clock-appointment {
    text-align: left;
    /* white-space: nowrap; */
    /* Undgå at linjeskift ændrer bredder */
    border-bottom: 1px solid lightgray;
    box-sizing: border-box;
    /* Sikrer, at padding ikke ændrer cellestørrelse */
    /* text-transform: uppercase; */
}


.clock-event-remaining {
    text-align: left;
    
}

.clock-event-time{
    font-family: 'Courier New', Courier, monospace; font-weight: bold;
}



.clock-event-title {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    white-space: normal;
    word-break: break-word;
}

.clock-event-remaining,
.clock-event-time {
    padding-right: 0.25em;
  
}

.clock-display-full-hour {
    font-size: 40vw;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    /* Ensartet talvisning */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.clock-display-full-hourminutes {
    font-size: 30vw;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    /* Ensartet talvisning */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.clock-display-weekday {
    font-size: 12vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    /* Ensartet talvisning */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-transform: capitalize;
    transform: scaleY(1.4);
}

.clock-display-month {
    font-size: 12vw;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    /* Ensartet talvisning */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-transform: capitalize;
    transform: scaleY(1.4);
}

/* Responssive tilpasninger */
@media (max-width: 300px) {
    .clock-time {
        font-size: 3vw;
    }

    .clock-weekday,
    .clock-date {
        font-size: 3vw;
        vertical-align: top;
    }
}



/* Til message */
/* Container til beskeden */
.message-container {
    display: flex;
    justify-content: center;
    /* Centrerer horisontalt */
    align-items: center;
    /* Centrerer vertikalt */
    height: 100vh;
    /* Fylder hele højden af skærmen */
    width: 100vw;
    /* Fylder hele bredden af skærmen */
    text-align: center;
    /* Sikrer centreret tekst */
}


/* Tekststil */
.message-text {
    font-size: 15vw;
    /* Gør teksten stor og responsiv */
    /* font-weight: bold; */
    /* Gør teksten fed */
    /* text-transform: uppercase; */
    /* Store bogstaver */
}

/* Admin tema */
.admin-theme,
.admin-theme * {
    color: #222 !important;
    background: #f8fafc !important;
    font-family: 'Segoe UI', Arial, sans-serif !important;
}

.admin-theme a {
    color: #1a73e8 !important;
}

.admin-theme h1,
.admin-theme h2 {
    color: #222 !important;
}

.admin-theme .admin-panel {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 2px 16px #0002 !important;
    padding: 40px 36px !important;
    max-width: 800px !important;
    margin: 40px auto !important;
}

/* Welcome Page Styles moved from index.html */
:root { --brand-blue: #0b3d91; }
.topnav { width: 100vw; background: var(--brand-blue); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 3vw; height: clamp(48px, 5vw, 180px); box-shadow: 0 0.15vw 0.6vw #0002; top: 0; left: 0; z-index: 100; font-family: 'Segoe UI', Arial, sans-serif; }
.topnav .brand { font-size: clamp(1.2em, 3vw, 3.5em); font-weight: 700; letter-spacing: 0.07em; color: #fff; display: flex; align-items: center; gap: 0.7vw; }
.topnav .brand-logo { width: clamp(32px, 5vw, 80px); height: clamp(32px, 5vw, 80px); border: 0.15vw solid #000; border-radius: 0.4vw; display: block; object-fit: cover; }
.topnav .menu { display: flex; gap: 2.5em; align-items: center; }
.topnav .menu a { color: #fff; text-decoration: none; font-size: clamp(0.8em, 1.2vw, 2.0em); font-weight: 500; transition: color 0.2s; }
.topnav .menu a:hover { color: #ffb300; }
.welcome-main { width: 100%; max-width: 100vw; height: auto; min-height: 100vh; margin: 0; padding: 3vw 0 1vw 0; background: #f0f2f5; display: flex; flex-direction: row; align-items: flex-start; justify-content: center; gap: 3vw; text-align: left; font-size: clamp(1.1em, 2.5vw, 1.3em); }
.welcome-left { flex: 0 0 50%; width: 50%; }
.welcome-right { flex: 0 0 40%; width: 40%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.welcome-right-inner { width: 75%; }
.welcome-demo-frame { background: #111; border-radius: 0.2vw; padding: 0.6vw 0.4vw; box-shadow: 0 0.1vw 1.0vw #0006, 0 0 0 0.3vw #222; display: flex; align-items: center; justify-content: center; width: 100%; }
.welcome-demo-iframe { width: 100%; aspect-ratio: 16/9; border: 0.1vw solid #222; border-radius: 12px; box-shadow: 0 1px 4vw #0002; background: #fff; }
.welcome-frontstrip { width: 100%; display: block; border-radius: 10px; margin-top: 2em; box-shadow: 0 2px 8px #0002; }
.welcome-main h1 { font-size: 1.5em; font-weight: 700; color: #1a2233; margin-bottom: 0.3em; letter-spacing: -1px; }
.welcome-main p.lead { font-size: 1em; color: #333; margin-bottom: 1.5em; text-align: left; }
.welcome-main img { border-radius: 10px; margin-bottom: 1.5em; box-shadow: 0 2px 8px #0002; }
.welcome-main section { margin-bottom: 2.2em; width: 100%; padding: 0 2em; }
.welcome-main h2 { font-size: 1.25em; color: #1a2233; margin-bottom: 0.5em; font-weight: 600; text-align: left; }
.welcome-main .about, .welcome-main .login { 
    color: #222; 
    /* Samme clamp som text-desc for konsistens */
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.35rem);
    text-align: left; 
    line-height: 1.6; 
}
.welcome-main .pseudo { color: #888; font-size: 1em; margin-bottom: 2em; text-align: left; }
.welcome-main .links { margin: 2.5em 0 0 0; display: flex; gap: 2em; flex-direction: row; width: 100%; justify-content: left; }
.welcome-main .links a { color: #1976d2; text-decoration: underline; font-size: 1.12em; font-weight: 500; }
.welcome-main .actions { margin-top: 8px; }
.welcome-main .btn { display: inline-block; background: #1a2233; color: #fff; border: none; border-radius: 6px; padding: 10px 24px; font-size: 1em; cursor: pointer; text-decoration: none; transition: background 0.2s, color 0.2s; }
.welcome-main .btn:hover { background: #ffd700; color: #1a2233; }
.welcome-footer { margin-top: 3em; color: #bbb; text-align: center; font-size: 1em; }
.welcome-footer a { color: #bbb; text-decoration: none; }
.welcome-footer a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) { 
    .topnav { flex-direction: column; align-items: flex-start; height: auto; padding: 2vw 3vw; } 
    .topnav .menu { flex-direction: column; gap: 1em; width: 100%; align-items: flex-start; } 
    .topnav .menu a { font-size: 1.5em; }
    .welcome-main { flex-direction: column-reverse; align-items: stretch; gap: 2vw; padding: 24px 2vw 24px 2vw; } 
    .welcome-left, .welcome-right { flex: 1 1 100%; width: 100% !important; max-width: 100%; } 
}

/* Styles from f1.html for Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolonner for kompakt layout */
    gap: 20px;
    width: 95%;
    max-width: 1400px; /* Bredere container til 3 kolonner */
    padding: 20px 0;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

.grid-item {
    background-color: #fff;
    color: #333; /* Ensure text is readable */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column; /* Gør at billede og tekst ligger under hinanden */
}

.grid-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.image-container {
    width: 100%;
    aspect-ratio: 16/9; /* Låser billedet til TV-format */
    background-color: #000;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Får billedet til at passe perfekt i 16:9 rammen */
    object-position: center;
}

.text-content {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.text-title {
    font-weight: 700;
    /* Fra 1.5rem til flydende: Min 1.3rem, Ideal 1rem + 1% skærmbredde, Max 2.2rem */
    font-size: clamp(1.3rem, 1rem + 1vw, 2.2rem); 
    margin-bottom: 8px;
    color: #1a2233; /* Darker navy for better contrast */
    letter-spacing: -0.02em;
}

.text-desc {
    /* Fra 1.25em til flydende: Min 1rem, Ideal 0.95rem + 0.3% skærmbredde, Max 1.35rem */
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.35rem);
    color: #222; /* Was #666 */
    line-height: 1.6;
    margin-bottom: 20px;
}

.action-link {
    display: inline-block;
    margin-top: auto; /* Skubber linket ned i bunden af kortet */
    color: #007bff;
    text-decoration: none;
    font-weight: 700;
    /* Matcher nu .text-title i overskrifterne: Min 1.3rem, Ideal 1rem + 1% bredde, Max 2.2rem */
    font-size: clamp(1.3rem, 1rem + 1vw, 2.2rem); 
}

.action-link:hover {
    text-decoration: underline;
}

/* Tablet: 2 kolonner */
@media (max-width: 1100px) {
    .grid-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobil: 1 kolonne */
@media (max-width: 700px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}