/* X4 Energy Ladepark — theme tokens (THEME.md, freigegeben 2026-10-24) */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #3a3a3a;
  --line: #e8e8e6;
  --brand: #39c93a;
  --inverse: #0b0b0b;
  --inverse-ink: #ffffff;
  --brand-ink: #111111;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
  --wrap: 1120px;
  --header-h: 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a:not(.btn) {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:not(.btn):hover {
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}

.nav-toggle-bar {
  width: 14px;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.btn-primary:hover {
  filter: brightness(0.96);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--surface);
}

/* Hero */
.hero {
  padding: 1.5rem 0 1.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 7.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-line {
  display: block;
}

.hero-line:first-child {
  position: relative;
  width: fit-content;
  padding-bottom: 0.35rem;
  margin-bottom: 0.15rem;
}
.hero-line:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.2rem;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
}

.hero-lead {
  margin: 0 0 0.85rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-height: 140px;
}
.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  max-height: 140px;
  object-fit: cover;
  object-position: center 40%;
  aspect-ratio: 16 / 7;
}

/* Benefit cards */
.benefits {
  padding: 0.5rem 0 1.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 0.65rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Sections */
.section {
  padding: 2.25rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-lead.narrow {
  max-width: 36rem;
}

.inline-link {
  color: var(--ink);
  font-weight: 600;
}

.section-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.fact-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.fact-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.fact-list strong {
  color: var(--ink);
  font-weight: 600;
}

.surface-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section-alt .surface-panel,
.section-alt .app-panel {
  background: var(--bg);
}

.panel-kicker {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.panel-meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-panel {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(247, 247, 245, 0.2), rgba(247, 247, 245, 0.85)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 24px,
      rgba(232, 232, 230, 0.7) 24px,
      rgba(232, 232, 230, 0.7) 25px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 24px,
      rgba(232, 232, 230, 0.7) 24px,
      rgba(232, 232, 230, 0.7) 25px
    ),
    var(--surface);
}

/* Prices */
.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.price-table th,
.price-table td {
  padding: 0.85rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  vertical-align: top;
}

.price-table thead th {
  background: var(--surface);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.price-table tbody th {
  font-weight: 650;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-placeholder {
  display: inline-block;
  color: var(--muted);
  font-style: italic;
}

.fineprint {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* App steps */
.steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--inverse);
  color: var(--inverse-ink);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  justify-items: start;
}

.brand-logo-footer {
  height: 44px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: flex-start;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  text-align: left;
}
.footer-copy a {
  color: inherit;
  text-decoration: none;
}
.footer-copy a:hover {
  color: #fff;
}

/* Nav panel (mobile-first; desktop overrides below) */
.site-nav {
  display: none;
  position: absolute;
  top: calc(var(--header-h) + 1px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-nav.is-open {
  display: flex;
}
.site-nav a:not(.btn) {
  padding: 0.9rem 0;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.site-nav .btn {
  margin-top: 0.75rem;
  width: 100%;
}

.header-inner {
  position: relative;
}

.wrap {
  width: min(100% - 1.5rem, var(--wrap));
}

.hero-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.hero-location {
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}

.site-address {
  font-style: normal;
  line-height: 1.55;
  margin: 0.75rem 0 1rem;
  font-size: 1.05rem;
}

.map-panel {
  min-height: 0;
}

/* ~390px phones: drop heavy hero crop entirely */
@media (max-width: 420px) {
  .hero-media {
    display: none;
  }

  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .brand-logo {
    height: 36px;
  }

  .section {
    padding: 1.75rem 0;
  }

  .price-table th,
  .price-table td {
    padding: 0.75rem 0.55rem;
    font-size: 0.9rem;
  }
}

/* Tablet+ */
@media (min-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 17px;
  }

  .wrap {
    width: min(100% - 2.5rem, var(--wrap));
  }

  .brand-logo {
    height: 52px;
  }

  .brand-logo-footer {
    height: 52px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-lead {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero-media {
    max-height: 220px;
  }

  .hero-media img,
  .hero-img {
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem 1.4rem 1.6rem;
  }

  .benefits {
    padding: 1rem 0 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-actions .btn {
    flex: 0 1 auto;
  }
}

/* Desktop */
@media (min-width: 901px) {
  :root {
    --header-h: 72px;
  }

  .brand-logo {
    height: 64px;
  }

  .brand-logo-footer {
    height: 56px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav a:not(.btn) {
    padding: 0;
    min-height: 0;
    border: 0;
    display: inline;
  }

  .site-nav .btn {
    margin-top: 0;
    width: auto;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-media {
    max-height: none;
  }

  .hero-media img,
  .hero-img {
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .section-split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-copy {
    text-align: right;
  }

  .map-panel {
    min-height: 220px;
  }
}


/* Auth / Login */
.auth-main .auth-section {
  padding-top: 1.5rem;
}
.auth-wrap {
  max-width: 28rem;
}
.auth-form {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field-label {
  font-weight: 600;
  font-size: 0.92rem;
}
.field-input {
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field-input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}
.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}
.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Legal pages */
.legal-wrap {
  max-width: 42rem;
}
.legal-block {
  margin: 0 0 1rem;
}
.legal-block h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.legal-block p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.legal-block p:last-child {
  margin-bottom: 0;
}
.legal-block .fact-list {
  margin-bottom: 0.75rem;
}

/* —— Portal / Admin (mobile-first) —— */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface); border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.app-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: var(--header-h); padding-block: 0.35rem;
}
.app-bar-user { font-size: 0.9rem; color: var(--muted); }
.app-tabs {
  display: flex; gap: 0.35rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0 0; margin: 0; list-style: none;
  border-bottom: 1px solid var(--line);
}
.app-tabs a {
  flex: 0 0 auto; text-decoration: none; padding: 0.55rem 0.85rem;
  border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--muted);
}
.app-tabs a[aria-current="page"], .app-tabs a.is-active {
  background: var(--brand); color: var(--brand-ink);
}
.app-main { flex: 1; padding: 1.25rem 0 2.5rem; }
.app-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem;
}
.app-panel h1 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.app-lead { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.app-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.75rem; font-size: 0.85rem; color: var(--muted); }
.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.data-table th, .data-table td {
  text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table tr:last-child td { border-bottom: 0; }
.empty-state {
  padding: 1.25rem 0.25rem; color: var(--muted); font-size: 0.95rem;
}
.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  background: #eef7ee; color: #146c2e; font-size: 0.78rem; font-weight: 600;
}
.badge-muted { background: #f0f0ee; color: var(--muted); }
.err-banner {
  background: #fff5f5; border: 1px solid #f0c2c2; color: #8a1f1f;
  border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .app-panel { padding: 1.35rem 1.5rem; }
  .app-panel h1 { font-size: 1.6rem; }
}
