/* =========================================================
   Schaden IT-Solutions – sit.at
   -----------------------------
   EBENE 1  Palette      Rohe Farbwerte. NUR HIER Farben ändern.
   EBENE 2  Rollen       Was die Farbe bedeutet (Text, Fläche, Akzent).
   EBENE 3  Bausteine    Greifen ausschließlich auf Ebene 2 zu.
   ========================================================= */


/* ============ EBENE 1 · PALETTE ============ */

:root {
  --pal-orange:      #F17E00;   /* Markenorange, exakt wie im Logo. Nur als FLÄCHE. */
  --pal-orange-tief: #A85500;   /* Dasselbe Orange, abgedunkelt. Für TEXT auf hell. */
  --pal-orange-matt: #FDF0E0;   /* Aufgehellt, für zarte Hinterlegungen. */

  --pal-tinte:       #1C1C1A;
  --pal-tinte-weich: #3B3B37;
  --pal-grau:        #6E6D68;
  --pal-grau-hell:   #B8B6B0;

  --pal-papier:      #FAF9F7;
  --pal-weiss:       #FFFFFF;
  --pal-linie:       #E7E3DD;
  --pal-linie-matt:  #F1EFEA;
  --pal-linie-dunkel:#4A4A46;   /* Linien auf dunklem Grund */

  --pal-fokus:       #A85500;
}


/* ============ EBENE 2 · ROLLEN ============ */

:root {
  /* Text */
  --text:            var(--pal-tinte);
  --text-weich:      var(--pal-tinte-weich);
  --text-leise:      var(--pal-grau);
  --text-akzent:     var(--pal-orange-tief);
  --text-invers:     var(--pal-weiss);
  --text-invers-leise: var(--pal-grau-hell);

  /* Flächen */
  --grund:           var(--pal-papier);
  --flaeche:         var(--pal-weiss);
  --flaeche-matt:    var(--pal-linie-matt);
  --flaeche-dunkel:  var(--pal-tinte);
  --flaeche-akzent:  var(--pal-orange-matt);

  /* Akzent */
  --akzent:          var(--pal-orange);
  --auf-akzent:      var(--pal-tinte);   /* Text auf Orangefläche: dunkel, nie weiß. */

  /* Linien */
  --linie:           var(--pal-linie);
  --linie-dunkel:    var(--pal-linie-dunkel);
  --fokus:           var(--pal-fokus);

  /* Schrift */
  --schrift-titel:   "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-text:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-mono:    "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* Maße */
  --rund:            10px;   /* Karten */
  --rund-klein:      6px;    /* Knöpfe, Felder */
  --spalte:          1080px;
  --luft:            clamp(20px, 5vw, 56px);
}


/* ============ SCHRIFTEN (lokal, kein Google-CDN) ============ */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;          /* Variable Font: eine Datei, ganzer Bereich */
  font-display: swap;
  src: url("../fonts/IBMPlexSans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IBMPlexMono-400.woff2") format("woff2");
}


/* ============ EBENE 3 · GRUNDGERÜST ============ */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--grund);
  background-image:
    linear-gradient(to right, rgba(28, 28, 26, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 28, 26, .028) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--schrift-titel);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.022em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--text-akzent); }

img { max-width: 100%; display: block; }

:is(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 2px;
}

.nur-fuer-screenreader {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sprunglink: unsichtbar, bis er per Tab fokussiert wird – dann sichtbar oben links.
   Ein dauerhaft verstecktem Sprunglink nützt Tastaturnutzern ohne Screenreader nichts. */
.sprunglink:focus {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  width: auto; height: auto; margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: var(--akzent); color: var(--auf-akzent);
  padding: 12px 18px; border-radius: var(--rund-klein);
  font-weight: 500; text-decoration: none;
}

.spalte {
  max-width: var(--spalte);
  margin-inline: auto;
  padding-inline: var(--luft);
}

.abschnitt { padding-block: clamp(40px, 8vh, 80px); }

/* Sprungziele nicht unter der klebenden Kopfzeile parken. */
[id] { scroll-margin-top: 90px; }


/* ============ EBENE 3 · WIEDERKEHRENDE BAUSTEINE ============ */

/* Kleines Label über einem Abschnitt */
.marke {
  font-family: var(--schrift-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-leise);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.marke::before {
  content: "";
  width: 18px; height: 2px;
  background: var(--akzent);
  flex: none;
}

/* Knöpfe – eine Basis, zwei Ausprägungen */
.knopf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: var(--rund-klein);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease;
}
.knopf:hover { transform: translateY(-1px); }
.knopf--haupt  { background: var(--akzent); color: var(--auf-akzent); }
.knopf--rand   { background: var(--flaeche); color: var(--text); border-color: var(--linie); }
.knopf--dunkel { background: transparent; color: var(--text-invers); border-color: var(--linie-dunkel); font-family: var(--schrift-mono); font-size: .9rem; }

/* Karte – Basis für Leistungen und Standorte */
.karte {
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.karte h3 { font-size: 1.16rem; margin-bottom: 7px; }
.karte p  { font-size: .95rem; color: var(--text-leise); }

.karte--leistung:hover {
  transform: translateY(-3px);
  border-color: var(--akzent);
  box-shadow: inset 3px 0 0 var(--akzent), 0 14px 30px -18px rgba(28, 28, 26, .4);
}
/* Der Akzentbalken liegt als inset-Schatten innen, damit die runde Ecke sauber bleibt. */
.karte--standort { box-shadow: inset 3px 0 0 var(--akzent); }

/* Gekantetes Markenquadrat, vom Logo abgeleitet */
.zeichen {
  width: 13px; height: 13px;
  background: var(--akzent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  margin-bottom: 16px;
}

/* Raster – ein Muster für beide Kartenarten */
.raster {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
}
.raster--zwei { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }


/* ============ EBENE 3 · SEITENTEILE ============ */

.kopf {
  position: sticky; top: 0; z-index: 10;
  background: var(--flaeche);
  border-bottom: 1px solid var(--linie);
}
.kopf > .spalte {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 12px;
}
.kopf img { height: clamp(30px, 5vw, 40px); width: auto; }
.kopf nav { display: flex; align-items: center; gap: 22px; }
/* :not(.knopf) ist Absicht: sonst überschreibt diese Regel --auf-akzent
   auf dem orangen Knopf und drückt den Kontrast von 6,28:1 auf 4,14:1. */
.kopf nav a:not(.knopf) { color: var(--text-weich); text-decoration: none; font-size: .95rem; }
.kopf nav a:not(.knopf):hover { color: var(--text-akzent); }

.held h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  max-width: 19ch;
  margin-bottom: .35em;
}
.held h1 em { font-style: normal; color: var(--text-akzent); }
.held__text {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--text-weich);
  max-width: 56ch;
  margin-bottom: 28px;
}
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Vertrauensleiste */
.leiste {
  background: var(--flaeche);
  border-block: 1px solid var(--linie);
}
.leiste > .spalte {
  display: flex; flex-wrap: wrap;
  justify-content: space-around; gap: 24px;
  padding-block: 26px; text-align: center;
}
.zahl {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: 1.9rem;
}
.zahl small {
  font-family: var(--schrift-text);
  font-weight: 400;
  font-size: .82rem;
  color: var(--text-leise);
}
.zahl + p { font-size: .84rem; color: var(--text-leise); }

/* Standorte */
.standort-kopf {
  font-family: var(--schrift-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-akzent);
  margin-bottom: 12px;
  min-height: 3.2em;   /* Platz für zwei Zeilen, damit beide Karten fluchten. */
}
.karte--standort address { font-style: normal; color: var(--text-weich); font-size: .95rem; }

/* Icons erben ihre Farbe über currentColor aus der Rolle – kein Hexwert im HTML. */
.hinweis svg { color: var(--text-akzent); flex: none; }

.hinweis {
  display: flex; align-items: center; gap: 10px;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: 14px 18px;
  margin-top: 14px;
  font-size: .95rem;
  color: var(--text-weich);
}
.hinweis strong { font-weight: 500; color: var(--text); }

/* Einzugsgebiets-Karte: inline-SVG (CSP erlaubt keine externen Karten).
   Alle Farben kommen von hier — im SVG selbst steht kein einziger Hexwert. */
.karte-gebiet {
  margin: 14px 0 0;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: var(--rund);
  padding: clamp(10px, 3vw, 26px);
}
.kg-svg { display: block; width: 100%; height: auto; }

/* Reine Linienkarte: Umrisse orange, Flächen bleiben weiß. */
.kg-nachbar { fill: none; stroke: var(--akzent); stroke-width: 1.5; stroke-linejoin: round; opacity: .55; } /* Kärnten, Burgenland */
.kg-grenze  { fill: none; stroke: var(--akzent); stroke-width: 3.5; stroke-linejoin: round; }               /* Steiermark */

.kg-punkt    { fill: var(--text-weich); }                                             /* weitere Orte */
.kg-stadt    { fill: var(--flaeche-dunkel); }                                         /* Graz */
.kg-standort { fill: var(--akzent); stroke: var(--auf-akzent); stroke-width: 2; }     /* die zwei Standorte */

.kg-name {
  font-family: var(--schrift-text);
  font-size: 21px;               /* SVG-Einheiten: skaliert mit der Karte */
  font-weight: 600;
  fill: var(--text);
  stroke: var(--flaeche);        /* heller Schein, damit der Name auf Grenzlinien lesbar bleibt */
  stroke-width: 4;
  paint-order: stroke;
}
.kg-name--standort { font-size: 24px; font-weight: 700; }

.karte-gebiet figcaption {
  margin-top: 12px;
  font-size: .9rem;
  color: var(--text-leise);
}

/* Kontaktblock – dunkel, hier darf das reine Markenorange leuchten */
.kontakt {
  background: var(--flaeche-dunkel);
  color: var(--text-invers);
  text-align: center;
}
.kontakt h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 10px; }
.kontakt h2 em { font-style: normal; color: var(--akzent); }
.kontakt p { color: var(--text-invers-leise); margin-bottom: 24px; }
.kontakt .knopfreihe { justify-content: center; }

.fuss {
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  font-family: var(--schrift-mono);
  font-size: .74rem;
  color: var(--text-leise);
}
.fuss > .spalte {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px; padding-block: 20px;
}
/* inline-block + Polsterung bringt die Klickfläche auf 24 px Höhe (WCAG 2.2, 2.5.8). */
.fuss a {
  color: var(--text-akzent); text-decoration: none;
  border-bottom: 1px solid var(--akzent);
  display: inline-block; padding: 4px 2px;
}


/* ============ EBENE 3 · FEHLERSEITEN (404, 403, 401, 500) ============ */

/* Schlichter Kopf für Fehlerseiten: nur das Logo, zentriert. */
.kopf--schlicht > .spalte { justify-content: center; }

.fehler {
  text-align: center;
  padding-block: clamp(48px, 12vh, 120px);
}
/* Grosse Fehlernummer: --text-akzent (#A85500) statt reinem Orange,
   damit sie auch als grosse Zahl den 3:1-Kontrast auf hellem Grund hält. */
.fehler .code {
  font-family: var(--schrift-titel);
  font-weight: 700;
  font-size: clamp(4.5rem, 20vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--text-akzent);
  margin: 0;   /* überschreibt .fehler p — sonst würde 1.8em × 160px = 288px Abstand entstehen */
}
.fehler h1 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 0.5em 0 0.35em;
}
.fehler p {
  color: var(--text-weich);
  max-width: 48ch;
  margin: 0 auto 1.8em;
}
.fehler .knopfreihe { justify-content: center; }

/* Kontaktdaten für den Ernstfall — bewusst schlichtes HTML, damit Nummer und
   E-Mail auch dann lesbar/klickbar bleiben, wenn bei einem echten Serverfehler
   das Stylesheet nicht mehr lädt. */
.fehler-kontakt {
  margin-top: 2.6em;
  padding-top: 1.6em;
  border-top: 1px solid var(--linie);
}
.fehler-kontakt .lbl {
  font-family: var(--schrift-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 0.7em;
}
.fehler-kontakt a {
  font-family: var(--schrift-mono);
  font-size: 1.05rem;
  color: var(--text-akzent);
  text-decoration: none;
}
.fehler-kontakt a:hover { text-decoration: underline; }
.fehler-kontakt .trenner { color: var(--text-leise); margin: 0 0.6em; }

/* Sekundaerlinks (nur auf der 404) */
.fehler .wege {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--linie);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 0.95rem;
}
.fehler .wege a { color: var(--text-akzent); text-decoration: none; }
.fehler .wege a:hover { text-decoration: underline; }

/* Der Zurück-Knopf wird per JS eingeblendet — ohne Verlauf/ohne JS bleibt er weg. */
#zurueck[hidden] { display: none; }


/* ============ EBENE 3 · RECHTSSEITEN (Impressum, Datenschutz) ============ */

/* Gehört INNERHALB von .spalte, nicht daneben: .spalte zentriert die 1080er-Spalte,
   .prosa begrenzt darin die Zeilenlänge und bleibt linksbündig unter dem Logo. */
.prosa { max-width: 68ch; }
.prosa h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .6em; }
.prosa h2 {
  font-size: 1.3rem;
  margin: 2.2em 0 .6em;
  padding-top: 1.4em;
  border-top: 1px solid var(--linie);
}
.prosa h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.6em; }
.prosa p, .prosa ul, .prosa address { color: var(--text-weich); margin-bottom: 1em; }
.prosa address { font-style: normal; }
.prosa ul { padding-left: 1.2em; }
.prosa li { margin-bottom: .3em; }
.prosa dt { font-size: .8rem; color: var(--text-leise); font-family: var(--schrift-mono); text-transform: uppercase; letter-spacing: .1em; margin-top: 1em; }
.prosa dd { margin: .2em 0 0; color: var(--text-weich); }

/* Sichtbare Markierung für Angaben, die noch fehlen. Vor dem Livegang entfernen. */
.offen {
  background: var(--flaeche-akzent);
  color: var(--text-akzent);
  border-radius: 3px;
  padding: 1px 6px;
  font-weight: 500;
}


/* ============ BEWEGUNG ============ */

.auftritt {
  opacity: 0;
  transform: translateY(14px);
  animation: auftauchen .6s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes auftauchen { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .auftritt { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ============ SCHMALE BILDSCHIRME ============ */

@media (max-width: 760px) {
  .kopf > .spalte { flex-wrap: wrap; }
  .kopf nav { gap: 16px; font-size: .9rem; }
  .kopf nav a:not(.knopf) { display: none; }   /* Auf klein zählt nur der Anruf. */
  .leiste > .spalte { gap: 18px; }
  .zahl { font-size: 1.5rem; }
}
