/* ============================================================
   ITS Informationstechnik Schneider — its-informationstechnik.com
   Design-System: Farben & Typografie direkt aus dem ITS-Logo
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("/assets/fonts/ubuntu-v21-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ubuntu-v21-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/ubuntu-v21-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ubuntu-v21-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ubuntu-mono-v19-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/ubuntu-mono-v19-latin-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Farben aus dem Logo-Vektor */
  --navy: #140d47;        /* Logo-Kontur — dunkle Flächen */
  --navy-soft: #1e1657;   /* Karten/Abstufung auf Navy */
  --navy-line: #322a6e;   /* Linien auf Navy */
  --blau: #17408b;        /* Logo-Swoosh — Primärfarbe */
  --blau-hover: #102f6a;
  --blau-hell: #8fb0ea;   /* Links/Akzente auf dunklem Grund */
  --blau-100: #dfe7f6;
  --blau-50: #f2f5fb;     /* helle Wechselflächen */
  --rot: #e21a30;         /* Logo-Punkt — nur Akzent + CTA */
  --rot-hover: #bf0f23;
  --ink: #1a1720;         /* Logo-Schwarz — Fließtext */
  --grau: #56525f;        /* Sekundärtext */
  --grau-hell: #d9dbe4;   /* Rahmen/Linien */
  --weiss: #ffffff;

  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, "Cascadia Mono", monospace;

  --container: 71rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 13, 71, .06), 0 8px 24px rgba(20, 13, 71, .08);
  --dur: 180ms;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }
a { color: var(--blau); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blau-hover); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* ---------- Eyebrow: das PLUS-System ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blau);
  margin: 0 0 .9rem;
  display: block;
}
.eyebrow::before { content: "+ "; color: var(--rot); font-weight: 700; }
.section--navy .eyebrow, .hero .eyebrow { color: var(--blau-hell); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform var(--dur);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(20, 13, 71, .16); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--rot { background: var(--rot); color: #fff; }
.btn--rot:hover { background: var(--rot-hover); color: #fff; }
.btn--blau { background: var(--blau); color: #fff; }
.btn--blau:hover { background: var(--blau-hover); color: #fff; }
.btn--outline { border-color: var(--grau-hell); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--blau); color: var(--blau); }
.btn--outline-hell { border-color: var(--navy-line); color: #fff; background: transparent; }
.btn--outline-hell:hover { border-color: var(--blau-hell); color: var(--blau-hell); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grau-hell);
  transition: box-shadow var(--dur);
}
.site-header--scrolled { box-shadow: 0 2px 14px rgba(20, 13, 71, .09); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.site-header__logo img { width: 152px; height: auto; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav__list > li { position: relative; }
.site-nav__list > li > a {
  display: block; padding: .55rem .85rem; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
}
.site-nav__list > li > a:hover { background: var(--blau-50); color: var(--blau); }
.site-nav__list > li > a[aria-current="page"] { color: var(--blau); box-shadow: inset 0 -2px 0 var(--rot); border-radius: 8px 8px 0 0; }
.site-nav__cta > a { background: var(--blau); color: #fff !important; }
.site-nav__cta > a:hover { background: var(--blau-hover) !important; }

/* Unterpunkte Leistungen */
.site-nav__item--sub { display: flex; align-items: center; }
.site-nav__sub-toggle {
  width: 1.5rem; height: 1.5rem; margin-left: -.4rem;
  border: 0; background: transparent; cursor: pointer; border-radius: 6px;
  position: relative;
}
.site-nav__sub-toggle::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: .5rem; height: .5rem;
  border-right: 2px solid var(--grau); border-bottom: 2px solid var(--grau);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur);
}
.site-nav__sub {
  list-style: none; margin: 0; padding: .45rem;
  position: absolute; top: 100%; left: 0; min-width: 15.5rem;
  background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}
.site-nav__sub a {
  display: block; padding: .5rem .75rem; border-radius: 7px;
  text-decoration: none; color: var(--ink); font-size: .97rem;
}
.site-nav__sub a:hover { background: var(--blau-50); color: var(--blau); }
.site-nav__item--sub:hover .site-nav__sub,
.site-nav__item--sub.open .site-nav__sub { display: block; }

/* Burger */
.nav-toggle {
  display: none;
  align-items: center; gap: .6rem;
  font: inherit; font-weight: 500;
  background: transparent; border: 1px solid var(--grau-hell); border-radius: 8px;
  padding: .5rem .8rem; cursor: pointer; color: var(--ink);
}
.nav-toggle__box { position: relative; width: 1.2rem; height: .9rem; display: inline-block; }
.nav-toggle__line, .nav-toggle__box::before, .nav-toggle__box::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform var(--dur), opacity var(--dur);
}
.nav-toggle__box::before { top: 0; }
.nav-toggle__line { top: calc(50% - 1px); }
.nav-toggle__box::after { bottom: 0; }
body.nav-open .nav-toggle__box::before { transform: translateY(.4rem) rotate(45deg); }
body.nav-open .nav-toggle__line { opacity: 0; }
body.nav-open .nav-toggle__box::after { transform: translateY(-.4rem) rotate(-45deg); }

@media (max-width: 56em) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--grau-hell); box-shadow: var(--shadow); }
  body.nav-open .site-nav { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .7rem clamp(1.1rem, 4vw, 2rem) 1.1rem; }
  .site-nav__list > li > a { padding: .8rem .6rem; font-size: 1.06rem; }
  .site-nav__item--sub { display: block; }
  .site-nav__item--sub > a { display: inline-block; width: calc(100% - 3rem); }
  .site-nav__sub-toggle { width: 2.6rem; height: 2.6rem; margin: 0; vertical-align: middle; }
  .site-nav__item--sub.open .site-nav__sub-toggle::after { transform: rotate(225deg); }
  .site-nav__sub { position: static; border: 0; box-shadow: none; padding: 0 0 .4rem .9rem; min-width: 0; }
  .site-nav__cta { margin-top: .5rem; }
  .site-nav__cta > a { text-align: center; }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 130px;
  background: url("/assets/img/poly-band.svg") bottom center / cover no-repeat;
  pointer-events: none;
  opacity: .9;
}
.hero .container { position: relative; z-index: 1; padding-block: clamp(3.6rem, 9vw, 6.5rem) clamp(6rem, 12vw, 9rem); max-width: 56rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--blau-hell); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 300; color: #d6ddf2; max-width: 44rem; margin-bottom: 1.8em; }
.hero .btn-row { margin-bottom: 0; }
.hero__note { margin: 1.4rem 0 0; font-size: .95rem; color: #a9b3d6; }
.hero__note a { color: #d6ddf2; }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero__lead, .hero .btn-row, .hero__note {
    animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
  }
  .hero h1 { animation-delay: .06s; }
  .hero__lead { animation-delay: .12s; }
  .hero .btn-row { animation-delay: .18s; }
  .hero__note { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }

  /* Seitenkopf der Unterseiten: gleicher ruhiger Einstieg wie der Hero */
  .page-head .eyebrow, .page-head h1, .page-head__lead {
    animation: rise .5s cubic-bezier(.2, .7, .3, 1) both;
  }
  .page-head h1 { animation-delay: .05s; }
  .page-head__lead { animation-delay: .1s; }

  /* Leistungen-Dropdown: sanft einblenden */
  .site-nav__item--sub:hover .site-nav__sub,
  .site-nav__item--sub.open .site-nav__sub { animation: sub-in .16s ease both; }
  @keyframes sub-in { from { opacity: 0; transform: translateY(-4px); } }

  /* Scroll-Reveal (Klassen setzt main.js, nur bei aktivem JS) */
  html.js .reveal {
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  html.js .reveal--in { opacity: 1; transform: translateY(0); }
}

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-head { background: var(--blau-50); border-bottom: 1px solid var(--grau-hell); }
.page-head .container { padding-block: clamp(2.4rem, 6vw, 4rem); max-width: 56rem; }
.page-head h1 { margin-bottom: .3em; }
.page-head__lead { font-size: 1.15rem; font-weight: 300; color: var(--grau); margin: 0; max-width: 46rem; }

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--tint { background: var(--blau-50); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: var(--blau-hell); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section__head p { color: var(--grau); margin-bottom: 0; }
.section--navy .section__head p { color: #c3cbe8; }

/* ---------- Karten (Leistungen) ---------- */
.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blau); }
.card__plus {
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem; line-height: 1;
  color: var(--rot); display: block; margin-bottom: .9rem;
  width: fit-content;
  transition: transform var(--dur);
}
.card:hover .card__plus { transform: scale(1.2); }
.card h2, .card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.card h2 a::after, .card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { color: var(--grau); font-size: .99rem; margin: 0; }
.card__more { display: inline-block; margin-top: .9rem; font-weight: 500; font-size: .95rem; color: var(--blau); }
.card:hover .card__more { text-decoration: underline; }

/* ---------- Plus-Liste ---------- */
.plus-list { list-style: none; padding: 0; }
.plus-list li { position: relative; padding-left: 1.7rem; margin-bottom: .55em; }
.plus-list li::before {
  content: "+"; position: absolute; left: 0; top: -.05em;
  font-family: var(--mono); font-weight: 700; font-size: 1.15em; color: var(--rot);
}

/* ---------- PLUS-Kasten (aus der Broschüre) ---------- */
.plus-box {
  background: #fff; border: 1px solid var(--grau-hell); border-left: 4px solid var(--rot);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-block: 2rem;
  box-shadow: var(--shadow);
}
.plus-box__label {
  font-family: var(--mono); font-size: .8125rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--rot); display: block; margin-bottom: .5rem;
}
.plus-box p:last-child { margin-bottom: 0; }
.section--navy .plus-box { background: var(--navy-soft); border-color: var(--navy-line); border-left-color: var(--rot); }

/* ---------- Zweispalter ---------- */
.split { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
@media (min-width: 50em) { .split { grid-template-columns: 1fr 1fr; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Region-Band ---------- */
.region-band { border-top: 1px solid var(--grau-hell); border-bottom: 1px solid var(--grau-hell); background: #fff; }
.region-band .container {
  display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: baseline;
  padding-block: 1rem; justify-content: center;
  font-family: var(--mono); font-size: .87rem; letter-spacing: .09em; color: var(--grau);
}
.region-band strong { color: var(--blau); font-weight: 400; }
.region-band span[aria-hidden] { color: var(--rot); }

/* ---------- Partner ---------- */
.partner-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  list-style: none; padding: 0; margin: 0;
}
.partner-grid li {
  background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; min-height: 5.4rem;
}
.partner-grid img {
  max-height: 3.1rem; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72; transition: filter var(--dur), opacity var(--dur);
}
.partner-grid li:hover img { filter: none; opacity: 1; }

/* ---------- Abschnitts-Anker auf Leistungsseiten ---------- */
.topic { padding-block: 1.2rem; scroll-margin-top: 6rem; }
.topic--media { display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 50em) {
  .topic--media { grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); }
}
.topic__figure {
  margin: 0;
  background: var(--weiss); border: 1px solid var(--grau-hell); border-radius: var(--radius);
  padding: 1.1rem 1.1rem .9rem;
}
.topic__figure img { width: 100%; height: auto; }
.topic__figure figcaption {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--grau); margin-top: .8rem;
}
.topic__figure figcaption::before { content: "+ "; color: var(--rot); font-weight: 700; }

/* ---------- Porträt ---------- */
.portrait-frame img { border: 1px solid var(--grau-hell); }
.section--navy .portrait-frame img { border-color: var(--navy-line); }
.topic + .topic { border-top: 1px solid var(--grau-hell); }
.topic h2, .topic h3 { display: flex; align-items: baseline; gap: .55rem; }
.topic h2::before, .topic h3::before {
  content: "+"; font-family: var(--mono); font-weight: 700; color: var(--rot); font-size: .9em;
}

/* ---------- Formular ---------- */
.form { max-width: 38rem; }
.form-field { margin-bottom: 1.15rem; }
.form-field label { display: block; font-weight: 500; margin-bottom: .35rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--grau-hell); border-radius: 8px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--blau) 30%, transparent);
  border-color: var(--blau);
}
.form-hint { font-size: .9rem; color: var(--grau); }
.hp-feld { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Kontakt-Karten ---------- */
.contact-cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-card { background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.contact-card h2, .contact-card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.contact-card p { margin: 0; color: var(--grau); }
.contact-card a { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cbe8; margin-top: auto; }
.site-footer__poly { height: 90px; background: url("/assets/img/poly-band.svg") top center / cover no-repeat; transform: scaleY(-1); }
.site-footer__grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  padding-block: 2.8rem 2.4rem;
}
.site-footer__brand img { width: 150px; margin-bottom: 1rem; }
.site-footer__brand p { font-size: .95rem; }
.site-footer__claim { font-family: var(--mono); color: var(--blau-hell); letter-spacing: .06em; }
.site-footer h2 {
  font-size: .85rem; text-transform: uppercase; letter-spacing: .14em;
  color: #fff; font-family: var(--mono); font-weight: 400; margin-bottom: .9em;
}
.site-footer h2::before { content: "+ "; color: var(--rot); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: #c3cbe8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { margin-bottom: .8em; }
.site-footer__bottom { border-top: 1px solid var(--navy-line); }
.site-footer__bottom-row {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between;
  padding-block: 1.1rem; font-size: .9rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 1.4rem; padding: 0; margin: 0; }

/* ---------- Diverses ---------- */
.download-tile {
  display: flex; gap: 1.1rem; align-items: center;
  background: #fff; border: 1px solid var(--grau-hell); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; text-decoration: none; color: var(--ink);
  transition: border-color var(--dur), box-shadow var(--dur);
  max-width: 33rem;
}
.download-tile:hover { border-color: var(--blau); box-shadow: var(--shadow); color: var(--ink); }
.download-tile__icon {
  flex: 0 0 auto; width: 3rem; height: 3rem; border-radius: 8px;
  background: var(--rot); color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: .8rem;
}
.download-tile strong { display: block; }
.download-tile span { color: var(--grau); font-size: .92rem; }

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
