/* its-coop.de, Kooperation IT-Solutions Robin Wolff & IT-Solutions Jan Pusztai */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* Farben: light-dark() folgt color-scheme. Ohne Auswahl gilt die Systemeinstellung,
   data-theme auf <html> überschreibt sie (gesetzt über den Umschalter im Header). */
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #141516);
  --bg-alt: light-dark(#f5f5f3, #1b1c1e);
  --ink: light-dark(#1a1c1e, #e4e5e6);
  --muted: light-dark(#5b6066, #9ba0a5);
  --line: light-dark(#dedfe0, #2e3134);
  --rwo: light-dark(#1d7a44, #57c487);
  --jp: light-dark(#b0560e, #e8a052);
  --focus: light-dark(#1d6fd1, #6aa8f0);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 70rem;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }
.muted { color: var(--muted); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 0.5rem 0.75rem;
}
.skip:focus { left: 0.5rem; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; height: 3.75rem; }
.brand {
  display: flex; align-items: center; gap: 0.55rem; margin-right: auto;
  font-weight: 600; font-size: 1.125rem; text-decoration: none;
}
.nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

.theme-toggle, .nav-toggle {
  display: grid; place-items: center; height: 2.25rem; min-width: 2.25rem;
  background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 0.875rem; cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; }
.theme-toggle .sun,
.theme-toggle[aria-pressed="true"] .moon { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }
.nav-toggle { display: none; padding: 0 0.7rem; }

@media (max-width: 48rem) {
  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; inset: 3.75rem 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; padding: 0.25rem 0 0.75rem; }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 0.75rem 0; font-size: 1rem; color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.65rem 1.1rem; border: 0; border-radius: 3px;
  background: var(--ink); color: var(--bg);
  font: inherit; font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
}
.btn:hover { opacity: 0.85; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem); }
.hero h1 {
  max-width: 23em;
  font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.18; letter-spacing: -0.015em;
}
.hero h1 span {
  text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.14em;
}
.hero h1 .rwo { text-decoration-color: var(--rwo); }
.hero h1 .jp { text-decoration-color: var(--jp); }
.lead { max-width: 60ch; margin-top: 1.5rem; font-size: 1.1875rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; font-size: 0.9375rem; }

/* ---------- Abschnitte: Überschrift links, Inhalt rechts ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section > .wrap { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem 3.5rem; }
.section h2 { position: sticky; top: 5.5rem; align-self: start; font-size: 1.3rem; line-height: 1.3; }
@media (max-width: 56rem) {
  .section > .wrap { grid-template-columns: 1fr; }
  .section h2 { position: static; font-size: 1.5rem; }
}
.intro { max-width: 62ch; margin-bottom: 2.5rem; }
.note { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Partner ---------- */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
@media (max-width: 44rem) { .partners { grid-template-columns: 1fr; } }
.partner { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.1rem; border-top: 3px solid; }
.partner.rwo { border-color: var(--rwo); }
.partner.jp { border-color: var(--jp); }
.partner h3 { font-size: 1.3rem; line-height: 1.25; }
.partner-meta { margin-top: -0.5rem; font-size: 0.9375rem; color: var(--muted); }
.partner p:not(.partner-meta) { font-size: 0.975rem; }
.partner dl {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.3rem 1rem;
  margin: 0.4rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.9375rem;
}
.partner dt { color: var(--muted); }
.partner dd { margin: 0; }

/* ---------- Leistungen ---------- */
.services { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.services th, .services td {
  padding: 0.85rem 1.25rem 0.85rem 0; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.services thead th { padding-top: 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-color: var(--ink); }
.services tbody th { width: 12.5rem; font-weight: 600; }
.services td:nth-child(2) { color: var(--muted); }
.services td:last-child { padding-right: 0; white-space: nowrap; }
.who::before {
  content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem;
  border-radius: 50%; vertical-align: 0.05em;
}
.who.rwo::before { background: var(--rwo); }
.who.jp::before { background: var(--jp); }

@media (max-width: 40rem) {
  .services thead { display: none; }
  .services tr {
    display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem;
    padding: 0.85rem 0; border-bottom: 1px solid var(--line);
  }
  .services th, .services td { width: auto; padding: 0; border: 0; }
  .services td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .services td:last-child { grid-column: 2; grid-row: 1; font-size: 0.875rem; }
}

/* ---------- Zusammenarbeit ---------- */
.faq { display: grid; gap: 1.75rem; max-width: 62ch; margin: 0; }
.faq dt { font-weight: 600; }
.faq dd { margin: 0.3rem 0 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
form.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; max-width: 44rem; }
form.contact .full { grid-column: 1 / -1; }
@media (max-width: 36rem) { form.contact { grid-template-columns: 1fr; } }
label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; }
label .muted { font-weight: 400; }
input, select, textarea {
  width: 100%; padding: 0.6rem 0.7rem;
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 9rem; resize: vertical; }
form.contact .note { margin-top: 0; }

/* ---------- Fernwartung ---------- */
.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.prose { display: grid; gap: 1rem; max-width: 62ch; }
.prose .note { margin-top: 0.25rem; }
.steps { max-width: 62ch; margin: 0 0 2rem; padding-left: 1.25rem; }
.steps li + li { margin-top: 0.4rem; }
.steps li::marker { color: var(--muted); }
code { font: 0.9375rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.config { width: 100%; max-width: 44rem; border-collapse: collapse; font-size: 0.975rem; }
.config th, .config td {
  padding: 0.75rem 1.25rem 0.75rem 0; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: middle;
}
.config tr:first-child > * { border-top: 1px solid var(--ink); }
.config th { width: 8.5rem; font-weight: 600; white-space: nowrap; }
.config td:last-child { width: 1%; padding-right: 0; text-align: right; }
.config .key { word-break: break-all; }
.copy {
  padding: 0.3rem 0.65rem; background: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 0.8125rem; white-space: nowrap; cursor: pointer;
}
.copy:hover { border-color: var(--muted); }
.copy.done { color: var(--rwo); border-color: currentColor; }
@media (max-width: 36rem) {
  .config tr { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .config tr:first-child { border-top: 1px solid var(--ink); }
  .config th, .config td { width: auto; padding: 0; border: 0 !important; }
  .config td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .config td:last-child { grid-column: 2; grid-row: 1; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 3rem; background: var(--bg-alt); border-top: 1px solid var(--line); font-size: 0.875rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 1.25rem 2.5rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-footer .muted { flex-basis: 100%; }
a[href^="tel:"] { white-space: nowrap; }
