/* ============================================================================
   Finest Energy - gemeinsame Gestaltung der Website                  site.css v1.1 A574
   Erstellt: 29.11.2026 (A572, Karl: Onepager -> Seite mit Unterseiten)
   Farben, Schriften, Knoepfe und Abstaende aus der bisherigen site/index.html (Stand A571);
   Raster und Lage der Bloecke aus der freigegebenen Testseite. Gilt fuer alle Seiten unter site/
   und fuer den Rahmen von /kontakt/ (lib/kontakt_seite.php). Seitenspezifisches bleibt in der Seite.
   v1.1 (A574, 29.11.2026): Mobilmenue .mm ueber der Weihnachtsgirlande (saison.js v1.2 haengt sie mit z-index 1 an den Kopf).
   ============================================================================ */
:root {
  --black: #080808; --dark: #111111; --dark2: #1a1a1a;
  --gold-dark: #8a6a10; --gold: #c9943a; --gold-mid: #d4a84b; --gold-light: #f0cc7a; --gold-bright: #f5d97e;
  --white: #f5f0e8; --white-dim: rgba(245,240,232,0.7); --white-faint: rgba(245,240,232,0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--white); font-family: 'Montserrat', sans-serif; font-weight: 300; overflow-x: hidden; }
a { color: var(--gold-mid); }
h1, h2, h3 { font-weight: 300; }
h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; margin: 0; }
h1 em, .h2 em { font-style: italic; }

/* ── Kopf ── */
header { position: sticky; top: 0; z-index: 100; background: rgba(8,8,8,0.97); border-bottom: 1px solid rgba(180,140,40,0.15); }
html.fe-banner-an header { top: var(--fe-banner-h, 0px); }
html.fe-banner-an body { padding-top: var(--fe-banner-h, 0px); }
.hd { max-width: 1320px; margin: 0 auto; padding: 0.6rem 4rem; display: flex; align-items: center; gap: 2.5rem; }
.hd > a:first-child img { height: 100px; display: block; margin: -10px 0; }
.nav { display: flex; gap: 2.2rem; flex: 1; justify-content: center; }
.nav a, .mm a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white-dim); text-decoration: none; transition: color 0.3s; }
.nav a:hover, .nav a[aria-current="page"], .mm a[aria-current="page"] { color: var(--gold-light); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--gold-mid); padding-bottom: 4px; }
.cta { display: flex; gap: 12px; align-items: center; }
.b1, .b2 { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; padding: 0.7rem 1.6rem; transition: opacity 0.3s; }
.b1 { color: var(--black); background: linear-gradient(135deg, var(--gold-mid), var(--gold-light)); }
.b2 { color: rgba(245,240,232,0.85); border: 1px solid rgba(245,240,232,0.3); }
.b1:hover, .b2:hover { opacity: 0.85; }
details.mob { display: none; margin-left: auto; position: relative; }
details.mob summary { list-style: none; cursor: pointer; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; color: var(--gold-light); border: 1px solid rgba(200,160,60,0.35); padding: 0.6rem 1rem; }
details.mob summary::-webkit-details-marker { display: none; }
details.mob summary:focus-visible, .nav a:focus-visible, .b1:focus-visible, .b2:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.mm { z-index: 5; position: absolute; right: 0; top: calc(100% + 10px); background: var(--black); border: 1px solid rgba(180,140,40,0.3); padding: 1rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; min-width: 240px; }

/* ── Abschnitte, Texte, Knoepfe ── */
main section { padding: 6.5rem 0; }
main [id] { scroll-margin-top: 140px; }   /* Sprungmarken nicht unter dem festen Kopf */
.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 4rem; padding-right: 4rem; }
section.wrap, article.wrap { padding-top: 6.5rem; padding-bottom: 6.5rem; }
.eb { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-mid); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.8rem; }
.eb::before { content: ''; display: block; width: 30px; height: 1px; background: var(--gold-mid); flex-shrink: 0; }
.card .eb::before { display: none; }
.h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.15; margin: 0; }
.tx { font-size: 0.95rem; line-height: 1.85; color: var(--white-dim); margin: 0; }
.tx a { color: var(--gold-mid); text-decoration: none; }
.btn { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--black); background: linear-gradient(135deg, var(--gold-mid), var(--gold-light)); padding: 1rem 2.5rem; text-decoration: none; box-shadow: 0 4px 30px rgba(200,160,60,0.25); transition: transform 0.3s, box-shadow 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(200,160,60,0.4); }
.card { display: flex; flex-direction: column; gap: 0.9rem; background: var(--black); border: 1px solid rgba(180,140,40,0.18); padding: 2.2rem; color: var(--white); text-decoration: none; transition: border-color 0.3s; }
a.card:hover { border-color: rgba(200,160,60,0.55); }
.more { margin-top: auto; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; color: var(--gold-mid); }
main ul.tx li, main ol.tx li { line-height: 1.7; }
details summary { color: var(--white); }
details summary:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* ── Fuss ── */
footer { background: #1a1610; border-top: 1px solid rgba(180,140,40,0.25); }
.ft { max-width: 1320px; margin: 0 auto; padding: 2.5rem 4rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; font-size: 0.72rem; color: rgba(245,240,232,0.45); letter-spacing: 0.08em; }
.ft nav { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; }
.ft nav a { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,240,232,0.45); text-decoration: none; }
.ft nav a:hover { color: var(--gold-mid); }

/* ── Startseite: Hero (Selektoren fuer saison.js: #hero, .hero-bg, .hero-content) ── */
#hero { position: relative; overflow: hidden; }
#hero .hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#hero .wrap { position: relative; z-index: 1; }
#hero .hero-content { position: relative; max-width: 780px; }
html.fe-banner-an #hero { padding-top: 0 !important; }   /* aktion-banner.js setzt !important fuer den alten festen Kopf; der neue Kopf rueckt selbst nach */

/* ── Mobil ── */
@media (max-width: 1100px) { .nav { gap: 1.4rem; } .hd { gap: 1.5rem; padding: 0.6rem 2rem; } }
@media (max-width: 960px) {
  .nav, .cta { display: none; }
  details.mob { display: block; }
  .hd { padding: 0.5rem 1.5rem; }
  .hd > a:first-child img { height: 56px; }
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  main section, section.wrap, article.wrap { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  main h1 { font-size: 2.6rem !important; }
  .h2 { font-size: 2rem !important; }
  .card { padding: 1.6rem; }
  .ft { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
  main [style*="padding:48px"], main [style*="padding:40px"] { padding: 1.6rem !important; }
}
