/* -------------------------------------------------------------
   Grundlegende Farben & Schrift
   ------------------------------------------------------------- */
:root {
    --primary-color: #005075;        /* Blau für Links, Akzente */
    --bg-color:      #f8f9fa;        /* sehr helles Grau (Hintergrund) */
    --card-bg:       #ffffff;        /* weiße Karte */
    --text-color:    #212529;        /* dunkles Grau für Fließtext */
    --muted-color:   #6c757d;        /* für Beschreibungen/Meta */
    --footer-bg:     #001c29;        /* dunkler Footer‑Hintergrund */
    --header-bg:     #001c29;        /* dunkler Header‑Hintergrund */
    --footer-text:   #adb5bd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

/* unbesucht  (link)   */
a:link,
a:visited {               /* bereits besucht (visited) */
    color: var(--muted-color);
    text-decoration: none;
}

/* beim Überfahren mit der Maus (hover) */
a:hover {
    color: var(--primary-color);
    text-decoration: none;     /* z.B. Unterstreichung entfernen */
}

/* beim Anklicken (active) */
a:active {
    color: var(--primary-color);
    text-decoration: none;
}

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--header-bg);
    color: #fff;
}

.site-header h1 {
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: 2.2rem;
}

.site-header p {
    font-weight: 400;
    opacity: .9;
}

/* -------------------------------------------------------------
   Card – Bild + Metadaten + Text
   ------------------------------------------------------------- */
.content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    display: flex;
    flex-direction: column;         /* Mobile: Bild oben, Text unten */
    background: var(--card-bg);
    border-radius: .8rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.card-image {
    flex: 1 1 35%;                 /* 35% des verfügbaren Raums, wächst/ schrumpft */
    max-height: 400px;           /* maximale Höhe, damit das Bild nicht zu groß */
    overflow: hidden;              /* alles, was rausragt, wird abgeschnitten */
}

/* Bildbereich */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* Bild füllt den Container, behält Seitenverhältnis */
    display: block;                /* verhindert extra Lücken unter dem Bild */
}

/* Rechts‑seitiger Inhalt */
.card-body {
    flex: 1 1 65%;                 /* 65% des Raums (nach Bild) */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Überschrift innerhalb der Karte */
.card-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Metadaten-Definition-List */
.metadata {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .3rem .8rem;
    font-size: .95rem;
    color: var(--muted-color);
}
.metadata dt {
    font-weight: 600;
    color: var(--text-color);
}
.metadata dd {
    margin: 0;
}

/* Fließtext */
.description {
    line-height: 1.6;
    font-size: 1rem;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: .95rem;
    transition: color .2s;
}
.footer-nav a:hover {
    color: var(--primary-color);
}

.footer-copy {
    font-size: .85rem;
    opacity: .8;
}

/* -------------------------------------------------------------
   Responsives Layout
   ------------------------------------------------------------- */
@media (min-width: 768px) {
    .card {
        flex-direction: row;       /* Bild links, Text rechts */
        align-items: stretch;      /* beide Spalten gleich hoch */
    }

    .card-image,
    .card-body {
        flex-basis: auto;          /* Breite wird jetzt von flex‑Grow/Shrink bestimmt */
    }
}