/* Mietklar – mietklar-vorlagen.de · ohne externe Schriften, ohne Cookies */
:root {
  --petrol: #0f4c5c;
  --teal: #2a9d8f;
  --teal-dunkel: #1f7a6f;
  --mint: #e8f3f1;
  --gelb: #e9c46a;
  --hell: #f5f8f9;
  --text: #1d2b30;
  --grau: #5b6b70;
  --linie: #d9e4e6;
  --weiss: #ffffff;
  --radius: 14px;
  --schatten: 0 6px 24px rgba(15, 76, 92, .10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hell);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

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

a { color: var(--teal-dunkel); }
a:hover { color: var(--petrol); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.schmal { max-width: 760px; }

/* Kopf */
.kopf { background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.kopf .logo img { width: 170px; }
.kopf nav a { color: var(--petrol); text-decoration: none; font-weight: 600; margin-left: 22px; }
.kopf nav a:hover { color: var(--teal); }

/* Hero */
.hero { background: var(--petrol); color: var(--weiss); padding: 64px 0 72px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.hero .unter { font-size: clamp(17px, 2.2vw, 21px); color: #cfe6e3; margin: 0 auto 36px; max-width: 680px; }

.status { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 26px 30px 30px; }
.status .label { margin: 0 0 16px; font-weight: 600; color: var(--gelb); letter-spacing: .02em; }

.countdown { display: flex; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.countdown li { background: var(--weiss); color: var(--petrol); border-radius: 12px; width: 92px; padding: 12px 0 8px; }
.countdown .zahl { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown .einheit { display: block; font-size: 13px; color: var(--grau); text-transform: uppercase; letter-spacing: .06em; }

.button { display: inline-block; background: var(--teal); color: var(--weiss); text-decoration: none; font-weight: 700;
  font-size: 19px; padding: 15px 34px; border-radius: 999px; transition: background .15s; }
.button:hover { background: var(--teal-dunkel); color: var(--weiss); }
.offen-text { font-size: 26px; font-weight: 700; margin: 0 0 18px; }

/* Umschaltung vor / nach Shop-Start (wird per Skript gesetzt) */
.nur-offen { display: none; }
html.offen .nur-offen { display: block; }
html.offen .nur-vorher { display: none; }
html.offen span.nur-offen { display: inline; }

/* Abschnitte */
section { padding: 64px 0; }
section h2 { color: var(--petrol); font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; margin: 0 0 10px; text-align: center; }
section .intro { text-align: center; color: var(--grau); max-width: 680px; margin: 0 auto 40px; }

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.karte { background: var(--weiss); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden;
  display: flex; flex-direction: column; }
.karte img { aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--linie); }
.karte .inhalt { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.karte h3 { margin: 0 0 6px; color: var(--petrol); font-size: 20px; line-height: 1.3; }
.karte p { margin: 0 0 16px; color: var(--grau); font-size: 16px; flex: 1; }
.karte .fuss { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.preis { font-weight: 700; color: var(--petrol); font-size: 20px; }
.preis small { color: var(--grau); font-weight: 400; font-size: 14px; margin-left: 6px; }
.marke { font-size: 14px; font-weight: 600; color: var(--teal-dunkel); background: var(--mint); border-radius: 999px; padding: 4px 12px; }
.karte .link { font-weight: 600; text-decoration: none; }
.karte.paket { border: 2px solid var(--teal); }

.preis-hinweis { text-align: center; color: var(--grau); font-size: 14px; margin: 26px 0 0; }

/* Vorteile */
.vorteile { background: var(--weiss); }
.vorteile ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; }
.vorteile li { padding-left: 38px; position: relative; }
.vorteile li::before { content: ""; position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.vorteile strong { color: var(--petrol); }

/* Gratis-Fristenkalender */
.gratis { padding: 0 0 64px; }
.gratis-box { background: var(--weiss); border: 2px solid var(--teal); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 26px 30px; display: flex; align-items: center; gap: 28px; }
.gratis-box h2 { text-align: left; font-size: 24px; margin: 0 0 6px; }
.gratis-box p { margin: 0; color: var(--grau); font-size: 16px; }
.gratis-box .gratis-marke { color: var(--teal-dunkel); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.gratis-box .button { flex-shrink: 0; font-size: 17px; padding: 13px 26px; }

/* Hinweis */
.hinweis-box { background: var(--mint); border-left: 4px solid var(--teal); border-radius: 10px; padding: 20px 24px; color: var(--text); font-size: 15px; }
.hinweis-box h3 { margin: 0 0 6px; color: var(--petrol); font-size: 17px; }
.hinweis-box p { margin: 0; }

/* Rechtstexte */
.text { padding: 48px 0 64px; }
.text h1 { color: var(--petrol); font-size: clamp(28px, 4vw, 36px); margin: 0 0 24px; }
.text h2 { color: var(--petrol); font-size: 21px; margin: 32px 0 8px; text-align: left; }
.text p, .text li { color: var(--text); }
.text address { font-style: normal; }

/* Fuß */
.fuss-seite { background: var(--petrol); color: #cfe6e3; padding: 30px 0; font-size: 15px; }
.fuss-seite .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fuss-seite a { color: var(--weiss); text-decoration: none; margin-left: 20px; }
.fuss-seite a:first-child { margin-left: 0; }
.fuss-seite a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .raster { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .kopf .wrap { min-height: 62px; }
  .kopf .logo img { width: 130px; }
  .kopf nav { white-space: nowrap; }
  .kopf nav a { margin-left: 14px; font-size: 15px; }
  .kopf nav a[href$="#vorteile"] { display: none; }
  .hero { padding: 44px 0 52px; }
  .status { padding: 20px 14px 22px; width: 100%; }
  .countdown { gap: 8px; }
  .countdown li { width: auto; flex: 1; padding: 10px 0 6px; }
  .countdown .zahl { font-size: 30px; }
  .countdown .einheit { font-size: 11px; letter-spacing: .02em; }
  section { padding: 48px 0; }
  .gratis { padding: 0 0 48px; }
  .gratis-box { flex-direction: column; align-items: stretch; text-align: left; padding: 22px 20px; gap: 18px; }
  .gratis-box .button { text-align: center; }
  .raster, .vorteile ul { grid-template-columns: 1fr; }
  .fuss-seite a { margin-left: 0; margin-right: 18px; }
}
