/* Selbst gehostete Schriften – keine Verbindung zu Google (DSGVO).
   Zwei Familien mit klar getrennten Aufgaben: Fraunces traegt die
   Ueberschriften und bleibt damit die Stimme der Wortmarke, Inter alles
   uebrige. Von Fraunces reicht der Latin-Schnitt; die deutschen Umlaute
   liegen darin, Latin-Ext wird fuer Ueberschriften nicht gebraucht. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Hanse Service Personal GmbH — Entwurf „Fachbetrieb"
   Aufbau nach dem, was Personal- und Sicherheitsdienstleister tatsaechlich
   verwenden: Anliegen direkt im Kopfbereich waehlbar, Fotos statt Symbole,
   Telefonnummer durchgehend praesent, feste Handlungsleiste auf dem Handy. */

:root {
  --navy: #0e2436;
  --akzent: #15568c;
  --akzent-tief: #0f4574;
  --tinte: #16212b;
  --grau: #5a6a76;
  --grund: #ffffff;
  --flaeche: #f3f5f7;
  --linie: #dde3e8;
  --rund: 4px;

  --deck: 1240px;
  --t: .18s ease;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --grotesk: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.15; overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h2, h3 { -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(2.05rem, 1.2rem + 3vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0 0 1.1em; }

/* Tastaturbedienung sichtbar machen – der Browser-Standardring verschwindet
   auf den dunklen Flaechen sonst fast vollstaendig. */
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 3px; }
.buehne :focus-visible, .band :focus-visible, .fuss :focus-visible,
.servicezeile :focus-visible { outline-color: #fff; }

.deck { width: 100%; max-width: var(--deck); margin: 0 auto; padding: 0 clamp(18px, 3.5vw, 40px); }
.grau { color: var(--grau); }
.vorspann { font-size: 1.12rem; color: var(--grau); max-width: 68ch; margin-top: 14px; }
.tat { margin-top: 26px; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Servicezeile ----------
   Bleibt in jeder Breite einzeilig, indem sie in drei Stufen kuerzt:
   voll ab 1024px, ohne E-Mail darunter, mit verkuerzter Erreichbarkeit
   unter 640px. E-Mail und Erreichbarkeit stehen im Fuss und auf der
   Kontaktseite ohnehin vollstaendig. */
.servicezeile { background: var(--navy); color: rgba(255,255,255,.85); font-size: .84rem; }
.servicezeile .deck { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 9px; padding-bottom: 9px; }
.nur-schmal { display: none; }
.servicezeile a:hover { color: #fff; }
.servicezeile b { color: #fff; font-weight: 600; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 60; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf .deck { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 40px; height: 47px; object-fit: contain; }
.logo-text { display: block; }
.logo b { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.logo-zusatz { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }

.menue { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menue a { display: block; padding: 9px 14px; font-size: .96rem; font-weight: 500; color: var(--tinte); border-radius: var(--rund); transition: background-color var(--t), color var(--t); }
.menue a:hover { background: var(--flaeche); }
.menue a[aria-current="page"] { color: var(--akzent); }
.menue .knopf { margin-left: 10px; }

.menue-schalter { display: none; background: none; border: 1px solid var(--linie); border-radius: var(--rund); padding: 9px 14px; font: inherit; font-size: .9rem; color: var(--tinte); cursor: pointer; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-size: .97rem; font-weight: 600;
  padding: 14px 26px; border-radius: var(--rund); border: 2px solid var(--akzent);
  background: var(--akzent); color: #fff; cursor: pointer; transition: background-color var(--t), border-color var(--t), color var(--t);
}
.knopf:hover { background: var(--akzent-tief); border-color: var(--akzent-tief); color: #fff; }
.knopf-hell { background: #fff; border-color: #fff; color: var(--navy); }
.knopf-hell:hover { background: transparent; color: #fff; border-color: #fff; }
.knopf-rand { background: transparent; border-color: var(--linie); color: var(--tinte); }
.knopf-rand:hover { background: transparent; border-color: var(--navy); color: var(--navy); }
.knopf-gross { padding: 17px 34px; font-size: 1.04rem; }

/* ---------- Kopfbereich mit Anliegen-Wähler ---------- */
.buehne { position: relative; background: var(--navy); }
.buehne-bild { position: absolute; inset: 0; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
/* Verlauf zur Textseite hin, damit die Schrift unabhaengig vom Bildmotiv liest */
.buehne-bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,36,54,.88) 0%, rgba(14,36,54,.72) 38%, rgba(14,36,54,.3) 78%, rgba(14,36,54,.2) 100%);
}
.buehne .deck { position: relative; z-index: 2; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.buehne-text { max-width: 640px; color: #fff; }
.buehne-text h1 { color: #fff; }
.buehne-text p { color: rgba(255,255,255,.88); font-size: 1.14rem; margin: 18px 0 0; max-width: 52ch; }

.anliegen {
  margin-top: clamp(28px, 3.5vw, 44px); background: #fff; border-radius: var(--rund);
  padding: clamp(18px, 2vw, 26px); max-width: 760px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end;
}
.anliegen .feld { display: block; }
.anliegen label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grau); margin-bottom: 7px; }
.anliegen select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--tinte); background: #fff;
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 13px 14px;
}
.anliegen select:focus { outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(21,86,140,.15); }
.anliegen .knopf { white-space: nowrap; }

/* ---------- Faktenleiste ----------
   Feste Spaltenzahlen statt auto-fit: sonst entsteht dazwischen ein
   Umbruch mit drei Bloecken oben und einem allein darunter. */
.fakten { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.fakten .deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 0; padding-top: 0; padding-bottom: 0; }
.fakt { padding: 26px clamp(18px, 2.4vw, 32px); border-left: 1px solid var(--linie); }
.fakt:first-child { border-left: 0; padding-left: 0; }
.fakt b { display: block; font-size: 1.04rem; font-weight: 700; letter-spacing: -.015em; }
.fakt span { display: block; font-size: .93rem; color: var(--grau); margin-top: 2px; }

/* ---------- Abschnitte ---------- */
.block { padding: clamp(56px, 6vw, 92px) 0; }
.block-hell { background: var(--flaeche); }
.block-kopf { margin-bottom: clamp(28px, 3.5vw, 46px); max-width: 72ch; }
.block-kopf p { margin: 14px 0 0; }

/* ---------- Leistungen als Fotokacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.kachel { display: flex; flex-direction: column; background: var(--grund); border: 1px solid var(--linie); border-radius: var(--rund); overflow: hidden; transition: border-color var(--t); }
.kachel:hover { border-color: var(--akzent); }
.kachel-bild { aspect-ratio: 16 / 10; overflow: hidden; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-text { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.kachel-text p { color: var(--grau); font-size: .97rem; margin: 8px 0 18px; }
.kachel-mehr { margin-top: auto; font-weight: 600; font-size: .94rem; color: var(--akzent); }
.kachel:hover .kachel-mehr { color: var(--akzent-tief); }

/* ---------- Einsatzbereiche ---------- */
.bereiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(24px, 3vw, 44px); }
.bereich { border-top: 1px solid var(--linie); padding-top: 20px; }
.bereich p { color: var(--grau); margin: 8px 0 0; }

/* ---------- Zweispalter mit Foto ---------- */
.duo { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.duo > * { min-width: 0; }
.duo-bild img { width: 100%; height: 100%; min-height: 320px; max-height: 480px; object-fit: cover; border-radius: var(--rund); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } .duo-bild img { min-height: 240px; } }

.haken { list-style: none; margin: 22px 0 0; padding: 0; }
.haken li { position: relative; padding: 7px 0 7px 30px; color: var(--grau); }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 9px; height: 5px;
  border-left: 2px solid var(--akzent); border-bottom: 2px solid var(--akzent);
  transform: rotate(-45deg);
}

/* ---------- Leistungsseite ---------- */
.gewerk { padding: clamp(44px, 5vw, 72px) 0; border-bottom: 1px solid var(--linie); }
.gewerk:last-of-type { border-bottom: 0; }
.gewerk-erstes { background: var(--flaeche); }

/* ---------- Kontaktband ---------- */
.band { background: var(--navy); color: #fff; padding: clamp(48px, 5.5vw, 84px) 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.85); font-size: 1.12rem; margin: 14px 0 0; max-width: 60ch; }
.band-aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Formular ---------- */
.formularlage { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (max-width: 900px) { .formularlage { grid-template-columns: 1fr; } }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.feld input, .feld textarea, .feld select {
  width: 100%; font: inherit; font-size: .99rem; color: var(--tinte); background: #fff;
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 13px 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none; border-color: var(--akzent); box-shadow: 0 0 0 3px rgba(21,86,140,.15);
}
.feld textarea { resize: vertical; min-height: 140px; }
.feldpaar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 18px; }
.einwilligung { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin-bottom: 20px; font-size: .92rem; color: var(--grau); }
.einwilligung input { width: auto; margin-top: 5px; accent-color: var(--akzent); }
.einwilligung a { color: var(--akzent); text-decoration: underline; }
.kleingedruckt { font-size: .85rem; color: var(--grau); margin-top: 14px; }
.rueckmeldung { margin-top: 14px; font-weight: 600; }
.rueckmeldung[data-zustand="fehler"] { color: #b0413e; }
.rueckmeldung[data-zustand="ok"] { color: #2f7d4a; }

.merkzettel { background: var(--flaeche); border-radius: var(--rund); padding: clamp(22px, 2.5vw, 32px); }
.merkzettel dl { margin: 18px 0 0; }
.merkzettel dt { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--grau); }
.merkzettel dd { margin: 2px 0 16px; font-weight: 600; overflow-wrap: anywhere; }
.merkzettel dd:last-child { margin-bottom: 0; }
.merkzettel a:hover { color: var(--akzent); }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 72ch; }
.rechtstext section { padding: 26px 0; border-bottom: 1px solid var(--linie); }
.rechtstext section:first-child { padding-top: 0; }
.rechtstext h2 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.rechtstext h3 { font-size: .99rem; margin: 18px 0 6px; }
.rechtstext p, .rechtstext li { color: var(--grau); }
.rechtstext ul { padding-left: 1.15em; }
.rechtstext a { color: var(--akzent); text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */
.fuss { background: var(--navy); color: rgba(255,255,255,.72); padding: clamp(48px, 5vw, 72px) 0 26px; }
.fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: clamp(28px, 3.5vw, 48px); }
.fuss h2 { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 10px; }
.fuss a:hover { color: #fff; }
.fuss address { font-style: normal; line-height: 1.85; }
.fuss-schluss { margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; font-size: .86rem; color: rgba(255,255,255,.55); }

/* ---------- Feste Handlungsleiste auf dem Handy ---------- */
.handleiste { display: none; }

/* Ab hier reicht die Breite nicht mehr fuer alle drei Angaben nebeneinander.
   Statt umzubrechen faellt die E-Mail weg; die Faktenleiste geht auf zwei
   Spalten, damit kein einzelner Block allein in einer Reihe steht. */
@media (max-width: 1023px) {
  .nur-breit { display: none; }
  .fakten .deck { grid-template-columns: repeat(2, 1fr); }
  .fakt { border-left: 1px solid var(--linie); padding-left: clamp(18px, 2.4vw, 32px); }
  .fakt:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fakt:nth-child(n+3) { border-top: 1px solid var(--linie); }
}

@media (max-width: 860px) {
  .servicezeile .deck { padding-top: 7px; padding-bottom: 7px; }

  .menue-schalter { display: block; }
  .kopf .deck { position: relative; }
  .menue {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--grund); border-bottom: 1px solid var(--linie);
    padding: 8px clamp(18px, 3.5vw, 40px) 18px; box-shadow: 0 12px 24px rgba(14,36,54,.08);
  }
  .menue.offen { display: flex; }
  .menue a { padding: 14px 0; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .menue .knopf { margin: 14px 0 0; border-radius: var(--rund); }

  .buehne-bild::after { background: linear-gradient(180deg, rgba(14,36,54,.82) 0%, rgba(14,36,54,.72) 55%, rgba(14,36,54,.5) 100%); }
  .anliegen { grid-template-columns: 1fr; }

  body { padding-bottom: 68px; }
  .handleiste {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--grund); border-top: 1px solid var(--linie);
  }
  .handleiste a {
    padding: 18px 10px; text-align: center; font-weight: 600; font-size: .96rem;
  }
  .handleiste a + a { background: var(--akzent); color: #fff; }
}

/* Auf dem Handy verkuerzt sich auch die Erreichbarkeit, damit neben der
   Rufnummer noch etwas steht, die Leiste aber einzeilig bleibt. */
@media (max-width: 639px) {
  .nur-mittel { display: none; }
  .nur-schmal { display: inline; }
  .servicezeile { font-size: .8rem; }
  .servicezeile .deck { gap: 4px 16px; }

  .fakten .deck { grid-template-columns: 1fr; }
  .fakt { border-left: 0; padding-left: 0; padding-right: 0; }
  .fakt:nth-child(n+2) { border-top: 1px solid var(--linie); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
