/* SM&M Technikhilfe, Entwurf 2: Aufbau nach der Vorlage Tekz, eigene Farbe und Schrift */
:root {
  --gruen: #1d1d1b;        /* Krone-&-Kreuz-Dunkel als Hauptfarbe */
  --gruen-dunkel: #111110;
  --gelb: #edad15;         /* Krone-&-Kreuz-Senfgelb als Akzent */
  --hell: #f3efe4;
  --text: #15201c;
  --leise: #4a5752;
  --weiss: #ffffff;
  --fehler: #a02a1c;
  --schrift: "Avenir Next", "Avenir", "Segoe UI", sans-serif;
}
html { font-size: 20px; }
body { margin: 0; font-family: var(--schrift); color: var(--text); background: var(--weiss); line-height: 1.6; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: 3rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 4px solid var(--gruen); outline-offset: 3px; }
.dunkel :focus-visible { outline-color: var(--weiss); }
.innen { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.mitte { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.mitte p { color: var(--leise); }

.vorschau { background: #f4e7b8; font-size: .75rem; text-align: center; padding: .45rem 16px; }

/* Kopf: schmale Leiste oben, darunter Marke, Menü, Telefon und Terminknopf */
.leiste { background: var(--gruen-dunkel); color: #dbe6e1; font-size: .78rem; }
.leiste .innen { display: flex; justify-content: space-between; gap: .3rem 1.5rem; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.leiste a { color: inherit; }
.kopf .innen { display: flex; align-items: center; gap: 1rem 1.2rem; flex-wrap: wrap; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.marke { font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-right: auto; }
.marke span { color: var(--text); }
.marke { display: inline-flex; align-items: center; gap: .55rem; }
.signet { height: 1.3em; width: auto; display: block; }
.app-marke { display: inline-flex; align-items: center; gap: .6rem; }
.kopf nav { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-weight: 600; }
.kopf nav a { text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.kopf nav a[aria-current="page"], .kopf nav a:hover { border-bottom-color: var(--gelb); }
.anruf { text-decoration: none; line-height: 1.25; }
.anruf small { display: block; font-size: .72rem; color: var(--leise); }
.anruf strong { font-size: 1.05rem; }

.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; box-sizing: border-box; padding: .9rem 1.6rem; background: var(--gelb); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.knopf:hover { background: #d99c0f; }
.knopf.hell { background: var(--gelb); color: var(--text); }
.knopf.hell:hover { background: var(--hell); }

/* Startseite: großer Einstieg mit Foto rechts und Erreichbarkeit als Fläche über dem Foto */
.held { padding: 72px 0 104px; }
.held .innen { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.held p.gross { font-size: 1.15rem; color: var(--leise); max-width: 30em; }
.knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.knoepfe .anruf strong { font-size: 1.2rem; }
.wege { background: var(--gruen); color: var(--weiss); padding: 2.4rem 2.4rem 1.6rem; }
.wege a:first-child { border-top: 0; padding-top: 0; }
.wege a { display: block; color: inherit; text-decoration: none; padding: 1.2rem 0 1.3rem; border-top: 1px solid rgba(255,255,255,.2); }
.wege strong { display: block; font-size: 1.3rem; margin-bottom: .25rem; }
.wege span { color: #d6d6d0; font-size: 1rem; line-height: 1.5; }
.wege a:hover strong { text-decoration: underline; text-decoration-color: var(--gelb); text-underline-offset: 5px; }

.flaeche { background: var(--hell); }
.vier { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vier > div { background: var(--weiss); padding: 1.8rem 1.6rem 1.6rem; display: flex; flex-direction: column; }
.vier p { color: var(--leise); font-size: .95rem; flex: 1; }
.vier a { font-weight: 600; }

.zwei { display: grid; grid-template-columns: 1fr 1fr; }
.zwei > div { padding: 72px 64px; }
.zwei .dunkel { background: var(--gruen); color: var(--weiss); }
.zwei ul { padding-left: 1.2rem; margin: 0 0 1.8rem; }
.zwei li { margin-bottom: .4rem; }

.ueber-uns .innen { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.ueber-uns img { display: block; width: 100%; height: auto; }
.ueber-uns p { font-size: 1.15rem; color: var(--leise); max-width: 34em; }
.hinweisband .innen { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; background: var(--hell); padding: 64px; }
.hinweisband .nummer { font-size: 2.2rem; font-weight: 700; color: var(--text); text-decoration: none; display: block; }

/* Unterseiten */
.seitenkopf { background: var(--hell); padding: 72px 0 64px; }
.text-seite { max-width: 46em; }
.text-seite p { font-size: 1.1rem; }
/* .fuss steht weiter unten und hob mit einfachem Selektor den knappen Abstand wieder auf (Fund 13.11.2026) */
.fuss.fuss-knapp { padding: 28px 0; }
.fuss.fuss-knapp .zeile { border-top: 0; padding-top: 0; }
.rechtstext h2 { font-size: 1.3rem; margin: 2.2rem 0 .6rem; }
.rechtstext h3 { font-size: 1.1rem; margin: 1.6rem 0 .4rem; }
.rechtstext p, .rechtstext li { font-size: 1rem; }
.seitenkopf p { font-size: 1.15rem; color: var(--leise); max-width: 40em; margin: 0; }
.seitenkopf p.sprung { margin-top: 1rem; }
.seitenkopf .sprung a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }
.spalten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.spalten h3 { margin-bottom: .4rem; }
.spalten p { color: var(--leise); }
.spalten > .breit { grid-column: 1 / -1; }
.spalten > .breit p { max-width: 46rem; }
.schritte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: schritt; }
.schritte > div { border-top: 4px solid var(--gruen); padding-top: 1.2rem; }
.schritte > div::before { counter-increment: schritt; content: counter(schritt); display: block; font-size: 2.4rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: .6rem; }
.preise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 1.4rem; }
.preise > div { background: var(--hell); padding: 2rem 1.8rem; }
/* Preis an den unteren Rand jeder Karte, damit die Preise einer Reihe auf einer Linie stehen */
.preise > div, .spalten > div { display: flex; flex-direction: column; }
p.preis { font-size: 1.6rem; font-weight: 700; color: var(--text); margin: auto 0 0; }
.preis span { display: block; font-size: .8rem; font-weight: 400; color: var(--leise); }
.klein { font-size: .9rem; color: var(--leise); }
.weitere-preise { display: grid; gap: .5rem; max-width: 46em; }
.weitere-preise p { margin: 0; }
.aufruf { background: var(--gruen); color: var(--weiss); padding: 72px 0; }
.aufruf .innen { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; }
.aufruf h2 { margin: 0; }
.aufruf .anruf small { color: #cfe0d9; }

.themen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.themen > div { background: var(--hell); padding: 1.6rem 1.8rem; }
.themen p { margin: 0; color: var(--leise); }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }

.fragen details { border-bottom: 3px solid var(--hell); padding: 1.1rem 0; max-width: 880px; }
.fragen summary { font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.fragen details p { margin: .8rem 0 0; color: var(--leise); }
.sicherheit { background: var(--gruen-dunkel); color: var(--weiss); }
.sicherheit .innen { max-width: 860px; }
.sicherheit p { font-size: 1.1rem; }
.sicherheit a { font-weight: 700; }

/* Formulare */
.termin-raster { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.kontakt { background: var(--hell); padding: 2rem 1.8rem; order: 2; }
.kontakt h2 { font-size: 1.4rem; }
.kontakt .anruf strong { font-size: 1.35rem; }
fieldset { border: 0; margin: 0 0 2.6rem; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.4rem; padding: 0; margin-bottom: .9rem; }
/* gleiche Spalten wie .felder, damit Kacheln und Eingabefelder darüber und darunter bündig stehen */
.wahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.wahlen.eins { grid-template-columns: minmax(0, 620px); }
label.wahl { display: flex; align-items: center; gap: .8rem; background: var(--hell); padding: .9rem 1.1rem; min-height: 60px; box-sizing: border-box; cursor: pointer; font-weight: 600; }
label.wahl:has(input:checked) { background: var(--gelb); color: var(--text); }
input[type=radio], input[type=checkbox] { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--gruen-dunkel); }
.tage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tag h3 { font-size: .9rem; margin: 0 0 .5rem; }
.tag .wahl { justify-content: center; margin-bottom: 8px; padding: .7rem; }
label.feld { display: block; font-weight: 600; }
input[type=text], input[type=tel], input[type=email], textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: .3rem;
  font: inherit; font-weight: 400; color: var(--text); background: var(--weiss);
  border: 0; border-bottom: 3px solid var(--text); padding: .75rem .8rem;
}
form input[type=text], form input[type=tel], form input[type=email], form textarea { background: var(--hell); }
textarea { resize: vertical; }
/* align-items: end — bricht in schmalen Breiten eine Beschriftung um, stehen die Eingabefelder einer Reihe trotzdem auf einer Linie */
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-items: end; }
.felder .ganz { grid-column: 1 / -1; }
.felder + .klein { margin-top: .8rem; }
/* Fehler direkt unter dem Feld (Nachricht schreiben, nachricht.html) */
.feld-fehler { margin: -12px 0 0; color: var(--fehler); font-weight: 600; font-size: .9rem; }
.feld-fehler:empty { display: none; }
[aria-invalid=true] { border-bottom-color: var(--fehler); }
.fehler { background: var(--weiss); border-left: 8px solid var(--fehler); padding: 1rem 1.3rem; margin-bottom: 2rem; }
.fehler h3 { color: var(--fehler); font-size: 1.05rem; margin-bottom: .4rem; }
.fehler ul { margin: 0; padding-left: 1.2rem; }
.bestaetigung { background: var(--hell); padding: 2rem; }
.bestaetigung dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 1.2rem 0 1.8rem; }
.bestaetigung dt { font-weight: 700; }
.bestaetigung dd { margin: 0; overflow-wrap: anywhere; }

/* Fuß */
.fuss { background: var(--gruen-dunkel); color: #dbe6e1; padding: 72px 0 32px; font-size: .9rem; }
.fuss .innen > .raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.fuss h3 { color: var(--weiss); font-size: 1rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss .marke { color: var(--weiss); display: inline-flex; margin-bottom: .8rem; }
.fuss .marke span { color: var(--weiss); }
.fuss .zeile { border-top: 2px solid #2a4a42; padding-top: 1.2rem; font-size: .8rem; }

@media (max-width: 1000px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  section { padding: 64px 0; }
  .held .innen, .zwei, .ueber-uns .innen, .hinweisband .innen, .termin-raster, .anfrage-raster { grid-template-columns: 1fr; }
  .ueber-uns img { max-height: 520px; object-fit: cover; object-position: 50% 20%; }
  .vier { grid-template-columns: repeat(2, 1fr); }
  .zwei > div { padding: 56px 24px; }
  .hinweisband .innen { padding: 40px 24px; gap: 24px; }
  .preise, .schritte { grid-template-columns: 1fr; }
  .kontakt { order: 0; }
  .fuss .innen > .raster { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  html { font-size: 19px; }
  .innen { padding: 0 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.55rem; }
  .vier, .spalten, .themen, .felder, .wahlen, .fuss .innen > .raster { grid-template-columns: 1fr; }
  .leiste a { display: none; }
  .kopf .innen { gap: .5rem 1rem; padding-top: .8rem; padding-bottom: .9rem; }
  .kopf nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .kopf .anruf { flex: 1 1 auto; }
  .kopf .knopf { min-height: 52px; padding: .7rem 1.2rem; }
  .marke { width: 100%; }
  .bestaetigung dl { grid-template-columns: 1fr; }
}

/* Fernhilfe-Seite */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 1.8rem; }
.geraet { display: flex; flex-direction: column; gap: 12px; }
.geraet video { display: block; width: 100%; height: auto; }
.video-hinweis { margin: 4px 0 -4px; text-align: center; }
@media (max-width: 1000px) { .downloads { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }
.mitte-text { text-align: center; max-width: 46em; margin-left: auto; margin-right: auto; }
.app-vorschau { max-width: 620px; margin: 0 auto 1.6rem; background: var(--weiss); box-shadow: 0 24px 60px rgba(21, 32, 28, .18); }
.app-kopf { background: var(--gruen); color: var(--weiss); padding: 1rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-marke { font-weight: 700; font-size: 1.2rem; }
.app-marke span { color: var(--weiss); }
.app-status { font-size: .8rem; color: #cfe0d9; }
.app-koerper { padding: 2rem 1.4rem 1.4rem; }
.app-id, .app-pw { margin-bottom: 1.6rem; }
.app-id span, .app-pw span { display: block; font-size: .9rem; color: var(--leise); }
.app-id strong { display: block; font-size: 3rem; letter-spacing: .06em; line-height: 1.1; color: var(--gruen-dunkel); }
.app-pw strong { display: block; font-size: 1.8rem; letter-spacing: .2em; color: var(--gruen-dunkel); }
.app-id em, .app-pw em { font-style: normal; font-size: .9rem; color: var(--leise); }
.app-fuss { border-top: 3px solid var(--hell); padding-top: 1rem; font-size: .9rem; color: var(--leise); }
.intern-liste { padding-left: 1.3rem; }
.intern-liste li { margin-bottom: .7rem; }
.sicherheit code { background: #2a4a42; padding: .1rem .4rem; font-size: .9em; overflow-wrap: anywhere; }

.fangfeld { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
