/* ==========================================================================
   Energiebüro Lüneburg – Stylesheet
   FARBEN: nur hier im :root-Block ändern.
   PLATZHALTER – durch die Originalfarben der Referenzseite ersetzen.
   ========================================================================== */
:root {
    --c-primary:      #1f6b57;   /* PLATZHALTER Hauptfarbe (Header-Akzente, Buttons, Hero) */
    --c-primary-dark: #154b3d;   /* PLATZHALTER Hover / dunkle Flächen */
    --c-accent:       #d98a1f;   /* PLATZHALTER Akzent (NEU-Hinweis) */
    --c-text:         #22303a;
    --c-muted:        #5b6b75;
    --c-bg:           #ffffff;
    --c-tint:         #f1f5f3;   /* helle Abschnittsfläche */
    --c-border:       #d6e0db;
    --c-footer:       #1d2a30;
    --c-footer-text:  #dfe8e4;
    --c-error:        #c0392b;

    --radius: 6px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 0.15em; }
a:hover { color: var(--c-primary-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 3px solid var(--c-primary); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; }
.logo img { width: 160px; height: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.main-nav a {
    display: block; padding: 0.5rem 0.8rem; text-decoration: none; color: var(--c-text);
    font-weight: 550; border-radius: var(--radius);
}
.main-nav a:hover { background: var(--c-tint); color: var(--c-primary-dark); }
.main-nav a[aria-current="page"] { color: var(--c-primary); box-shadow: inset 0 -3px 0 var(--c-primary); border-radius: 0; }
.main-nav a.nav-cta { background: var(--c-primary); color: #fff; border-radius: var(--radius); box-shadow: none; }
.main-nav a.nav-cta:hover { background: var(--c-primary-dark); color: #fff; }
.main-nav a.nav-cta[aria-current="page"] { background: var(--c-primary-dark); box-shadow: inset 0 -3px 0 var(--c-accent); }
.nav-toggle {
    display: none; font: inherit; font-weight: 600; padding: 0.5rem 0.9rem;
    border: 2px solid var(--c-primary); background: #fff; color: var(--c-primary); border-radius: var(--radius); cursor: pointer;
}

/* ---- Sections ---- */
.hero { background: var(--c-primary); color: #fff; padding: clamp(3rem, 8vw, 6rem) 0; }
.hero h1 { margin-bottom: 0.3em; }
.hero h2 { font-weight: 500; opacity: 0.95; }
.hero p { max-width: 62ch; font-size: 1.15rem; margin-bottom: 0; }
.page-head { background: var(--c-tint); border-bottom: 1px solid var(--c-border); padding: 2.2rem 0 1.6rem; }
.page-head h1 { margin: 0; color: var(--c-primary-dark); }
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section--tint { background: var(--c-tint); }
.lead { font-size: 1.2rem; }

.prose { max-width: 70ch; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose > :first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.split > .prose, .cols-2 > div { max-width: none; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); max-width: none; }

.callout { border-left: 6px solid var(--c-accent); background: var(--c-tint); padding: 1.5rem 1.75rem; border-radius: 0 var(--radius) var(--radius) 0; }
.callout h2 { margin-bottom: 0.4em; }
.callout p:last-child { margin-bottom: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.tile {
    display: flex; flex-direction: column; gap: 0.25rem; padding: 1.4rem 1.5rem; background: #fff;
    border: 1px solid var(--c-border); border-top: 4px solid var(--c-primary); border-radius: var(--radius);
    text-decoration: none; color: var(--c-text);
}
.tile:hover { border-top-color: var(--c-accent); }
.tile-title { font-size: 1.25rem; font-weight: 650; }
.tile-sub { color: var(--c-primary); font-weight: 550; }

.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-border); }
.linklist li { border-bottom: 1px solid var(--c-border); }
.linklist a { display: block; padding: 0.9rem 0.25rem; text-decoration: none; font-weight: 550; }
.linklist a:hover { background: var(--c-tint); padding-left: 0.75rem; }

.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.img-row img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); }
.figure { margin: 1.5rem 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption { color: var(--c-muted); font-size: 0.95rem; margin-top: 0.4rem; }

.placeholder { border: 2px dashed var(--c-border); background: #fff; color: var(--c-muted); padding: 0.75rem 1rem; border-radius: var(--radius); }
.placeholder--img { min-height: 260px; display: grid; place-items: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-block; font: inherit; font-weight: 650; padding: 0.7rem 1.5rem; cursor: pointer;
    background: var(--c-primary); color: #fff; border: 2px solid var(--c-primary); border-radius: var(--radius); text-decoration: none;
}
.btn:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { color: #fff; }

/* ---- Formulare ---- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.25rem; }
.form--kontakt { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; padding: 0; }
.req { color: var(--c-error); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
    font: inherit; width: 100%; padding: 0.65rem 0.8rem; color: var(--c-text); background: #fff;
    border: 1px solid #9fb3aa; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 7rem; }
.choice { display: flex; align-items: center; gap: 0.5rem; font-weight: 400 !important; }
.choice input { width: 1.1rem; height: 1.1rem; accent-color: var(--c-primary); }
.hint { color: var(--c-muted); font-size: 0.95rem; margin: 0.4rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ---- */
.site-footer { background: var(--c-footer); color: var(--c-footer-text); margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h3 { font-size: 1.15rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
.footer-cols img { width: 220px; border-radius: var(--radius); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 0.4rem; }
.footer-name { margin: 0; padding: 1rem 1.25rem 1.5rem; text-align: center; font-size: 0.95rem; opacity: 0.75; }

/* ---- Mobil ---- */
@media (max-width: 860px) {
    .nav-toggle { display: inline-block; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--c-primary); padding: 0.5rem 1.25rem 1rem; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--c-primary); }
    .split, .cols-2, .tiles, .img-row, .footer-cols, .form { grid-template-columns: 1fr; }
    .img-row img { height: 160px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
