/* sundweb.net — Hanseblau #14508C, bewusst ohne Framework.
   Eine Seite, die Webseiten verkauft, muss selbst schnell sein. */

:root {
  --brand: #14508C;
  --brand-dunkel: #0e3a66;
  --brand-hell: #e8f0f9;
  --akzent: #c8842a;
  --fg: #1b2733;
  --fg-leise: #5b6b7c;
  --bg: #ffffff;
  --bg-leise: #f5f7fa;
  --rand: #dfe5ec;
  --breite: 68rem;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(20, 39, 51, .06), 0 8px 24px rgba(20, 39, 51, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.huelle { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 1rem; }

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

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

/* ---------------------------------------------------------------- Hilfsklassen
   Diese ersetzen seit 24.09.2026 die inline `style="…"`-Angaben in den Vorlagen.
   Grund: Die eigene Content-Security-Policy (`style-src 'self'`) blockiert
   Inline-Styles — im Browser gemessen, sieben Verstöße allein auf der Startseite.
   Die Abstände fehlten dadurch still. Die Regel aufzuweichen wäre der falsche Weg
   gewesen: eine Seite, die mit Sorgfalt wirbt, lockert ihre Sicherheitsregel nicht,
   weil das Aufräumen unbequem ist. */
.mittig        { text-align: center; }
.kein-abstand  { margin: 0; }
.abstand-oben        { margin-top: 2rem; }
.abstand-oben-mittel { margin-top: 1.5rem; }
.abstand-oben-klein  { margin-top: .75rem; }
.abstand-oben-gross  { margin-top: 2.5rem; }
.mittig-schmal { margin: 0 auto 2rem; }
.nach-rechts   { margin-left: auto; }
.luft-oben     { padding-top: 2.5rem; }

.lesebreite     { max-width: 44rem; }
.listenbreite   { max-width: 52rem; }
.formularbreite { max-width: 38rem; }
.anmeldebreite  { max-width: 26rem; }
.feld-lang   { max-width: 14rem; }
.feld-mittel { max-width: 12rem; }
.feld-kurz   { max-width: 10rem; }
.feld-breit  { min-width: 12rem; }

.titel-gross  { font-size: 1.7rem; }
.titel-mittel { font-size: 1.6rem; }
.titel-klein  { font-size: 1.2rem; }
.schrift-klein { font-size: .95rem; }
.schrift-winzig-leise { font-size: .84rem; color: var(--fg-leise); }
.leise { color: var(--fg-leise); }

.kopfzeile { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  border-bottom: 1px solid var(--rand);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 30;
}
.kopf .huelle { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.marke { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem;
         color: var(--fg); text-decoration: none; letter-spacing: -.02em; }
.marke svg { width: 34px; height: 34px; flex: none; }
.marke span i { font-style: normal; color: var(--brand); }

.menue { margin-left: auto; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.menue a { padding: .5rem .7rem; border-radius: 7px; text-decoration: none; color: var(--fg-leise);
           font-size: .97rem; font-weight: 500; }
.menue a:hover { background: var(--bg-leise); color: var(--fg); }
.menue a.aktiv { color: var(--brand); background: var(--brand-hell); }

.knopf, .menue a.knopf {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: .7rem 1.15rem; border-radius: 8px; font-weight: 600; font-size: 1rem;
  border: 1px solid var(--brand); cursor: pointer; line-height: 1.3;
}
.knopf:hover, .menue a.knopf:hover { background: var(--brand-dunkel); color: #fff; }
.knopf.leise { background: transparent; color: var(--brand); }
.knopf.leise:hover { background: var(--brand-hell); color: var(--brand-dunkel); }
.knopf.klein { padding: .4rem .7rem; font-size: .88rem; }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { padding: 4rem 0; }
.abschnitt.leise { background: var(--bg-leise); border-block: 1px solid var(--rand); }
.abschnitt > .huelle > h2 { max-width: 34rem; }
.vorspann { color: var(--fg-leise); font-size: 1.1rem; max-width: 42rem; }

.bühne { padding: 5rem 0 4rem; }
.bühne h1 { max-width: 20ch; }
.bühne .vorspann { font-size: 1.25rem; max-width: 40rem; }
.bühne .knopfzeile { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.bühne .unterzeile { margin-top: 1.5rem; color: var(--fg-leise); font-size: .95rem; }

.gitter { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .gitter.zwei { grid-template-columns: 1fr 1fr; } }
.gitter.drei { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }

/* Streifen unter der Bühne: die betreuten Seiten als Beleg, nicht als Behauptung */
.streifen { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--rand); }
.streifen .titel { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em;
                   color: var(--fg-leise); margin-bottom: .9rem; }
.streifen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
               gap: .5rem .5rem; }
.streifen li a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--rand);
                 border-radius: 99px; text-decoration: none; color: var(--fg-leise);
                 font-size: .92rem; background: #fff; }
.streifen li a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-hell); }

.karte {
  background: var(--bg); border: 1px solid var(--rand); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--schatten);
}
.karte h3 { margin-bottom: .4rem; }
.karte p { color: var(--fg-leise); margin-bottom: .75rem; }
.karte ul { margin: 0; padding-left: 1.1rem; color: var(--fg-leise); font-size: .96rem; }
.karte li { margin-bottom: .3rem; }

/* ---------------------------------------------------------------- Referenzen */
.referenz { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.referenz .bild { background: var(--bg-leise); border-bottom: 1px solid var(--rand);
                  aspect-ratio: 16 / 9; overflow: hidden; }
.referenz .bild img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
                      display: block; }
.referenz .platzhalter { width: 100%; height: 100%; display: grid; place-items: center;
                         color: var(--brand); font-weight: 700; font-size: 1.3rem;
                         background: linear-gradient(135deg, var(--brand-hell), #fff); }
.referenz .inhalt { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.referenz .branche { color: var(--fg-leise); font-size: .87rem; text-transform: uppercase;
                     letter-spacing: .05em; margin-bottom: .35rem; }
.referenz .kartenfuss { margin-top: auto; padding-top: 1rem; }

/* ---------------------------------------------------------------- Ablauf */
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt;
          display: grid; gap: 1rem; }
.ablauf li { counter-increment: schritt; display: grid; grid-template-columns: 2.4rem 1fr;
             gap: 1rem; align-items: start; }
.ablauf li::before {
  content: counter(schritt); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--brand-hell); color: var(--brand); font-weight: 700;
  display: grid; place-items: center; font-size: .95rem;
}
.ablauf strong { display: block; }
.ablauf span { color: var(--fg-leise); }

/* ---------------------------------------------------------------- Formular */
.formular { max-width: 38rem; }
.feld { margin-bottom: 1.1rem; }
.feld label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .97rem; }
.feld .hinweis { font-weight: 400; color: var(--fg-leise); font-size: .88rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], textarea, select {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--rand); border-radius: 8px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--fg);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
textarea { min-height: 9rem; resize: vertical; }
.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.einwilligung { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem;
                color: var(--fg-leise); }
.einwilligung input { margin-top: .3rem; flex: none; }

.meldung { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: .97rem; }
.meldung.fehler { background: #fdecec; border: 1px solid #f5c2c2; color: #8a1f1f; }
.meldung.gut { background: #eaf6ed; border: 1px solid #bfe0c8; color: #1c5c2e; }

/* ---------------------------------------------------------------- Fuss */
.fuss { background: #101c29; color: #b6c2d1; padding: 3rem 0 2rem; margin-top: 4rem; font-size: .95rem; }
.fuss a { color: #dce5ef; }
.fuss .spalten { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
                 padding-bottom: 2rem; border-bottom: 1px solid #23364a; }
.fuss h4 { color: #fff; font-size: .95rem; margin: 0 0 .6rem; letter-spacing: .02em; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: .35rem; }
.fuss .unten { padding-top: 1.25rem; display: flex; gap: 1rem; flex-wrap: wrap;
               justify-content: space-between; color: #8798aa; font-size: .9rem; }

/* ---------------------------------------------------------------- Intern */
.intern { background: var(--bg-leise); min-height: 100vh; }
.intern .kopf { background: #101c29; border-bottom: none; }
.intern .marke { color: #fff; }
.intern .menue a { color: #b6c2d1; }
.intern .menue a:hover { background: #1c2c3d; color: #fff; }
.intern .menue a.aktiv { background: #1c2c3d; color: #fff; }

table.liste { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
              overflow: hidden; box-shadow: var(--schatten); font-size: .95rem; }
table.liste th, table.liste td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--rand);
                                 vertical-align: top; }
table.liste th { background: var(--bg-leise); font-size: .83rem; text-transform: uppercase;
                 letter-spacing: .04em; color: var(--fg-leise); }
table.liste tr:last-child td { border-bottom: none; }

.ampel { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.ampel::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #9aa7b4; }
.ampel.gut { color: #1c7a3c; } .ampel.gut::before { background: #22a355; }
.ampel.schlecht { color: #a32222; } .ampel.schlecht::before { background: #d33; }

.anfrage { background: #fff; border: 1px solid var(--rand); border-radius: var(--radius);
           padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--schatten); }
.anfrage .kopfzeile { display: flex; gap: .75rem; flex-wrap: wrap; align-items: baseline;
                      margin-bottom: .5rem; }
.anfrage .zeit { color: var(--fg-leise); font-size: .88rem; margin-left: auto; }
.anfrage pre { white-space: pre-wrap; word-wrap: break-word; font: inherit; background: var(--bg-leise);
               padding: .8rem; border-radius: 8px; margin: .6rem 0; }
.marker { display: inline-block; padding: .12rem .5rem; border-radius: 99px; font-size: .78rem;
          font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.marker.neu { background: var(--brand-hell); color: var(--brand); }
.marker.gelesen { background: #f0e6d3; color: #8a6420; }
.marker.erledigt { background: #e6f2e9; color: #1c7a3c; }
.marker.warnung { background: #fdecec; color: #8a1f1f; }

.zeilenform { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .abschnitt { padding: 3rem 0; }
  .bühne { padding: 3rem 0 2.5rem; }
  .kopf .huelle { flex-wrap: wrap; padding-block: .6rem; min-height: 0; }
  .menue { margin-left: 0; width: 100%; }
  table.liste { display: block; overflow-x: auto; white-space: nowrap; }
}
