/* =========================================================
   Walz Energy Solutions UG – Stylesheet
   Farben aus dem Logo (Entwurf, Freigabe ausstehend):
   --blau: Nachtblau | --gold: Sonnengold | --weiss: Warmweiß
   ========================================================= */

:root {
  --blau: #1A2D3D;
  --blau-hell: #2B4A63;
  --gold: #E0B048;
  --weiss: #FFFFF0;
  --creme: #FBF3DC;
  --text: #1A2D3D;
  --grau: #4A5A68;
  --fokus: #FFB300;
}

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

body {
  margin: 0;
  font-family: Inter, "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--weiss);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Montserrat, Poppins, sans-serif;
  line-height: 1.2;
}

a { color: var(--blau-hell); }

/* Sichtbarer Fokus für Tastatur-Nutzung (Barrierefreiheit) */
:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 3px;
}

/* Sprunglink für Tastatur und Screenreader */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--weiss);
  color: var(--blau);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Kopfbereich & Navigation ---------- */
.site-header {
  background: var(--blau);
  color: var(--weiss);
  position: sticky;
  top: 0;
}

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--weiss);
  text-decoration: none;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  width: 48px;
  height: 48px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--gold);
  color: var(--weiss);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.nav-liste {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-liste a {
  color: var(--weiss);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.nav-liste a:hover,
.nav-liste a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

/* Mobile Navigation: ausklappbares Menü */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-liste {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .nav-liste.offen { display: flex; }
}

/* Farbverlauf als Trennlinie: Blau in Gold */
.verlauf-linie {
  height: 6px;
  background: linear-gradient(90deg, var(--blau) 0%, var(--gold) 100%);
}

/* ---------- Startseite (Hero) ---------- */
.hero {
  background: linear-gradient(160deg, var(--blau) 0%, var(--blau-hell) 55%, var(--gold) 100%);
  color: var(--weiss);
  padding: 4.5rem 0 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
  max-width: 20ch;
}

.hero p {
  max-width: 60ch;
  font-size: 1.1rem;
}

/* ---------- Unterseiten (Seitenkopf) ---------- */
.seitenkopf {
  background: linear-gradient(120deg, var(--blau) 0%, var(--blau-hell) 70%, var(--gold) 100%);
  color: var(--weiss);
  padding: 3rem 0;
}

.seitenkopf h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* ---------- Abschnitte, Karten, Buttons ---------- */
.abschnitt {
  padding: 3rem 0;
}

.abschnitt.creme {
  background: var(--creme);
}

.raster {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.karte {
  background: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  border-top: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(26, 45, 61, 0.08);
}

.karte h3 {
  margin-top: 0;
  font-size: 1.15rem;
}

.platzhalter {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.5rem 0;
}

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--blau);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
}

.button:hover {
  filter: brightness(1.07);
}

.hinweis {
  background: var(--creme);
  border-left: 4px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ---------- Besucherzähler ---------- */
.zaehler {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Kontaktformular ---------- */
.formular {
  max-width: 640px;
}

.formular label,
.formular legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.formular input[type="text"],
.formular input[type="email"],
.formular input[type="tel"],
.formular select,
.formular textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #8A9BA8;
  border-radius: 6px;
  font: inherit;
  margin-bottom: 1rem;
  background: #ffffff;
}

.formular textarea {
  min-height: 160px;
  resize: vertical;
}

.feld-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.feld-check label {
  font-weight: 400;
  margin: 0;
}

/* Honeypot-Feld: für Menschen unsichtbar, für Bots sichtbar */
.honig {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.status.ok {
  background: #E8F5E9;
  border-left: 4px solid #2E7D32;
}

.status.fehler {
  background: #FDECEA;
  border-left: 4px solid #B71C1C;
}

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--blau);
  color: var(--weiss);
  padding: 2rem 0;
}

.site-footer a {
  color: var(--gold);
}

.fuss {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.fuss ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

/* ---------- Rechtstexte ---------- */
.rechtstext h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
