/* Kastner Energieberatung – statisches Stylesheet
   Design: tiefes Anthrazit + Limonengrün (oklch 0.86 0.23 129) */

:root {
  --radius: 0.625rem;
  --background: oklch(0.16 0.005 260);
  --foreground: oklch(0.95 0.01 130);
  --card: oklch(0.205 0.008 260);
  --card-foreground: oklch(0.95 0.01 130);
  --primary: oklch(0.86 0.23 129);
  --primary-foreground: oklch(0.17 0.03 129);
  --muted-foreground: oklch(0.68 0.015 260);
  --border: oklch(1 0 0 / 10%);
  --glow-primary: 0 0 44px -8px oklch(0.86 0.23 129 / 45%);
  --gradient-hero: radial-gradient(ellipse 80% 55% at 50% -10%, oklch(0.86 0.23 129 / 16%), transparent 70%);
  --gradient-card: linear-gradient(160deg, oklch(0.86 0.23 129 / 8%), transparent 45%);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--primary); color: var(--primary-foreground); }

.container { max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 0.5rem; padding: 0.75rem 1.5rem;
  font-weight: 600; font-size: 1rem;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--glow-primary); }
.btn-primary:hover { transform: scale(1.05); }
.btn-outline { background: var(--card); border-color: var(--border); }
.btn-outline:hover { border-color: oklch(0.86 0.23 129 / 50%); color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: oklch(0.16 0.005 260 / 80%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 2.5rem; width: 2.5rem; }
.brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; line-height: 1.2; display: block; }
.brand .brand-sub { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); display: block; line-height: 1.2; }

.nav-links { display: none; align-items: center; gap: 1.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn { color: var(--primary-foreground); }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-toggle {
  display: inline-flex; background: none; border: 0; color: var(--foreground);
  padding: 0.5rem; cursor: pointer;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 1rem 1rem; border-top: 1px solid var(--border);
  background: var(--background);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.625rem 0.25rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .btn { margin-top: 0.5rem; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 4rem; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--gradient-hero); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 2.5rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) {
  .hero .container { grid-template-columns: 1fr 1fr; padding-top: 6rem; padding-bottom: 6rem; }
}

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; border: 1px solid oklch(0.86 0.23 129 / 30%);
  background: oklch(0.86 0.23 129 / 10%);
  padding: 0.25rem 0.75rem; margin-bottom: 1rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--primary);
}
.badge svg { width: 0.875rem; height: 0.875rem; }

.hero h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.08; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted-foreground); }
.hero .actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-image { position: relative; }
.hero-image::before { content: ""; position: absolute; inset: -1rem; border-radius: 1.5rem; background: oklch(0.86 0.23 129 / 10%); filter: blur(2rem); }
.hero-image img {
  position: relative; border-radius: 1.5rem; border: 1px solid var(--border);
  object-fit: cover; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); width: 100%;
}

/* ---------- Kennzahlen ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: oklch(0.205 0.008 260 / 50%); }
.stats .container { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .stats .container { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: flex-start; gap: 0.75rem; }
.stat svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--primary); margin-top: 0.25rem; }
.stat .value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.stat .label { font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Sections ---------- */
.section { padding-top: 5rem; padding-bottom: 5rem; scroll-margin-top: 5rem; }
@media (min-width: 1024px) { .section { padding-top: 7rem; padding-bottom: 7rem; } }
.section-alt { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: oklch(0.205 0.008 260 / 40%); }
.section-kicker { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); }
.section-title { margin-top: 0.75rem; font-size: 1.875rem; font-weight: 700; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-lead { margin-top: 1rem; color: var(--muted-foreground); }
.section-head { max-width: 42rem; }

/* ---------- Leistungen ---------- */
.services-grid { margin-top: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  background-image: var(--gradient-card); padding: 1.5rem;
  transition: transform .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-0.25rem); border-color: oklch(0.86 0.23 129 / 40%); }
.service-icon {
  display: inline-flex; border-radius: 0.75rem; background: oklch(0.86 0.23 129 / 10%);
  padding: 0.75rem; color: var(--primary); margin-bottom: 1rem;
  transition: background .15s ease, color .15s ease;
}
.service-card:hover .service-icon { background: var(--primary); color: var(--primary-foreground); }
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-size: 1.125rem; font-weight: 700; }
.service-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Ablauf ---------- */
.steps-grid { margin-top: 3rem; display: grid; gap: 1.25rem; list-style: none; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card { position: relative; border-radius: 1rem; border: 1px solid var(--border); background: var(--background); padding: 1.5rem; }
.step-nr { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: oklch(0.86 0.23 129 / 25%); }
.step-card h3 { margin-top: 0.75rem; font-weight: 700; }
.step-card p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Über mich ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-logo { display: flex; justify-content: center; }
.about-logo .glow-wrap { position: relative; }
.about-logo .glow-wrap::before { content: ""; position: absolute; inset: -1.5rem; border-radius: 999px; background: oklch(0.86 0.23 129 / 10%); filter: blur(3rem); }
.about-logo img { position: relative; height: 16rem; width: 16rem; }
@media (min-width: 640px) { .about-logo img { height: 20rem; width: 20rem; } }
.about-text p { margin-top: 1.25rem; line-height: 1.65; color: var(--muted-foreground); }
.about-list { margin-top: 1.5rem; list-style: none; display: grid; gap: 0.75rem; font-size: 0.875rem; }
.about-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.about-list svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--primary); margin-top: 0.125rem; }

/* ---------- Kontakt ---------- */
.contact-card {
  position: relative; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid oklch(0.86 0.23 129 / 30%);
  background: var(--card); background-image: var(--gradient-card);
  padding: 2rem;
}
@media (min-width: 640px) { .contact-card { padding: 3rem; } }
.contact-card::before {
  content: ""; position: absolute; right: -5rem; top: -5rem;
  width: 16rem; height: 16rem; border-radius: 999px;
  background: oklch(0.86 0.23 129 / 15%); filter: blur(3rem);
}
.contact-grid { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-grid h2 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 640px) { .contact-grid h2 { font-size: 2.25rem; } }
.contact-grid h2 .accent { color: var(--primary); }
.contact-grid .lead { margin-top: 1rem; max-width: 28rem; line-height: 1.65; color: var(--muted-foreground); }
.contact-grid .btn { margin-top: 2rem; }
.contact-list { display: grid; gap: 1rem; font-size: 0.875rem; font-style: normal; }
.contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.contact-item svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: var(--primary); margin-top: 0.125rem; }
.contact-item .label { font-weight: 600; }
.contact-item a, .contact-item .value { color: var(--muted-foreground); }
.contact-item a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: oklch(0.205 0.008 260 / 50%); }
.site-footer .container {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .site-footer .container { flex-direction: row; } }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-brand img { height: 2rem; width: 2rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-nav { display: flex; gap: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--primary); }

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 48rem; margin: 0 auto; padding: 6rem 1rem; }
@media (min-width: 640px) { .legal { padding-left: 1.5rem; padding-right: 1.5rem; } }
.legal h1 { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; }
.legal > p { margin-top: 0.75rem; color: var(--muted-foreground); }
.legal-sections { margin-top: 2.5rem; display: grid; gap: 2rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted-foreground); }
.legal-sections h2 { margin-bottom: 0.5rem; font-size: 1.125rem; font-weight: 700; color: var(--foreground); }
.legal .back-link { margin-top: 3rem; display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 0.5rem; border: 1px solid var(--border); padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600; }
.legal .back-link:hover { border-color: oklch(0.86 0.23 129 / 50%); color: var(--primary); }
