/*
 * Unser kleines Dorf – Marktplatz: Seitenrahmen (Kopf, Menü, Inhalt, Fuß)
 * Die Farben der Anzeigen stehen im Paket (marktplatz.css), hier nur der Rahmen.
 */

/* 17.11.2026: Schrift Trykker wie termine.heimat-verbindet.jetzt (Überschriften und Text) */
@font-face { font-family: 'Trykker'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/trykker-regular.woff2') format('woff2'), url('../fonts/trykker-regular.woff') format('woff'); }

:root {
    --seite: #fffaf3;
    --text: #4a3f36;
    --titel: #7a3a1a;
    --akzent: #c25a24;
    --flaeche: #fbf1e3;
    --linie: #ecdcc6;
    --breite: 1180px;
    --rand: 20px;
    --schrift: 'Trykker', Georgia, serif;
    --schrift-titel: 'Trykker', Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--seite);
    color: var(--text);
    font: 17px/1.6 var(--schrift);
}

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

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

h1,
h2,
h3 {
    font-family: var(--schrift-titel);
}

.invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

/* ---------- Kopf ---------- */
#header .inside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 28px;
    padding: 14px max(var(--rand), (100% - var(--breite)) / 2);
    background: #fff;
    border-bottom: 1px solid var(--linie);
}

.kopf-name p {
    margin: 0;
    color: var(--titel);
    font: 600 2.00rem/1.1 var(--schrift-titel);
}

.kopf-name a {
    color: inherit;
    text-decoration: none;
}

.kopf-name p + p {
    color: #8b7b6d;
    font: 600 .7rem/1.5 var(--schrift);
    letter-spacing: .14em;
    text-transform: uppercase;
}

#header .mod_customnav {
    margin-left: auto;
}

#header .mod_customnav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .mod_customnav :is(a, strong) {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

#header .mod_customnav strong.active,
#header .mod_customnav a:hover {
    color: var(--akzent);
}

/* Bildstreifen unter dem Kopf */
.kopfbild {
    margin: 0;
}

.kopfbild figure {
    margin: 0;
}

.kopfbild img {
    display: block;
    width: 100%;
    height: clamp(90px, 11vw, 201px);
    object-fit: cover;
}

/* ---------- Inhalt ---------- */
#container {
    width: min(var(--breite), 100% - 2 * var(--rand));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.mod_article > .content-text h1,
.einleitung h1 {
    margin: .3em 0 .25em;
    color: var(--titel);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.einleitung .rte > p {
    max-width: 44rem;
    margin: 0 auto 1.6rem;
    font-size: 1.12rem;
    text-align: center;
}

.einleitung--links h1,
.einleitung--links .rte > p {
    margin-left: 0;
    text-align: left;
}

/* ---------- Fuß ---------- */
#footer .inside {
    padding: 28px max(var(--rand), (100% - var(--breite)) / 2);
    background: #4a3f36;
    color: #eadfd2;
    font-size: .92rem;
}

#footer p {
    margin: 0;
}

#footer a {
    color: #fff;
}

@media (max-width: 700px) {
    #header .mod_customnav {
        width: 100%;
        margin-left: 0;
    }

    #header .mod_customnav ul {
        gap: 4px 16px;
        font-size: .95rem;
    }
}

/* ---------- Startseite: Collage und Anmeldung ---------- */
.startcollage {
    margin: 0;
    background: #fff;
    border-bottom: 1px solid var(--linie);
}

.startcollage figure {
    margin: 0;
}

/* Collage randlos: Innenabstand des Kopfs nur für den Namen */
.startseite #header .inside {
    padding: 14px 0 0;
}

.startseite .kopf-name {
    padding: 0 max(var(--rand), (100% - var(--breite)) / 2);
}

.startseite .startcollage {
    flex: 0 0 100%;
    min-width: 0;
}

.startcollage img {
    display: block;
    width: 100%;
}

.startseite #container {
    padding-top: 36px;
}

.startseite .mod_article {
    max-width: 30rem;
    margin: 0 auto;
    padding: 28px 30px 30px;
    background: #fff;
    border: 1px solid var(--linie);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgb(122 58 26 / 6%);
}

.startseite .mod_article h2 {
    margin: 0 0 .8em;
    color: var(--titel);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}

:is(.startseite, .mein-konto) form .widget {
    margin-bottom: 14px;
}

:is(.startseite, .mein-konto) form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
}

:is(.startseite, .mein-konto) form input:is(.text, .password, .captcha) {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9c4ab;
    border-radius: 6px;
    background: var(--seite);
    color: var(--text);
    font: inherit;
}

:is(.startseite, .mein-konto) form input:is(.text, .password, .captcha):focus {
    border-color: var(--akzent);
    outline: 2px solid rgb(194 90 36 / 20%);
}

:is(.startseite, .mein-konto) form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

:is(.startseite, .mein-konto) form .widget-checkbox label {
    display: inline;
    font-weight: 400;
}

:is(.startseite, .mein-konto) form .submit {
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: var(--akzent);
    color: #fff;
    font: 600 1rem/1.2 var(--schrift);
    cursor: pointer;
}

:is(.startseite, .mein-konto) form .submit:hover {
    background: #a94a1a;
}

:is(.startseite, .mein-konto) form p.error {
    padding: 8px 12px;
    border-radius: 6px;
    background: #fbe4dc;
    color: #8a2c0c;
}

:is(.startseite, .mein-konto) form p.error {
    margin: 4px 0 0;
}

.start-einleitung,
.start-danke {
    margin-bottom: 18px;
    text-align: center;
}

.start-links {
    margin-top: 18px;
    font-size: .95rem;
    text-align: center;
}

.start-links p {
    margin: 0 0 .4em;
}

.start-hinweis {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed var(--linie);
    font-size: .95rem;
}

.start-hinweis p {
    margin: 0 0 .6em;
}

/* Auf schmalen Bildschirmen nur die Mitte der Collage, damit „Marktplatz“ lesbar bleibt */
@media (max-width: 700px) {
    .startcollage img {
        height: clamp(170px, 48vw, 260px);
        object-fit: cover;
        object-position: 50% 50%;
    }

    .startseite .mod_article {
        padding: 22px 18px 24px;
    }
}

/* Mein Konto: Formulare wie bei der Anmeldung */
.mein-konto main form {
    max-width: 560px;
    margin-bottom: 40px;
}

.mein-konto form legend {
    margin: 18px 0 8px;
    padding: 0;
    font-weight: 600;
    color: var(--akzent);
}

.mein-konto form .submit {
    width: auto;
    padding-inline: 24px;
}

/* 17.11.2026: Übersicht nach dem Login – drei Kacheln (Seite „Übersicht“) */
.kacheln {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 28px 0 48px;
}
.kachel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 26px 24px;
    background: var(--flaeche);
    border: 1px solid var(--linie);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.kachel:hover,
.kachel:focus-visible {
    transform: translateY(-3px);
    border-color: var(--akzent);
    box-shadow: 0 8px 22px rgba(122, 58, 26, .12);
}
.kachel__symbol { color: var(--akzent); line-height: 0; }
.kachel__titel { margin: 4px 0 0; font: 400 1.6rem/1.2 var(--schrift-titel); color: var(--titel); }
.kachel__text { margin: 0; flex: 1; }
.kachel__mehr { color: var(--akzent); font-weight: 600; }
.kachel__mehr::after { content: " →"; }

/* Übersicht: im Kopf nur „Mein Konto“ und „Abmelden“ (Marktplatz-Punkte ausgeblendet) */
.uebersicht #header .mod_customnav li:nth-child(-n+3) { display: none; }

/* 17.11.2026: Dorf-Seiten (Gemeinschaftsprojekte, Dorfwissen) – Kopf nur „Mein Konto“ und „Abmelden“ */
.dorf-seiten #header .mod_customnav li:nth-child(-n+3) { display: none; }
.pfadzeile { margin: 18px 0 0; font-size: .95rem; }
.pfadzeile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pfadzeile li + li::before { content: "›"; margin-right: 6px; color: var(--akzent); }
.pfadzeile a { color: var(--akzent); text-decoration: none; }
.pfadzeile .active { color: var(--text); }
.dorf-themen ul { list-style: none; margin: 24px 0 48px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.dorf-themen a, .dorf-themen strong { display: block; padding: 16px 18px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; color: var(--titel); font: 400 1.2rem/1.3 var(--schrift-titel); text-decoration: none; }
.dorf-themen a:hover, .dorf-themen a:focus-visible { border-color: var(--akzent); color: var(--akzent); }

/* 17.11.2026: Link „Zurück zur Übersicht“ */
.zur-uebersicht { margin: 18px 0 0; font-size: .95rem; }
.zur-uebersicht a { color: var(--akzent); text-decoration: none; }
.zur-uebersicht a:hover, .zur-uebersicht a:focus-visible { text-decoration: underline; }
.zur-uebersicht span { display: inline-block; transition: transform .15s ease; }
.zur-uebersicht a:hover span { transform: translateX(-3px); }
/* nur auf den Startseiten der drei Bereiche (Seiten-Klasse bereich-start: Marktplatz, Gemeinschaftsprojekte, Dorfwissen) */
.zur-uebersicht { display: none; }
.bereich-start .zur-uebersicht { display: block; }
.zur-uebersicht + .pfadzeile { margin-top: 6px; }
.bereich-start .pfadzeile { display: none; }
