/* ============================================================
   Gahlen.it Theme – Haupt-Stylesheet
   Farben und Abstände zentral als Variablen: hier anpassen,
   wirkt überall.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #0F766E;
  --petrol-dark: #085041;
  --petrol-ink: #04342C;
  --mint: #5EEAD4;
  --mint-soft: #E1F5EE;
  --ink: #111827;
  --slate: #5B6472;
  --line: #E5E9E8;
  --paper: #FFFFFF;
  --mist: #F6F9F8;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--petrol); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 650; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }

.eyebrow {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--petrol-dark);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--slate); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: var(--petrol-dark); }
.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-ghost:hover { background: var(--mint-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; display: block; }
.brand .brand-text { font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand .brand-text span { color: var(--petrol); }
.brand:hover { text-decoration: none; }

.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--slate); font-size: 0.95rem; font-weight: 450; }
.main-nav a:hover { color: var(--petrol); text-decoration: none; }
.nav-cta { background: var(--petrol); color: #fff !important; padding: 9px 18px; border-radius: 9px; }
.nav-cta:hover { background: var(--petrol-dark); }

.menu-toggle { display: none; background: none; border: none; padding: 8px; }
.menu-toggle svg { display: block; stroke: var(--ink); }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--slate); }

@media (max-width: 820px) {
  .hero { padding: 56px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Dashboard-Karte (Signature-Element) ---------- */
.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.10);
  max-width: 420px;
  margin-left: auto;
}
.demo-card .dc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.demo-card .dc-label { font-size: 0.8rem; color: var(--slate); }
.demo-card .dc-sum { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em; }
.demo-card .dc-delta { font-size: 0.85rem; color: var(--petrol); font-weight: 500; }

.dc-goal { margin: 20px 0 6px; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--slate); }
.dc-goal strong { color: var(--ink); font-weight: 550; }
.dc-bar { height: 10px; background: var(--mint-soft); border-radius: 999px; overflow: hidden; }
.dc-bar i { display: block; height: 100%; width: 68%; background: var(--petrol); border-radius: 999px; }

.dc-months { display: flex; gap: 10px; align-items: flex-end; height: 90px; margin-top: 26px; }
.dc-months b { flex: 1; background: var(--mint); border-radius: 6px 6px 0 0; }
.dc-months b.hi { background: var(--petrol); }
.dc-caption { display: flex; gap: 10px; margin-top: 6px; }
.dc-caption span { flex: 1; text-align: center; font-size: 0.7rem; color: var(--slate); }

/* ---------- Roadmap-Karte (Hero) ---------- */
.roadmap-card .rc-title { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.rc-steps { list-style: none; margin: 0; padding: 0; }
.rc-steps li {
  position: relative;
  padding: 0 0 22px 30px;
  font-size: 0.95rem;
  color: var(--slate);
}
.rc-steps li:last-child { padding-bottom: 0; }
.rc-steps li::before {
  content: "";
  position: absolute;
  left: 8px; top: 18px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.rc-steps li:last-child::before { display: none; }
.rc-dot {
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}
.rc-steps li.done { color: var(--ink); }
.rc-steps li.done .rc-dot { border-color: var(--petrol); background: var(--petrol); }
.rc-steps li.done .rc-dot::after {
  content: "";
  position: absolute; left: 4px; top: 4px;
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.rc-steps li.active { color: var(--ink); font-weight: 550; }
.rc-steps li.active .rc-dot { border-color: var(--petrol); background: var(--mint-soft); }
.rc-steps li.active .rc-dot::after {
  content: "";
  position: absolute; left: 4px; top: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--petrol);
}
.rc-note { margin-top: 20px; font-size: 0.85rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- Sektionen ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .f-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--petrol-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature .f-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.feature p { margin: 6px 0 0; font-size: 0.95rem; color: var(--slate); }

/* ---------- Schritte ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--petrol);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.step p { margin: 6px 0 0; font-size: 0.95rem; color: var(--slate); }

/* ---------- Über mich ---------- */
.about .wrap { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; max-width: 860px; }
.about-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--petrol);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 600;
  flex-shrink: 0;
}
.about-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@media (max-width: 640px) {
  .about .wrap { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--petrol-ink); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--mint); opacity: 0.95; max-width: 32em; margin: 0 auto 28px; }
.cta-band .btn-primary { background: var(--mint); color: var(--petrol-ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--petrol-ink); color: #9FE1CB; padding: 32px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: #9FE1CB; }
.site-footer a:hover { color: #fff; }
.footer-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }

/* ---------- Innenseiten (Impressum, Blog etc.) ---------- */
.page-content { padding: 64px 0 84px; }
.page-content .wrap { max-width: 760px; }
.page-content h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.8em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content p { color: #374151; }
