/* ══════════════════════════════════════════════════
   weinwatt Energiekonzepte — Zentrales Design-System
   Alle Farben, Fonts und Tokens für alle Seiten
   ══════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Syne:wght@800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Design Tokens ── */
:root {
  /* Farben */
  --c-bg:          #FAF5EC;   /* Cremeweiß – Seitenintergrund */
  --c-surface:     #F0E8D8;   /* Warmes Weiß – Cards, Sections */
  --c-surface2:    #E5D8C0;   /* Subtile Trenner */
  --c-primary:     #8B1A1A;   /* Bordeaux – Hauptfarbe */
  --c-primary-d:   #6B1010;   /* Hover-State */
  --c-primary-soft: #922020;   /* Abgeschwächtes Bordeaux – z.B. Termin-Button */
  --c-accent:      #C8813A;   /* Cognac-Gold – Highlights, CTAs */
  --c-accent-d:    #A86028;
  --c-text:        #1A0A08;   /* Tiefbraun-Schwarz */
  --c-text-muted:  #6A5040;   /* Gedämpftes Braun */
  --c-border:      rgba(139,26,26,0.15);
  --c-glow:        rgba(200,129,58,0.15);

  /* Typografie */
  --font-display:  'Outfit', sans-serif;
  --font-logo:     'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  /* Radien */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  /* Sonstiges */
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card:   0 4px 32px rgba(26,10,8,0.12);
  --shadow-glow:   0 0 40px rgba(139,26,26,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ── Basis-Body ── */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-primary-d); border-radius: 3px; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Navigation (alle Seiten) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--c-text);
  text-decoration: none;
  letter-spacing: -.04em;
}
.nav-logo span { color: var(--c-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--c-text-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 400;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--c-text); }
.nav-cta {
  background: var(--c-primary);
  color: var(--c-bg) !important;
  padding: 9px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  font-size: .84rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover {
  background: var(--c-primary-d) !important;
  color: var(--c-bg) !important;
  transform: translateY(-1px);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-links.mobile-open   { animation: menuSlideDown 0.22s cubic-bezier(0.4,0,0.2,1) forwards; }
.nav-links.mobile-closing { animation: menuSlideUp   0.18s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes menuSlideDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
@keyframes menuSlideUp   { from { opacity:1; transform:translateY(0);    } to { opacity:0; transform:translateY(-6px); } }
@media (max-width: 1010px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.mobile-visible {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 8px 0 16px;
    gap: 0;
    z-index: 199;
    box-shadow: 0 8px 32px rgba(26,10,8,0.10);
  }
  .nav-links.mobile-visible li { width: 100%; }
  .nav-links.mobile-visible a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    color: var(--c-text-muted);
  }
  .nav-links.mobile-visible a:hover { color: var(--c-text); background: rgba(139,26,26,0.04); }
  .nav-links.mobile-visible .nav-cta {
    display: block;
    margin: 8px 24px 0;
    padding: 12px 20px !important;
    text-align: center;
    font-size: .9rem !important;
    border-radius: var(--radius-md) !important;
  }
}
.nav-links.mobile-open   { animation: menuSlideDown 0.22s cubic-bezier(0.4,0,0.2,1) forwards; }
.nav-links.mobile-closing { animation: menuSlideUp   0.18s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes menuSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
@keyframes menuSlideUp   { from { opacity:1; transform:translateY(0);    } to { opacity:0; transform:translateY(-8px); } }

/* Unterseiten: Hauptinhalt unter fixierter Nav */
.page-main { padding: 96px 0 100px; }

.page-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(139,26,26,0.08);
  border: 1px solid var(--c-border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--c-text);
}

/* ── Content-Block (Karten auf Unterseiten) ── */
.content-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  margin-bottom: 24px;
}
.content-block h2 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.content-block p {
  color: var(--c-text-muted);
  font-size: .95rem;
  line-height: 1.8;
}
.content-block p + p { margin-top: 10px; }
.content-block p strong { color: var(--c-text); font-weight: 500; }
.content-block a {
  color: var(--c-primary);
  text-decoration: none;
  transition: opacity var(--transition);
}
.content-block a:hover { opacity: .75; }
.content-block ul { padding-left: 20px; }
.content-block li {
  font-size: .95rem;
  color: var(--c-text-muted);
  margin-bottom: 6px;
  line-height: 1.8;
}

/* ── Footer (Unterseiten) ── */
.page-footer {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
  text-align: center;
}
.page-footer a {
  color: var(--c-text-muted);
  font-size: .85rem;
  text-decoration: none;
  transition: color var(--transition);
}
.page-footer a:hover { color: var(--c-primary); }

/* ── Git-Badge ── */
#git-badge {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(100,80,70,0.45);
  font-family: monospace;
  letter-spacing: .04em;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}
