/* =====================================================================
   atcom-it · EDV-Systemintegration  —  Stylesheet
   ---------------------------------------------------------------------
   Aufgebaut mit CSS-Variablen. Wenn du Farben, Abstände oder Schrift
   ändern willst, passe einfach die Werte unter ":root" an – sie gelten
   dann automatisch auf allen Seiten.
   ===================================================================== */

:root {
  /* --- Farben (aus dem Logo abgeleitet) --- */
  --blue:        #1416EF;   /* Logo-Blau, Leitfarbe        */
  --blue-dark:   #0E10B8;   /* dunkler für Hover           */
  --ink:         #0B0B14;   /* Schriftfarbe (fast schwarz) */
  --muted:       #56586B;   /* gedämpfter Text             */
  --bg:          #FFFFFF;   /* Hintergrund                 */
  --bg-soft:     #F4F5FB;   /* zarter blau-grauer Block    */
  --line:        #E5E6F1;   /* Linien / Rahmen             */
  --tint:        rgba(20, 22, 239, .06); /* Blau-Schleier  */

  /* --- Typografie --- */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;

  /* --- Layout --- */
  --max:   1120px;   /* maximale Inhaltsbreite */
  --radius: 18px;    /* Rundung von Karten/Buttons */
}

/* --- Grundlagen ---------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(16px, 1.05vw, 18px);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* Barrierefreiheit: Sprung-Link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* --- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* --- Kopfzeile / Navigation --------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.nav .logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-phone {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--blue); color: #fff; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
}
.nav-phone:hover { background: var(--blue-dark); text-decoration: none; }

/* --- Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 110px);
  background:
    radial-gradient(60% 80% at 85% -10%, var(--tint), transparent 60%),
    var(--bg);
}
/* schräges Akzent-Element – greift die Diagonalschnitte des Logos auf */
.hero::after {
  content: ""; position: absolute; right: -120px; top: -60px;
  width: 360px; height: 360px; background: var(--blue);
  opacity: .05; transform: rotate(15deg);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--blue); transform: skewX(-20deg); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.02; max-width: 16ch;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 56ch; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { margin-top: 26px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* --- Abschnitte allgemein ----------------------------------------- */
section { padding-block: clamp(56px, 8vw, 96px); }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
h2 + p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }

/* --- Leistungs-Karten --------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 18px 40px -22px rgba(20,22,239,.35); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); margin-bottom: 20px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* --- OS-Leiste ----------------------------------------------------- */
.os-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 34px;
  margin-top: 44px; padding: 22px; border-top: 1px dashed var(--line);
  font-weight: 700; color: var(--ink);
}
.os-strip span.label { color: var(--muted); font-weight: 600; }
.os-strip .os { display: inline-flex; align-items: center; gap: .5em; }
.os-strip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }

/* --- Zielgruppen-Band --------------------------------------------- */
.band { text-align: center; }
.band p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; max-width: 24ch; margin-inline: auto; }
.band p .accent { color: var(--blue); }

/* --- Fernwartung --------------------------------------------------- */
.remote-box {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 26px; padding: clamp(30px, 5vw, 56px);
}
.remote-box h2 { color: #fff; }
.remote-box p { color: #c8c9da; margin-top: 14px; }
.remote-box .download { display: flex; flex-direction: column; gap: 14px; }
.remote-box .btn-primary { background: var(--blue); }
.remote-box .btn-primary:hover { background: #fff; color: var(--blue); }
.remote-box small { color: #9a9bb2; line-height: 1.5; }

/* --- Über ---------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.about .portrait {
  aspect-ratio: 1 / 1; border-radius: 24px; background: var(--tint);
  display: grid; place-items: center; padding: 30px;
}
.about .portrait img { width: 100%; max-width: 320px; }
.about p { color: var(--muted); font-size: 1.1rem; }
.about p strong { color: var(--ink); }

/* --- Kontakt ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card .k { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; }
.contact-card .v a { color: var(--ink); }
.contact-card .v a:hover { color: var(--blue); text-decoration: none; }
.contact-card address { font-style: normal; font-size: 1.15rem; line-height: 1.7; margin-top: 8px; font-weight: 600; }

/* --- Fußzeile ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-block: 34px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row .logo img { height: 30px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--blue); }
.footer-copy { color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* --- Rechtstext-Seiten (Impressum / Datenschutz) ------------------- */
.legal { padding-block: clamp(48px, 7vw, 84px); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; margin-top: 38px; margin-bottom: 10px; }
.legal h3 { font-size: 1.1rem; margin-top: 24px; margin-bottom: 8px; font-weight: 700; }
.legal p, .legal li { color: #33344a; margin-bottom: 12px; max-width: 75ch; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal .back { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; margin-bottom: 30px; }
.legal .note {
  background: var(--tint); border-left: 4px solid var(--blue);
  padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 10px 0 22px;
  color: var(--ink); font-size: .96rem;
}

/* --- Lade-Animation (dezent) -------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- Responsiv ----------------------------------------------------- */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .remote-box { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .portrait { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }   /* auf dem Handy nur Logo + Telefon-Button */
}

/* Nutzer, die wenig Bewegung wünschen */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
