/* Carolina (carolinabeachlive.com). Klassennamen stehen in PascalCase ohne
   Präfix (.Kopfband, .Beitragsliste, .Lesesatz).
   Die Übersicht ist eine zweispaltige Titelliste ohne Bilder. Im Beitrag
   hängen die Zwischenüberschriften links in den Rand hinaus, das Bild steht
   über der Hauptüberschrift. Einzug 4 Leerzeichen. */

:root {
    --creme: #faf7f1;
    --weiss: #ffffff;
    --kaffee: #3a2b22;
    --kaffeematt: #7a6a5e;
    --backstein: #7a2222;
    --backsteintief: #561616;
    --faser: #e8e1d6;
    --flaeche: "Hoefler Text", "Sitka Text", Cambria, Georgia, serif;
    --signal: "Franklin Gothic Book", "Nimbus Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--creme);
    color: var(--kaffee);
    font-family: var(--flaeche);
    font-size: 1.05rem;
    line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    font-family: var(--signal);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.55em;
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: normal;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.2rem; margin-top: 2em; }
h3 { font-size: 1.04rem; margin-top: 1.45em; }

p { margin: 0 0 1.05em; }

:where(p, li, dd, figcaption) { hyphens: auto; }

td, th { hyphens: auto; overflow-wrap: break-word; }

a { color: var(--backsteintief); }

a:hover { color: var(--backstein); }

a:focus-visible { outline: 2px solid var(--backstein); outline-offset: 2px; }

.Bahn { width: min(1000px, 100% - 2.5rem); margin-inline: auto; }

.Sprungmarke {
    position: absolute;
    left: -999px;
    background: var(--kaffee);
    color: var(--creme);
    padding: 0.6em 1em;
    z-index: 50;
}

.Sprungmarke:focus { left: 1rem; top: 1rem; }

/* ----------------------------------------------------------------- Kopf */

.Kopfband { background: var(--weiss); border-bottom: 1px solid var(--faser); }

.Kopfreihe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    flex-wrap: wrap;
    padding-block: 1.05rem;
}

.Markenblock {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--kaffee);
}

.Markenwort {
    font-family: var(--signal);
    font-size: 1.32rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.Hauptnavigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.Hauptnavigation a {
    font-family: var(--signal);
    font-size: 0.87rem;
    color: var(--kaffeematt);
    text-decoration: none;
}

.Hauptnavigation a:hover { color: var(--backsteintief); }

.Hauptnavigation a[aria-current="page"] { color: var(--kaffee); font-weight: 600; }

/* ----------------------------------------------------------------- Pfad */

.Pfadleiste {
    font-family: var(--signal);
    font-size: 0.78rem;
    color: var(--kaffeematt);
    padding-top: 1.1rem;
}

.Pfadleiste ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.Pfadleiste li + li::before { content: "\203A"; margin-right: 0.35rem; }

.Pfadleiste a { color: var(--kaffeematt); text-decoration: none; }

.Pfadleiste a:hover { color: var(--backsteintief); }

/* ----------------------------------------------------------- Uebersicht */

.Auftakt { padding-block: 2.1rem 1rem; max-width: 60ch; }

.Auftakt h1 { font-size: 2rem; }

.Auftakt p { color: var(--kaffeematt); font-size: 1.07rem; margin-bottom: 0; }

.Themenblock { padding-block: 1.5rem; border-top: 1px solid var(--faser); }

.Themenkopf {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.Themenkopf h2 { margin: 0; font-size: 1.26rem; }

.Themenkopf a { font-family: var(--signal); font-size: 0.83rem; text-decoration: none; }

.Themenkopf a:hover { text-decoration: underline; }

.Themensatz { color: var(--kaffeematt); max-width: 70ch; margin: 0.5rem 0 1.3rem; }

/* Titelliste in zwei Spalten, jeder Eintrag mit Vorschaubild darueber */
.Beitragsliste {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 2.6rem;
}

.Beitragsliste > li { break-inside: avoid; margin-bottom: 1.1rem; }

.Eintrag { border-left: 3px solid var(--faser); padding-left: 0.9rem; }

.Eintragsbild { display: block; margin: 0 0 0.6rem; }

.Eintragsbild img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.Eintrag h3 { margin: 0 0 0.25rem; font-size: 1.04rem; }

.Eintrag h3 a { color: var(--kaffee); text-decoration: none; }

.Eintrag h3 a:hover { color: var(--backsteintief); }

.Eintrag p { margin: 0; font-size: 0.93rem; color: var(--kaffeematt); }

.Zeitangabe {
    font-family: var(--signal);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--kaffeematt);
    margin: 0.35rem 0 0;
}

.Hausmitteilung {
    border-top: 1px solid var(--faser);
    padding-block: 1.5rem 2.4rem;
    max-width: 70ch;
}

.Fehlblock { padding-block: 2.4rem 3rem; max-width: 54ch; }

/* -------------------------------------------------------------- Beitrag */

.Beitrag { padding-bottom: 2.4rem; }

.Beitragsbild { margin: 1.2rem 0 1.4rem; }

.Beitragsbild img { aspect-ratio: 5 / 2; object-fit: cover; }

.Bildunterschrift {
    font-family: var(--signal);
    font-size: 0.76rem;
    color: var(--kaffeematt);
    margin: 0.4rem 0 0;
}

.Rubrikwort {
    font-family: var(--signal);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--backsteintief);
    margin: 0 0 0.45rem;
}

.Beitrag h1 { margin: 0 0 0.6rem; max-width: 24ch; }

.Kenndaten {
    font-family: var(--signal);
    font-size: 0.79rem;
    color: var(--kaffeematt);
    margin: 0 0 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--faser);
}

/* Die Zwischenueberschriften haengen links in den Rand hinaus */
.Lesesatz { max-width: 64ch; margin-left: 10rem; }

.Lesesatz h2 {
    position: relative;
    margin-left: -10rem;
    padding-left: 10rem;
}

.Lesesatz h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8.4rem;
    height: 2px;
    background: var(--backstein);
}

.Lesesatz a { text-decoration: underline; text-underline-offset: 0.15em; }

.Lesesatz h2:first-child { margin-top: 0; }

.Lesesatz ul, .Lesesatz ol { padding-left: 1.3em; }

.Lesesatz li { margin-bottom: 0.4em; }

.Lesesatz blockquote {
    border-left: 3px solid var(--backstein);
    margin: 1.3em 0;
    padding-left: 1em;
    color: var(--kaffeematt);
}

.Rollbereich { overflow-x: auto; margin: 1.3em 0; }

.Lesesatz table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }

.Lesesatz th, .Lesesatz td {
    border: 1px solid var(--faser);
    padding: 0.5em 0.7em;
    text-align: left;
}

.Lesesatz th { background: var(--weiss); font-family: var(--signal); }

.Anschlussblock {
    border-top: 1px solid var(--faser);
    padding-top: 1.4rem;
    margin-top: 2.4rem;
}

.Anschlussblock h2 { margin: 0 0 1rem; font-size: 1.06rem; }

/* ----------------------------------------------------------------- Fuss */

.Fussband {
    background: var(--weiss);
    border-top: 3px solid var(--kaffee);
    padding-block: 1.7rem 2.2rem;
    font-family: var(--signal);
    font-size: 0.84rem;
    color: var(--kaffeematt);
}

.Fussband a { color: var(--kaffeematt); text-decoration: none; }

.Fussband a:hover { color: var(--backsteintief); }

.Fussraster { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.8rem; }
.Fussraster > *, .Eintrag { min-width: 0; }

.Fussband h2 { font-size: 0.86rem; color: var(--kaffee); margin: 0 0 0.5em; }

.Fussband ul { list-style: none; margin: 0; padding: 0; }

.Fussband li { margin-bottom: 0.3em; }

.Fussschluss { margin-top: 1.3rem; }

/* ------------------------------------------------------------ Schmalgerät */

@media (max-width: 860px) {
    /* der haengende Rand passt nicht mehr, die Ueberschrift rueckt zurueck */
    .Lesesatz { margin-left: 0; }
    .Lesesatz h2 { margin-left: 0; padding-left: 0; }
    .Lesesatz h2::before { position: static; display: block; width: 4rem; margin-bottom: 0.5rem; }
    .Fussraster { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    body { font-size: 1rem; }
    .Bahn { width: min(1000px, 100% - 2rem); }
    /* schmaler Satz, deshalb frueher trennen */
    h1, h2 { hyphenate-limit-chars: 9 4 4; }
    h1 { font-size: 1.52rem; }
    .Auftakt h1 { font-size: 1.64rem; }
    .Beitragsliste { columns: 1; }
    .Beitragsbild img { aspect-ratio: 3 / 2; }
}
