/* Elektro Burkart – Neue Energien Allgäu | Redesign v1 */

@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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: "Jakarta";
  src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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;
}

:root {
  --green: #6cd900;        /* Markengrün aus dem Logo */
  --green-dark: #2f7d00;   /* Grün für Text/Buttons (kontraststark) */
  --green-soft: #eef8e4;
  --sun: #ffd400;          /* Sonne aus dem Logo */
  --panel: #2f7fc1;        /* Modulblau aus dem Logo */
  --ink: #15242c;          /* Nachtblau-Schiefer */
  --ink-2: #3c4d55;
  --muted: #66767d;
  --line: #e2e8e4;
  --bg: #ffffff;
  --bg-alt: #f5f8f4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px -18px rgba(21, 36, 44, .35);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #c9d4d8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green); }
.section--dark .eyebrow { color: var(--green); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: var(--ink); }
.btn--primary:hover { background: #7ff01a; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green-dark); }
.nav .btn { padding: .65em 1.15em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; border-bottom: 0; padding: .9em 1.2em; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  background: var(--ink) url("../img/hero-pv-berge-1600.webp") center 30% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,36,44,.15) 0%, rgba(21,36,44,.35) 40%, rgba(21,36,44,.88) 100%);
}
.hero .container { position: relative; padding-bottom: clamp(48px, 8vw, 96px); padding-top: 120px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; font-weight: 600; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: .5em; }
.hero-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255,212,0,.25); }

.page-hero { background: var(--ink); color: #c9d4d8; padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.page-hero .eyebrow { color: var(--green); }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,.35), rgba(255,212,0,0) 65%);
}

/* Intro / Split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.media { position: relative; }
.media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.media-badge {
  position: absolute; left: -12px; bottom: -22px; background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 290px;
}
.media-badge strong { display: block; color: var(--ink); font-size: 1.6rem; line-height: 1; }
.media-badge span { font-size: .88rem; color: var(--muted); line-height: 1.3; }
.media-badge .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; flex: none; }
.media-badge .dot svg { width: 24px; height: 24px; color: var(--green-dark); }
@media (max-width: 860px) { .media-badge { left: 12px; } }

.fact {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm);
  background: var(--green-soft); margin-top: 24px;
}
.fact svg { width: 30px; height: 30px; color: #e3b400; flex: none; margin-top: 2px; }
.fact p { margin: 0; color: var(--ink); font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center; margin-bottom: 20px;
}
.icon svg { width: 28px; height: 28px; }

/* Zielgruppen */
.audience { position: relative; border-radius: var(--radius); overflow: hidden; background: #22343d; padding: 34px 30px; color: #c9d4d8; }
.audience h3 { color: #fff; }
.audience p { margin: 0; }
.audience .num { font-size: .8rem; font-weight: 700; letter-spacing: .12em; color: var(--green); display: block; margin-bottom: 14px; }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding: 28px 0 0; border-top: 3px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: -3px; left: 0;
  padding-top: 14px; border-top: 3px solid var(--green); width: 48px;
  font-weight: 800; color: var(--green-dark); font-size: .9rem;
}
.steps h3 { margin-top: 22px; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; align-items: center; }
@media (max-width: 900px) { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .partners { grid-template-columns: repeat(2, 1fr); } }
.partners li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; height: 96px; display: grid; place-items: center; padding: 14px 18px; overflow: hidden; }
.partners img { max-height: 58px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.partners li:hover img { filter: none; opacity: 1; }
.partners li.dark-logo { background: #111; }
.partners { padding: 0; margin: 0; }

/* Karriere-Teaser */
.career {
  display: grid; grid-template-columns: 1.2fr 1fr; border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--ink);
}
.career img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.career-body { padding: clamp(32px, 5vw, 60px); color: #c9d4d8; }
.career-body h2 { color: #fff; }
.career-body .eyebrow { color: var(--green); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315242c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section:not(.section--dark) .ticks li, .job .ticks li { color: var(--ink-2); }
.section .career-body .ticks li { color: #c9d4d8; } /* Karriere-Box: dunkler Kasten im hellen Abschnitt */
@media (max-width: 860px) { .career { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; margin: 0; border-radius: 12px; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list a, .contact-list strong { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--green-dark); }

.map-consent {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: #dfe8e2;
  display: grid; place-items: center; text-align: center; padding: 24px;
}
.map-consent p { font-size: .9rem; max-width: 40ch; margin: 0 auto 14px; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg-alt); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-dark); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-dark); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 14px; font-weight: 600; }
.form-note.ok { color: var(--green-dark); }
.form-note.err { color: #b3261e; }

/* Über uns */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline strong { display: block; color: var(--green-dark); font-size: .9rem; letter-spacing: .05em; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }

.portrait img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: top; box-shadow: var(--shadow); }
.wide-photo img { width: 100%; border-radius: var(--radius); aspect-ratio: 21/9; object-fit: cover; }
.caption { font-size: .9rem; color: var(--muted); margin-top: 12px; }

/* Karriere */
.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); }
.job-tag { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .8rem; padding: .35em .8em; border-radius: 999px; margin-bottom: 14px; }
.job h4 { font-size: 1rem; margin: 22px 0 10px; }
.job .ticks { margin: 0; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }
.benefit { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; }
.benefit .icon { background: rgba(108,217,0,.15); color: var(--green); }
.benefit h3 { font-size: 1.1rem; margin: 0; }

/* Rechtstexte */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; }
.prose dt { font-weight: 700; color: var(--ink); }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 10px; } }
.notice { background: #fff8d6; border-left: 4px solid var(--sun); padding: 14px 18px; border-radius: 8px; color: var(--ink); }

/* CTA-Band */
.cta-band { background: var(--green); color: var(--ink); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 22ch; }

/* Footer */
.site-footer { background: #0f1b21; color: #93a4ab; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d4d8; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-logo { width: 74px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }

/* Mobile Call-Leiste */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  }
  .mobile-cta .btn { padding: .75em 1em; font-size: .95rem; }
  body { padding-bottom: 72px; }
}

/* Reveal-Animation */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
:focus-visible { outline: 3px solid var(--panel); outline-offset: 3px; border-radius: 4px; }

/* Grid-Kinder dürfen schrumpfen (verhindert Überlauf durch große Bilder) */
.split > *, .grid > *, .contact > *, .career > *, .footer-grid > * { min-width: 0; }
img { height: auto; }
.media img, .career img, .portrait img, .wide-photo img { height: 100%; }
.partners a { display: grid; place-items: center; width: 100%; height: 100%; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
mark.todo { background: #ffe58a; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.container.prose { max-width: var(--max); }
.container.prose > * { max-width: 760px; }

@media (max-width: 900px) { .hero { background-image: url("../img/hero-pv-berge-900.webp"); } }
.wide-photo img { object-position: 50% 25%; }
.footer-grid { grid-template-columns: 1.3fr 1fr 1.15fr .7fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a[href^="mailto"] { white-space: nowrap; }

/* Logo 2025 rechts im Aufmacher (nur große Bildschirme) */
.hero-logo {
  position: absolute; z-index: 1;
  top: clamp(56px, 9vh, 110px);
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: clamp(240px, 24vw, 340px); height: auto;
  filter: drop-shadow(0 2px 14px rgba(10, 20, 25, .45));
  pointer-events: none;
}
@media (max-width: 1023px) { .hero-logo { display: none; } }
.hero-eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(10, 20, 25, .6); }
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(10, 20, 25, .35); }
.brand img { height: 58px; width: auto; }
.hero-logo { filter: drop-shadow(0 1px 2px rgba(10, 20, 25, .55)) drop-shadow(0 4px 18px rgba(10, 20, 25, .5)); }

/* Human Check (ALTCHA) im Look der Seite */
.human-check altcha-widget {
  --altcha-color-primary: var(--green-dark);
  --altcha-color-success: var(--green-dark);
  --altcha-color-error: #b3261e;
  --altcha-border-color: var(--line);
  --altcha-border-radius: 10px;
  --altcha-color-base: var(--bg-alt);
  --altcha-color-base-content: var(--ink);
  --altcha-max-width: 100%;
  font-family: inherit;
  display: block;
}

/* Bild mit Bildunterschrift */
.media--caption { margin: 0; }
.media--caption img { height: auto; }
.media--caption figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
