/* MietLink Marketing-Website — Design-System
   Konzept: Petrol/Teal primär, warmes Grau/Off-White neutral,
   Bernstein nur für Fristen/Warnungen, Grün nur für Status. */

:root {
  --teal-900: #0b3d3a;
  --teal-800: #0e4f4b;
  --teal-700: #11615c;
  --teal-600: #147a72;
  --teal-100: #dcecea;
  --teal-050: #eef5f4;
  --grey-950: #23211d;
  --grey-800: #3d3a34;
  --grey-600: #6b665d;
  --grey-300: #d8d4cc;
  --grey-150: #eceae5;
  --grey-075: #f6f5f2;
  --white: #ffffff;
  --amber-700: #b45309;
  --amber-050: #fdf3e7;
  --green-700: #15803d;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;

  --content-width: 1200px;
  --text-width: 44rem;
  --radius: 10px;
  --shadow-card: 0 1px 2px rgba(35, 33, 29, 0.06), 0 4px 16px rgba(35, 33, 29, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--grey-950);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Zahlen (Preise, Verbrauchswerte) immer tabellarisch */
.num, .price-value, td.num { font-variant-numeric: tabular-nums; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

p { max-width: var(--text-width); }

a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }

img, svg { max-width: 100%; display: block; }

/* ---------- Layout-Bausteine ---------- */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section.alt { background: var(--grey-075); }
.section-head { margin-bottom: 2.5rem; }
.section-head p { margin-top: 0.75rem; color: var(--grey-600); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-150);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 750;
  font-size: 1.25rem;
  color: var(--grey-950);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand .brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-900));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  color: var(--grey-800);
  font-weight: 500;
  font-size: 0.97rem;
}

.main-nav a:hover { color: var(--teal-800); }

.header-actions { display: flex; gap: 0.75rem; align-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.99rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.btn-primary { background: var(--teal-800); color: #fff; }
.btn-primary:hover { background: var(--teal-900); color: #fff; }

.btn-secondary {
  background: var(--white);
  color: var(--teal-800);
  border-color: var(--grey-300);
}
.btn-secondary:hover { border-color: var(--teal-700); color: var(--teal-900); }

.btn-ghost { background: transparent; color: var(--grey-800); padding: 0.7rem 0.9rem; }
.btn-ghost:hover { color: var(--teal-800); }

.btn-large { padding: 0.9rem 1.7rem; font-size: 1.06rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--grey-075);
  padding: 6rem 0 5.5rem;
}

/* Foto rechtsbündig, Scrim von links — Bild ist mit freiem linken
   Drittel für die Headline komponiert (HERO-01). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--grey-075) 0%,
    rgba(246, 245, 242, 0.94) 32%,
    rgba(246, 245, 242, 0.72) 55%,
    rgba(246, 245, 242, 0.12) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  background: var(--amber-050);
  color: var(--amber-700);
  border: 1px solid #eed9bd;
  font-size: 0.85rem;
  font-weight: 650;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 { max-width: 46rem; }

.hero .subline {
  margin-top: 1.25rem;
  font-size: 1.18rem;
  color: var(--grey-800);
  max-width: 40rem;
}

.hero-ctas { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.trust-line {
  margin-top: 1.6rem;
  color: var(--grey-600);
  font-size: 0.92rem;
}

/* ---------- Sektion mit Bild (Split-Layout) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.section-media { margin: 0; }

.section-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ---------- Karten & Grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--grey-150);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}

/* Card-Top-Bild: läuft randlos bis an die Kartenkanten */
.card-img {
  width: calc(100% + 3.6rem);
  margin: -1.8rem -1.8rem 1.4rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--grey-800); font-size: 0.99rem; }
.card .card-link { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }

.icon-circle {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--teal-050);
  color: var(--teal-800);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

/* ---------- Merksatz / Hinweis-Boxen ---------- */

.callout {
  border-left: 4px solid var(--teal-700);
  background: var(--teal-050);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  max-width: var(--text-width);
  margin-top: 1.75rem;
}

.callout.amber {
  border-left-color: var(--amber-700);
  background: var(--amber-050);
}

/* ---------- Schritte (nummeriert) ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--teal-800);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.96rem; color: var(--grey-800); }

/* ---------- Bullet-Listen ---------- */

.check-list { list-style: none; max-width: var(--text-width); }
.check-list li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--grey-800);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e4f4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---------- Preise ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }

.price-card { position: relative; display: flex; flex-direction: column; }

.price-card.featured { border-color: var(--teal-700); border-width: 2px; }

.price-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-800);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-value { font-size: 2.3rem; font-weight: 750; letter-spacing: -0.02em; }
.price-value small { font-size: 1rem; font-weight: 500; color: var(--grey-600); }
.price-meta { color: var(--grey-600); font-size: 0.92rem; margin-bottom: 1.2rem; }
.price-audience { font-style: italic; color: var(--grey-600); font-size: 0.95rem; margin-bottom: 1.2rem; }

.price-card .check-list { flex: 1; margin-bottom: 1.5rem; }
.price-card .check-list li { font-size: 0.95rem; margin-bottom: 0.5rem; }

/* ---------- Tabellen ---------- */

.table-wrap { overflow-x: auto; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

table.plain th, table.plain td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grey-150);
  vertical-align: top;
}

table.plain th { font-weight: 650; color: var(--grey-800); background: var(--grey-075); }

/* ---------- FAQ (Accordion) ---------- */

.faq-list { max-width: 50rem; }

.faq-list details {
  border: 1px solid var(--grey-150);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 0.8rem;
  padding: 0 1.3rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 630;
  padding: 1.05rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--teal-700);
  font-weight: 400;
}

.faq-list details[open] summary::after { content: '–'; }

.faq-list details p { padding-bottom: 1.15rem; color: var(--grey-800); }

/* ---------- Formulare ---------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; max-width: 44rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  margin-bottom: 0.35rem;
}

.form-field .optional { color: var(--grey-600); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--grey-950);
  background: var(--white);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal-600);
  outline-offset: 1px;
  border-color: var(--teal-600);
}

.consent-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; color: var(--grey-800); }
.consent-row input { margin-top: 0.25rem; }

.form-note { font-size: 0.88rem; color: var(--grey-600); max-width: 44rem; }

.form-status { font-weight: 600; }
.form-status.ok { color: var(--green-700); }
.form-status.error { color: var(--amber-700); }

/* Honeypot: fuer Menschen unsichtbar */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Abschluss-CTA ---------- */

.cta-final {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 3.2rem 2.5rem;
}

.cta-final h2 { color: #fff; }
.cta-final p { color: var(--teal-100); margin-top: 0.8rem; }
.cta-final .hero-ctas { margin-top: 1.8rem; }
.cta-final .btn-primary { background: #fff; color: var(--teal-900); }
.cta-final .btn-primary:hover { background: var(--teal-050); }
.cta-final .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-final .btn-secondary:hover { border-color: #fff; color: #fff; }

/* ---------- Prosa-Seiten (Recht, FAQ) ---------- */

.prose { max-width: var(--text-width); }
.prose h2 { margin: 2.4rem 0 0.8rem; font-size: 1.45rem; }
.prose h3 { margin: 1.7rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 0.9rem; color: var(--grey-800); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }

.page-head { padding: 3.5rem 0 0.5rem; }
.page-head p.lead { margin-top: 0.9rem; font-size: 1.12rem; color: var(--grey-600); }

.legal-note {
  margin-top: 2.5rem;
  padding: 1rem 1.3rem;
  background: var(--grey-075);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--grey-600);
  max-width: var(--text-width);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--grey-150);
  background: var(--grey-075);
  padding: 2.8rem 0 2.2rem;
  font-size: 0.93rem;
  color: var(--grey-600);
}

.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-nav a { color: var(--grey-800); text-decoration: none; }
.footer-nav a:hover { color: var(--teal-800); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .main-nav { display: none; }
  .section { padding: 3.2rem 0; }
  .hero { padding: 3.8rem 0 3.4rem; }
  .hero-bg::after {
    background: linear-gradient(90deg,
      rgba(246, 245, 242, 0.96) 0%,
      rgba(246, 245, 242, 0.9) 60%,
      rgba(246, 245, 242, 0.78) 100%);
  }
  .form-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 2.4rem 1.5rem; }
}
