/* LIBALOG GmbH — Website.
   Eine Datei für alle Seiten, damit Farben und Abstände nicht auseinanderlaufen.

   Die Bildsprache kommt aus dem Logo: schwarzer Grund, weiße Schrift, und als
   „A" eine Straße mit Mittelstreifen, die in den Fluchtpunkt läuft. Diese
   Straße ist das durchgehende Motiv — der gestrichelte Mittelstreifen trennt
   die Abschnitte, statt beliebiger Linien. */

:root {
  --nacht: #110A06;        /* Logogrund, zugleich Knopffarbe der alten Seite */
  --nacht-weich: #1E1611;
  --rot: #D81E2C;          /* Signalrot des Logos */
  --rot-tief: #A5121E;
  --papier: #F4F2ED;       /* leicht warmes Grau, kein reines Weiß */
  --karte: #FFFFFF;
  --asphalt: #17130F;
  --text: #33302B;
  --muted: #6A655E;
  --linie: #E0DCD3;
  --gruen: #2F6B4F;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--papier);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.schale { max-width: 1080px; margin: 0 auto; padding: 0 22px; width: 100%; }
.schale-eng { max-width: 720px; margin: 0 auto; padding: 0 22px; width: 100%; }

/* ── Kopf ──────────────────────────────────────────────────────────────── */
header.kopf { background: var(--nacht); position: sticky; top: 0; z-index: 40; }
.kopf .schale { display: flex; align-items: center; gap: 20px; height: 66px; }
.kopf img { height: 26px; width: auto; }
.kopf nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kopf nav a {
  color: #E8E5DF; text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 7px 12px; border-radius: 7px;
}
.kopf nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.kopf nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--rot); border-radius: 0; }
.kopf nav a.ruf {
  background: var(--rot); color: #fff; font-weight: 650;
}
.kopf nav a.ruf:hover { background: var(--rot-tief); color: #fff; }
@media (max-width: 720px) {
  .kopf .schale { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .kopf nav { margin-inline-start: 0; width: 100%; }
  .kopf nav a { padding: 6px 9px; font-size: 13.5px; }
}

/* ── Straße als Trenner ────────────────────────────────────────────────── */
.strasse {
  height: 6px; background: var(--nacht);
  background-image: repeating-linear-gradient(
    90deg, var(--rot) 0 26px, transparent 26px 52px
  );
  background-size: 52px 2px; background-repeat: repeat-x; background-position: center;
}

/* ── Abschnitte ────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
section.eng { padding: 44px 0; }
.dunkel { background: var(--nacht); color: #EDEAE4; }
.dunkel h2, .dunkel h3 { color: #fff; }
.dunkel p { color: #C6C1B8; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; color: var(--asphalt); font-weight: 800; }
h1 { font-size: clamp(30px, 5.4vw, 52px); }
h2 { font-size: clamp(23px, 3.4vw, 32px); }
h3 { font-size: 18px; letter-spacing: -0.01em; }
.augenbraue {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--rot); margin-bottom: 10px;
}
.dunkel .augenbraue { color: #FF7A85; }
p.fuehrung { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); margin-top: 16px; max-width: 62ch; }
.dunkel p.fuehrung { color: #C6C1B8; }

/* ── Aufmacher ─────────────────────────────────────────────────────────── */
.aufmacher {
  background: var(--nacht);
  color: #fff;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  position: relative; overflow: hidden;
}
/* Fluchtpunkt-Straße wie im Logo: zwei Kanten, die nach hinten zulaufen. */
.aufmacher::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background:
    linear-gradient(to top, rgba(216,30,44,.16), transparent 70%),
    conic-gradient(from 180deg at 50% 100%, transparent 0 78deg, rgba(255,255,255,.05) 78deg 102deg, transparent 102deg 360deg);
  pointer-events: none;
}
.aufmacher .schale { position: relative; z-index: 1; }
.aufmacher h1 { color: #fff; max-width: 17ch; }
.aufmacher p { color: #C9C4BB; font-size: clamp(16px, 2vw, 19px); margin-top: 18px; max-width: 58ch; }

/* ── Knöpfe ────────────────────────────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--rot); color: #fff; text-decoration: none;
  font-weight: 650; font-size: 15.5px; padding: 13px 24px; border-radius: 8px;
  border: 2px solid var(--rot); cursor: pointer;
}
.knopf:hover { background: var(--rot-tief); border-color: var(--rot-tief); }
.knopf.hell { background: #fff; color: var(--nacht); border-color: #fff; }
.knopf.hell:hover { background: #E8E5DF; border-color: #E8E5DF; }
.knopf.rand { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.knopf.rand:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.knopf.dunkelrand { background: transparent; color: var(--asphalt); border-color: var(--asphalt); }
.knopf.dunkelrand:hover { background: var(--asphalt); color: #fff; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* WhatsApp-Knopf: gruen, damit ihn jeder sofort als das erkennt, was er ist.
   Dunkle Schrift auf dem Gruen, weil weisse Schrift dort zu schwach waere.
   Stand bis 17.09.2026 nur in start.css — auf der Jobseite war der Knopf
   deshalb rot. Gehoert in die gemeinsame Vorlage. */
.knopf { white-space: nowrap; }
.knopf.wa { background: #25D366; border-color: #25D366; color: #0B3D1F; }
.knopf.wa:hover { background: #1EBE5A; border-color: #1EBE5A; }
.knopf.wa svg { width: 18px; height: 18px; flex: none; }

/* ── Karten und Raster ─────────────────────────────────────────────────── */
.raster { display: grid; gap: 18px; margin-top: 34px; }
.raster.zwei { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster.drei { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.raster.vier { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.karte {
  background: var(--karte); border: 1px solid var(--linie); border-radius: 12px;
  padding: 24px;
}
.karte h3 { margin-bottom: 8px; }
.karte p { font-size: 15px; color: var(--muted); }
.dunkel .karte { background: var(--nacht-weich); border-color: rgba(255,255,255,.12); }
.dunkel .karte p { color: #B8B3AA; }

/* Die zwei Türen der Startseite */
.tuer {
  display: block; text-decoration: none; color: inherit;
  background: var(--karte); border: 1px solid var(--linie); border-radius: 14px;
  padding: 30px; border-top: 4px solid var(--rot);
}
.tuer:hover { border-color: var(--rot); }
.tuer h3 { font-size: 22px; margin-bottom: 10px; }
.tuer p { font-size: 15.5px; color: var(--muted); }
.tuer .pfeil { display: inline-block; margin-top: 16px; color: var(--rot); font-weight: 700; font-size: 15px; }

/* Zahlen */
.zahl { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; color: var(--asphalt); letter-spacing: -0.03em; line-height: 1; }
.dunkel .zahl { color: #fff; }
.zahl + span { display: block; font-size: 14px; color: var(--muted); margin-top: 7px; }
.dunkel .zahl + span { color: #B8B3AA; }

/* Aufzählung mit Straßenstrich */
ul.strich { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
ul.strich li { padding-inline-start: 26px; position: relative; font-size: 15.5px; }
ul.strich li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .62em;
  width: 15px; height: 3px; background: var(--rot); border-radius: 2px;
}

/* ── Formular ──────────────────────────────────────────────────────────── */
.formular { display: grid; gap: 16px; }
.feldpaar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
label.feld { display: block; }
label.feld > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--asphalt); margin-bottom: 6px; }
label.feld > span em { font-style: normal; font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--asphalt);
  background: #fff; border: 1px solid #CFCAC0; border-radius: 8px; padding: 11px 13px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px rgba(216,30,44,.15);
}
textarea { resize: vertical; min-height: 96px; }
.honig { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.meldung { border-radius: 9px; padding: 14px 16px; font-size: 15px; }
.meldung.gut { background: #E9F3ED; border: 1px solid #B9D8C7; color: var(--gruen); }
.meldung.schlecht { background: #FBEAEC; border: 1px solid #F0C0C6; color: var(--rot-tief); }
.hinweis { font-size: 13px; color: var(--muted); }
.hinweis a { color: var(--asphalt); }

/* ── Fließtext auf Rechtsseiten ────────────────────────────────────────── */
.text h2 { margin: 34px 0 10px; font-size: 21px; }
.text h3 { margin: 22px 0 6px; font-size: 16.5px; }
.text p, .text li { font-size: 15.5px; margin-bottom: 10px; }
.text ul { margin: 0 0 12px 22px; }
.text a { color: var(--asphalt); }

/* ── Fuß ───────────────────────────────────────────────────────────────── */
footer.fuss { background: var(--nacht); color: #A9A49B; padding: 46px 0 30px; font-size: 14.5px; }
footer.fuss img { height: 22px; margin-bottom: 16px; }
footer.fuss a { color: #E8E5DF; text-decoration: none; }
footer.fuss a:hover { color: #fff; text-decoration: underline; }
footer.fuss h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.fussraster { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; }
.fussraster ul { list-style: none; display: grid; gap: 8px; }
.fusszeile {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13.5px;
}

a:focus-visible, button:focus-visible, .tuer:focus-visible {
  outline: 3px solid var(--rot); outline-offset: 2px;
}

/* Der Absendeknopf ist ein direktes Kind des Rasters und würde sonst über die
   volle Breite gezogen. Am Telefon ist genau das richtig (großes Ziel für den
   Daumen), am Rechner nicht. */
.formular > .knopf { justify-self: start; }
@media (max-width: 560px) {
  .formular > .knopf { justify-self: stretch; justify-content: center; }
}

/* ── Bildmotive ────────────────────────────────────────────────────────── */
/* Gezeichnete Illustrationen statt Fotos (Betreiber 17.09.2026: „Fotos kannst
   du welche generieren"). Die SVGs liegen unter /bilder, alle 16:9. */
figure.bild { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--linie); background: var(--nacht); }
figure.bild img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.dunkel figure.bild, .tag figure.bild, .gebiet figure.bild { border-color: rgba(255,255,255,.14); }
figure.bildband { margin: 0; background: var(--nacht); line-height: 0; }
figure.bildband img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: center; }
.text-und-bild { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (max-width: 760px) { .text-und-bild { grid-template-columns: 1fr; } }

/* ── Sprachwahl im Kopf ───────────────────────────────────────────────── */
/* Betreiber 17.09.2026: „am besten, dass man Sprache auswählen kann". Fünf
   kurze Kürzel statt Flaggen — Flaggen stehen für Länder, nicht für Sprachen,
   und Ukrainisch oder Albanisch spricht man in mehr als einem Land. */
.sprachen { display: flex; gap: 2px; align-items: center; margin-inline-start: 14px; padding-inline-start: 14px; border-inline-start: 1px solid rgba(255,255,255,.18); }
.sprachen a, .sprachen span {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  color: #B9B3AA; padding: 5px 7px; border-radius: 5px; line-height: 1;
}
.sprachen a:hover { color: #fff; background: rgba(255,255,255,.1); }
.sprachen span[aria-current] { color: #fff; background: rgba(255,255,255,.14); }
@media (max-width: 720px) {
  .sprachen { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; width: 100%; margin-top: 6px; }
}

/* ── Rechts-nach-links (Arabisch) ───────────────────────────────────────── */
/* Betreiber 17.09.2026: Arabisch als sechste Sprache. Das Raster ist mit
   logischen Eigenschaften gebaut (inline-start statt left), deshalb spiegelt
   dir="rtl" die Seite von selbst. Was bleiben muss, bleibt: Zahlen, Telefon-
   nummern und der Logo-Schriftzug. Die Lauftext-Zeilenhoehe ist fuer die
   arabische Schrift etwas groesser, Versalien-Sperrung gibt es dort nicht. */
[dir="rtl"] body, [dir="rtl"] { line-height: 1.8; }
[dir="rtl"] .augenbraue, [dir="rtl"] .sprachen a, [dir="rtl"] .sprachen span { letter-spacing: 0; }
[dir="rtl"] .kopf img, [dir="rtl"] .fuss img { transform: none; }
[dir="rtl"] .startzeiten .z, [dir="rtl"] .fusszeile, [dir="rtl"] a[href^="tel:"], [dir="rtl"] a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }

/* ── Lohnblock ────────────────────────────────────────────────────────── */
.lohn { display: grid; grid-template-columns: auto 1fr; gap: 22px clamp(20px, 4vw, 44px); align-items: center; margin-top: 18px; padding: 22px 24px; border-radius: 14px; background: var(--nacht); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.lohn-zahl { display: grid; gap: 2px; min-width: 190px; }
.lohn-zahl .betrag { font-size: clamp(40px, 6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; direction: ltr; unicode-bidi: isolate; }
.lohn-zahl .einheit { font-size: 15px; font-weight: 600; color: #FF7A85; }
.lohn-zahl .ab { font-size: 13px; color: var(--gedeckt-hell, #B4ACA1); }
.lohn-liste { margin-top: 0; }
.lohn-liste li { color: #EDEAE4; font-size: 15px; }
.lohn-h3 { font-size: 22px; margin-top: 6px; }
@media (max-width: 640px) { .lohn { grid-template-columns: 1fr; } }
.sprachreihe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.sprachreihe span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 5px 9px; }

/* ── Fragen und Antworten ───────────────────────────────────────────────── */
/* <details> statt eigener Klappe: bedienbar ohne JavaScript, mit Tastatur,
   und ein Bildschirmleser liest es richtig vor. */
.faq-bereich { background: var(--karte); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.faq { margin-top: 22px; display: grid; gap: 0; border-top: 1px solid var(--linie); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq summary { cursor: pointer; padding: 15px 34px 15px 0; font-weight: 650; font-size: 16px; color: var(--asphalt); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--rot); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--rot); }
.faq details p { padding: 0 0 16px; color: var(--muted); font-size: 15px; max-width: 62ch; }
[dir="rtl"] .faq summary { padding: 15px 0 15px 34px; }

/* ── Feste Kontaktleiste am Handy ───────────────────────────────────────── */
.leiste { display: none; }
@media (max-width: 720px) {
  .leiste { display: flex; gap: 8px; align-items: center; position: fixed; inset-inline: 0; bottom: 0; z-index: 50; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(17,10,6,.96); border-top: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }
  .leiste .knopf { flex: 1; justify-content: center; padding: 11px 10px; font-size: 14px; }
  .leiste-text { display: none; }
  /* Platz unter dem Fuss, damit die Leiste nichts verdeckt */
  body:has(.leiste) footer.fuss { padding-bottom: 96px; }
}
