/* uvv-herzog: Optik der Altseite (Bootstrap Package, modifications.scss) auf knet_sitepackage übertragen.
   Quelle: TYPO3/uvv-herzog_upgrade/02_optik-diagnose.md. Lädt nach theme.css (Setting knet.advanced.customCss). */

/* 1. Schrift Quattrocento, lokal (Google-Fonts-Dateien OFL, keine Fremdaufrufe) */
@font-face { font-family: 'Quattrocento'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/quattrocento-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quattrocento'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/quattrocento-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Quattrocento'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/quattrocento-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Quattrocento'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/quattrocento-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* html:root schlägt die Inline-Variablen des Sitepackage (<style id="knet-theme-fonts">), die nach den Stylesheets stehen */
html:root {
  --knet-font-body: 'Quattrocento', Georgia, serif;
  --knet-font-headline: 'Quattrocento', Georgia, serif;
  --bs-body-font-family: 'Quattrocento', Georgia, serif;
  --uvv-gruen: #007656;
  --uvv-grau: #8B8B8B;
  --uvv-text: #2B2B2B;
}

/* 2. Typografie wie alt: Fließtext 16px/#2b2b2b, Überschriften leicht (Quattrocento hat nur 400/700) */
body { font-family: 'Quattrocento', Georgia, serif; color: var(--uvv-text); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: 'Quattrocento', Georgia, serif; font-weight: 400; color: var(--uvv-text); }

/* 2a. Overlay-Header wie alt: transparent über dem Hero (alle Seiten haben den Hero), Inhalt rutscht unter den Header */
.knet-header-overlay .knet-header { background: transparent; }
body.knet-header-overlay .knet-main { padding-top: 0; }
@media (max-width: 767.98px) {
  .knet-hero img { height: 400px; }
}
h2, .h2 { font-size: 2.275rem; margin-bottom: 1rem; }
h3, .h3 { font-size: 1.95rem; margin-bottom: 0; }
h4, .h4 { font-size: 1.5rem; }
@media (max-width: 767.98px) {
  h2, .h2 { font-size: 1.75rem; }
  h3, .h3 { font-size: 1.5rem; }
}

/* 3. Links im Inhalt: grau unterstrichen, in Absätzen grün (alt: #page-content a / #page-content p a) */
main a { color: var(--uvv-grau); text-decoration: underline; }
main p a { color: var(--uvv-gruen); }

/* 4. Navigation: grüne Links, aktiv/hover schwarz; mobil grau */
.knet-header .navbar-nav .nav-link { color: var(--uvv-gruen) !important; }
.knet-header .navbar-nav .nav-link:hover, .knet-header .navbar-nav .nav-link:focus,
.knet-header .navbar-nav .active > .nav-link, .knet-header .navbar-nav .nav-link.active { color: rgba(0, 0, 0, 0.9) !important; }
.knet-header-overlay .knet-header .navbar-brand { border: 1px solid var(--uvv-gruen); border-top: 0; }
@media (min-width: 992px) {
  /* Kasten hängt wie alt (#mainnavigation: margin-top -60px, padding-top 30px, margin-left -100%) am oberen Rand,
     reicht nach links über den Viewport hinaus und endet 71px tief; die Logo-Karte liegt darüber.
     body.-Präfix nötig: das Sitepackage setzt align-self: center mit gleicher Spezifität. */
  body.knet-header-overlay .knet-header .navbar-collapse { align-self: flex-start; margin-left: -100%; padding: 30px 1rem 0;
    background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--uvv-gruen); border-right: 1px solid var(--uvv-gruen); }
  body.knet-header-overlay .knet-header .navbar-brand { position: relative; z-index: 1; }
  /* Gescrollt (ab 150 px, Setting knet.header.overlayShrinkHeight 70px, Body-Klasse knet-scrolled): wie alt navbar-transition —
     weißer 70-px-Header, Logo 80 px ohne Karte und Rand, Menü ohne Kasten, vertikal mittig */
  body.knet-header-overlay.knet-scrolled .knet-header .navbar-collapse { align-self: center; margin-left: 0; padding: 0 1rem; background: transparent; border: 0; }
  body.knet-header-overlay.knet-scrolled .knet-header .navbar-brand { border: 0; }
  body.knet-header-overlay.knet-header-shrink.knet-scrolled .knet-header .navbar-brand .knet-logo { height: 80px; max-height: none; } /* Spezifität wie Sitepackage */
}
@media (max-width: 991.98px) {
  .knet-header .navbar-nav .nav-link { color: rgba(73, 80, 87, 0.7) !important; }
}

/* 5. Hero: dünne schwarze Linie unter dem Bild wie alt (.carousel border-bottom); Abstand zur ersten Überschrift
   (Tommy 16.10.: Test mit 25 px; alt sind es 56 px) */
.knet-carousel { border-bottom: 1px solid #000; }
.knet-hero { margin-bottom: 25px; }

/* 6. Grünes Band: Textspalten-Element mit zwei Check-Listen (alt colPos 30/31, section-primary), volle Breite wie alt */
.frame-type-knet_textcolumns { background-color: var(--uvv-gruen); color: #fff; padding: 2.5rem 0; margin: 2rem 0;
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.frame-type-knet_textcolumns > .knet-textcolumns, .frame-type-knet_textcolumns > header { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* 6a. Header mobil: weiß und kompakt wie alt (70px) */
@media (max-width: 991.98px) {
  .knet-header-overlay .knet-header { background: #fff; height: 70px; }
  html:root { --knet-header-height: 70px; }
}
.frame-type-knet_textcolumns .container, .frame-type-knet_textcolumns .knet-textcolumns { color: #fff; }
.frame-type-knet_textcolumns a { color: #fff; }
.frame-type-knet_textcolumns ul { list-style: none; padding-left: 1.5rem; }
.frame-type-knet_textcolumns li { position: relative; padding-left: 5px; line-height: 1.5rem; }
.frame-type-knet_textcolumns li::before { content: "\f00c"; font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: -1.5rem; }

/* 7. Icons (FontAwesome) grün wie alt */
.fas, .fa-solid { color: rgba(0, 118, 86, 0.7); }

/* 8. Zitatkästen (alt: blockquote mit grünem Balken) */
blockquote { position: relative; padding: 0.5rem; border-left: 4px solid var(--uvv-gruen); margin-bottom: 1rem; margin-left: 4rem; font-size: 0.9rem; }

/* 9. Großer grüner Anfangsbuchstabe und grüne h4 in den Kopfblöcken der Seiten (alt: #c45, #c31, #c10, #c55, #c74, #c21, #c28, #c24, #c88) */
.frame-type-text > header > h2::first-letter, .frame-type-text > header > h3::first-letter,
.frame-type-textmedia > header > h3::first-letter { font-size: larger; color: var(--uvv-gruen); }
.frame-type-text h4, .frame-type-textmedia h4 { color: var(--uvv-gruen); }

/* 9a. Unternavigation (Kontakt / Datenschutz / Impressum) wie alt: schlichte Links, gepunktete grüne Trennlinie, aktiv grün */
.knet-subnav { border-left: 1px dotted var(--uvv-gruen); padding-left: 1rem; }
.knet-subnav .list-group-item { border: none; background: transparent; padding: 0.35rem 0; color: var(--uvv-grau); text-decoration: underline; }
.knet-subnav .list-group-item.active { color: var(--uvv-gruen); background: transparent; }

/* 10. News: grüne Überschriften, graue unterstrichene Links, kein „mehr“ */
.news h3, .news .article h3 { color: var(--uvv-gruen); font-size: 1.3rem; }
.news h3 a { color: var(--uvv-gruen) !important; text-decoration: underline; }
.news a { color: var(--uvv-grau); text-decoration: underline; }
.news a.more { display: none; }

/* 11. Footer: dunkel (knet.color.secondary #2B2B2B), grüne Oberkante, grüne Überschriften mit Linie, hellgraue Links */
.knet-footer { border-top: 3px solid var(--uvv-gruen); }
.knet-footer h5, .knet-footer .h5, .knet-footer h4 { color: var(--uvv-gruen); border-bottom: 1px solid var(--uvv-gruen); font-weight: 400; }
.knet-footer, .knet-footer p, .knet-footer .table, .knet-footer td { color: #C0C0C0; }
.knet-footer a:not(.btn) { color: #C0C0C0; }
.knet-footer a:not(.btn):hover, .knet-footer a:not(.btn):focus { color: #fff; }
.knet-footer td { border: none; padding: 2px; }
.knet-footer ul { list-style-type: none; padding-left: 0; }
.knet-footer p { padding-left: 25px; }
.knet-footer p i { margin-left: -25px; margin-right: 10px; }
.knet-footer-bottom, .knet-footer-meta { font-size: 0.7em; }
