/*
Theme Name: Schlüsseldienst Kimo
Theme URI: https://schluesseldienst-kimo.de/
Author: Schlüsseldienst Kimo
Description: Schlankes Onepage-Theme für Schlüsseldienst Kimo. Legt beim Aktivieren Impressum und Datenschutzerklärung an. Lädt nichts von fremden Servern.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kimo
*/

/* Schriften liegen auf dem eigenen Server (keine Verbindung zu Google). Barlow, SIL Open Font License. */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("schrift/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("schrift/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("schrift/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("schrift/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("schrift/barlow-latin-600-normal.woff2") format("woff2"); }
/* Layout: eine Spalte zum Lesen, oben ein Schlüsselanhänger mit den Festpreisen,
   unten auf dem Handy eine feste Anrufleiste – die Seite hat genau eine Aufgabe: den Anruf. */
:root {
  --papier: #f1f4f3;
  --weiss: #ffffff;
  --tinte: #14211f;
  --tinte-leicht: #4b5a57;
  --petrol: #0e4f53;
  --petrol-dunkel: #0a3538;
  --signal: #d9502c;
  --signal-dunkel: #b8401f;
  --messing: #c9a24a;
  --linie: #d5dedb;
  --schrift-anzeige: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --schrift-text: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --breite: 68rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.mit-anrufleiste { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 52rem) { body.mit-anrufleiste { padding-bottom: 0; } }
/* Sprungziele nicht unter der festen Kopfzeile verstecken */
[id] { scroll-margin-top: 4.75rem; }

/* Sprunglink für Tastatur und Bildschirmleser */
.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--weiss); color: var(--petrol-dunkel); font-weight: 600;
  padding: .6rem 1rem; border-radius: .5rem; text-decoration: none;
}
.sprung:focus { top: 1rem; }
img, svg { max-width: 100%; }
a { color: var(--petrol); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--schrift-anzeige);
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0; }
.rahmen { max-width: var(--breite); margin: 0 auto; padding-inline: 1.25rem; }
.abschnitt { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.abschnitt > .rahmen { display: grid; gap: 2rem; }
.abschnitt.hell { background: var(--weiss); }
.abschnitt.ohne-oben { padding-top: 0; }
.kopfzeile-abschnitt { display: grid; gap: .75rem; max-width: 40rem; }
.augenbraue {
  font-family: var(--schrift-anzeige); font-weight: 700; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal-dunkel);
}
.einleitung { color: var(--tinte-leicht); font-size: 1.125rem; }
.zahl { font-variant-numeric: tabular-nums; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--schrift-anzeige); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 999px; padding: .75rem 1.5rem; min-height: 3.25rem;
  transition: background-color .15s ease, transform .15s ease;
}
.knopf svg { width: 1.3rem; height: 1.3rem; flex: none; }
.knopf-signal { background: var(--signal); color: var(--weiss); }
.knopf-signal:hover { background: var(--signal-dunkel); }
@media (prefers-reduced-motion: no-preference) { .knopf:active { transform: translateY(1px); } }

/* Kopf */
.kopf { background: var(--petrol-dunkel); color: var(--weiss); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marke { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; color: inherit; }
.marke b { font-family: var(--schrift-anzeige); font-size: 1.9rem; font-weight: 800; letter-spacing: .01em; }
.marke span { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.kopf-telefon { display: none; color: var(--weiss); text-decoration: none; font-family: var(--schrift-anzeige); font-weight: 700; font-size: 1.3rem; }
.kopf-telefon small { display: block; font-family: var(--schrift-text); font-weight: 500; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (min-width: 40rem) { .kopf-telefon { display: block; text-align: right; } }
.navi { display: none; gap: 1.5rem; margin-left: auto; }
.navi a { color: #d6e6e4; text-decoration: none; font-weight: 500; }
.navi a:hover { color: var(--weiss); text-decoration: underline; text-underline-offset: .25em; }
@media (min-width: 64rem) { .navi { display: flex; } .kopf-telefon { margin-left: 1.5rem; } }

/* Einstieg */
.held { background: var(--petrol); color: var(--weiss); overflow: hidden; }
.held .rahmen {
  display: grid; gap: 2.5rem; align-items: center;
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3rem, 7vw, 4.5rem);
}
@media (min-width: 52rem) { .held .rahmen { grid-template-columns: 1.25fr 1fr; } }
.held-text { display: grid; gap: 1.25rem; min-width: 0; }
.held h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; }
.held h1 em { font-style: normal; color: #ffd2c4; }
.h1-ort {
  display: block; margin-bottom: .6rem;
  font-family: var(--schrift-text); font-size: 1rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: #ffb59f;
}
.held .einleitung { color: #d6e6e4; max-width: 34rem; }
.held-aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rund-um { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.rund-um i { width: .65rem; height: .65rem; border-radius: 50%; background: #6fe0a8; box-shadow: 0 0 0 4px rgba(111,224,168,.18); }
.vertrauen { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 0; list-style: none; font-size: .95rem; color: #d6e6e4; }
.vertrauen li { display: flex; align-items: center; gap: .45rem; }
.vertrauen svg { width: 1rem; height: 1rem; flex: none; color: var(--messing); }

/* Schlüsselanhänger mit den Festpreisen */
.anhaenger-buehne { display: grid; justify-items: center; padding-top: 1.5rem; }
.anhaenger {
  position: relative; width: min(100%, 22rem);
  background: var(--weiss); color: var(--tinte);
  border-radius: 1.25rem 1.25rem 1.25rem 1.25rem;
  padding: 2.75rem 1.5rem 1.5rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px rgba(4,30,32,.35);
  transform: rotate(-2.5deg);
}
.anhaenger::before {
  /* Loch für den Ring */
  content: ""; position: absolute; top: 1rem; left: 50%; width: 1.1rem; height: 1.1rem;
  margin-left: -.55rem; border-radius: 50%; background: var(--petrol); box-shadow: inset 0 2px 3px rgba(0,0,0,.35);
}
.ring { position: absolute; top: -2.6rem; left: 50%; width: 3.6rem; height: 3.6rem; margin-left: -1.8rem; color: var(--messing); }
.anhaenger h2 { font-size: 1.6rem; text-align: center; }
.anhaenger .untertitel { text-align: center; color: var(--tinte-leicht); font-size: .9rem; margin-top: .2rem; }
.preisliste { margin: 1.1rem 0 0; display: grid; gap: .1rem; }
.preisliste div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--linie); }
.preisliste div:last-child { border-bottom: 0; }
.preisliste dt { font-weight: 500; line-height: 1.3; }
.preisliste dt small { display: block; font-size: .8rem; font-weight: 400; color: var(--tinte-leicht); }
.preisliste dd { margin: 0; font-family: var(--schrift-anzeige); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.anfahrt-zeile {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: .35rem; padding: .6rem .75rem; border-radius: .6rem; background: var(--papier);
}
.anfahrt-zeile span { font-weight: 600; line-height: 1.3; }
.anfahrt-zeile small { display: block; font-weight: 400; font-size: .8rem; color: var(--tinte-leicht); }
.anfahrt-zeile b { white-space: nowrap; font-family: var(--schrift-anzeige); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.anhaenger .fuss { margin-top: .75rem; font-size: .85rem; color: var(--tinte-leicht); text-align: center; }

/* Schlüsselbart als Trenner */
.bart { display: block; width: 100%; height: 34px; color: var(--petrol); background: var(--papier); }

/* Leistungen */
.leistungen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.leistung { background: var(--weiss); border: 1px solid var(--linie); border-radius: 1rem; padding: 1.4rem 1.4rem 1.5rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.leistung-kopf { display: flex; align-items: center; gap: .75rem; }
.etikett { width: 1.8rem; height: 1.8rem; flex: none; }
.leistung p { color: var(--tinte-leicht); }

/* Preise */
.preis-raster { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .preis-raster { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.tabelle-huelle { overflow-x: auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: 1rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .95rem 1.25rem; border-bottom: 1px solid var(--linie); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th { font-family: var(--schrift-anzeige); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-leicht); font-weight: 700; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; }
td.betrag { font-family: var(--schrift-anzeige); font-weight: 800; font-size: 1.45rem; }
td.teil { color: var(--tinte-leicht); white-space: nowrap; text-align: right; }
th.zahlspalte { text-align: right; }
.nur-handy { display: none; }
.preistabelle td.anfrage { color: var(--tinte-leicht); white-space: nowrap; }
.preistabelle td.hinweis-spalte, .preistabelle th.hinweis-spalte { text-align: left; white-space: normal; color: var(--tinte-leicht); }
.preistabelle td:nth-child(2), .preistabelle thead th:nth-child(2) { text-align: right; }
/* Handy: Hinweis unter der Leistung statt eigener Spalte */
@media (max-width: 34rem) {
  .preistabelle .hinweis-spalte { display: none; }
  .nur-handy { display: block; }
}
tbody th { font-family: var(--schrift-text); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--tinte); font-weight: 600; line-height: 1.3; }
tbody th small { display: block; font-weight: 400; font-size: .85rem; color: var(--tinte-leicht); margin-top: .15rem; }
caption { caption-side: bottom; text-align: left; padding: .75rem 1.25rem; font-size: .9rem; color: var(--tinte-leicht); border-top: 1px solid var(--linie); }
.preis-notizen { display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none; }
.preis-notizen li { padding-left: 1.75rem; position: relative; }
.preis-notizen li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 3px solid var(--petrol); border-bottom: 3px solid var(--petrol); transform: rotate(-45deg);
}
.preis-notizen b { display: block; }

/* Ablauf */
.ablauf { counter-reset: schritt; display: grid; gap: 1rem; padding: 0; margin: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.ablauf li { counter-increment: schritt; background: var(--weiss); border-radius: 1rem; padding: 1.4rem; border: 1px solid var(--linie); display: grid; gap: .45rem; align-content: start; }
.ablauf li::before {
  content: counter(schritt); font-family: var(--schrift-anzeige); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--signal);
}
.ablauf p { color: var(--tinte-leicht); }

/* Einsatzgebiet */
.gebiet { background: var(--petrol-dunkel); color: var(--weiss); }
.gebiet .einleitung { color: #cfe0de; }
.gebiet .augenbraue { color: #ffb59f; }
.orte { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.orte li { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .4rem 1rem; font-weight: 500; }
.orte li.kern { background: var(--weiss); color: var(--petrol-dunkel); border-color: var(--weiss); font-weight: 600; }

/* Woran man Seriöse erkennt */
.pruefliste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.pruefpunkt { border-top: 4px solid var(--petrol); padding-top: 1rem; display: grid; gap: .4rem; }
.pruefpunkt p { color: var(--tinte-leicht); }

/* Bewertungen */
.bewertung { display: grid; gap: 1.5rem; align-items: center; background: var(--weiss); border: 1px solid var(--linie); border-radius: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 46rem) { .bewertung { grid-template-columns: auto 1fr; } }
.note { display: grid; justify-items: start; gap: .25rem; }
.note b { font-family: var(--schrift-anzeige); font-weight: 800; font-size: 4.5rem; line-height: .9; font-variant-numeric: tabular-nums; }
.sterne { display: flex; gap: .2rem; color: var(--messing); }
.sterne svg { width: 1.4rem; height: 1.4rem; }
.bewertung p { color: var(--tinte-leicht); max-width: 36rem; }
.bewertung a { font-weight: 600; }
.bewertung-text { display: grid; gap: .6rem; }
.bewertung-text h2 { font-size: 1.9rem; }
.extern { font-weight: 400; color: var(--tinte-leicht); }

/* Fragen */
.fragen { display: grid; gap: .75rem; }
details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 1rem; }
summary { cursor: pointer; list-style: none; padding: 1.1rem 1.25rem; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--schrift-anzeige); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--petrol); }
details[open] summary::after { content: "–"; }
details p { padding: 0 1.25rem 1.25rem; color: var(--tinte-leicht); max-width: 46rem; }

/* Fuß */
.fuss-bereich { background: var(--tinte); color: #c9d4d2; padding-block: 3rem; font-size: .95rem; }
.fuss-bereich .rahmen { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.fuss-bereich .fuss-titel { color: var(--weiss); font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.fuss-bereich a { color: var(--weiss); }

/* Anrufleiste auf dem Handy */
.anrufleiste {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--weiss); border-top: 1px solid var(--linie);
  padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(10,53,56,.12);
}
.anrufleiste .knopf { width: 100%; justify-content: center; white-space: nowrap; font-size: clamp(1.05rem, 5vw, 1.35rem); }
@media (min-width: 52rem) { .anrufleiste { display: none; } }

/* Rechtsseiten (Impressum, Datenschutz): schlichte Leseseite */
.recht { padding-block: clamp(2.5rem, 6vw, 4rem); }
.recht .rahmen { max-width: 46rem; display: grid; gap: 1.75rem; }
.recht h1 { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; }
.recht h2 { font-size: 1.6rem; font-weight: 700; margin-top: .5rem; }
.recht section { display: grid; gap: .6rem; }
.recht p, .recht li { color: var(--tinte); }
.recht ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.recht .stand { color: var(--tinte-leicht); font-size: .95rem; }
.zurueck { font-weight: 600; text-decoration: none; }
.zurueck:hover { text-decoration: underline; }



/* WordPress: Inhalte aus dem Editor (Impressum, Datenschutz) */
.eintrag { display: grid; gap: .9rem; }
.eintrag h2 { font-size: 1.6rem; font-weight: 700; margin-top: 1rem; }
.eintrag ul { margin: 0; padding-left: 1.25rem; display: grid; gap: .35rem; }
.eintrag a { color: var(--petrol); }

/* WordPress: Werkzeugleiste für Angemeldete nicht über die feste Kopfzeile legen */
.admin-bar .kopf { top: 32px; }
@media (max-width: 782px) { .admin-bar .kopf { top: 46px; } }
@media (max-width: 600px) { .admin-bar .kopf { top: 0; } }
