/*
Theme Name: GC Neuhof
Description: Klassisches Theme für die Website des Golf-Club Neuhof e.V. Feste PHP-Vorlagen, Pflege über beschriftete Eingabefelder.
Author: LOKAGO
Version: 0.6.4
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: gc-neuhof
*/

/* Archivo Narrow, SIL Open Font License, lokal ausgeliefert */
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("assets/fonts/archivo-narrow-v24-latin-regular.woff2") format("woff2");
}
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("assets/fonts/archivo-narrow-v24-latin-500.woff2") format("woff2");
}
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("assets/fonts/archivo-narrow-v24-latin-700.woff2") format("woff2");
}

:root {
    --gcn-gruen: #67ab01;
    --gcn-gruen-dunkel: #345900;
    --gcn-flaeche: #f3f4f6;
    --gcn-sand: #bbb8a7;
    --gcn-text: #000;
    --gcn-header-hoehe: 88px;
}
@media (min-width: 1280px) {
    :root { --gcn-header-hoehe: 107px; }
}

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

body {
    margin: 0;
    color: var(--gcn-text);
    background: #fff;
    font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 1280px) {
    body { font-size: 18px; }
}

img { max-width: 100%; height: auto; }
a { color: var(--gcn-gruen); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gcn-gruen-dunkel); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.25; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Kopfbild mit Seitentitel, für alle Seitenvorlagen gleich */
.gcn-hero {
    position: relative;
    display: grid;
    align-items: end;
    isolation: isolate;
    width: 100%; /* sonst verbreitert aspect-ratio + min-height die Fläche */
    margin: 0 0 1em;
    color: #fff;
    background: #243a22;
}
.gcn-hero--mit-bild { aspect-ratio: 40 / 13; }
.gcn-hero__bild {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Keine Abdunklung: Das Original zeigt das Kopfbild unverändert. */
.gcn-hero__titel {
    margin: 0;
    padding: 1.5rem;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .gcn-hero--mit-bild { min-height: 300px; }
    .gcn-hero__titel { font-size: 2.5rem; padding: 1.5rem 1.5rem; }
}
@media (min-width: 1280px) {
    .gcn-hero__titel { padding: 27px; font-size: 45px; }
}

/* Standardseite ohne Feldzuordnung */
.gcn-standard {
    max-width: 52rem;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.gcn-standard h2, .gcn-standard h3 { color: var(--gcn-gruen); }
