/* Alles Informatik – Stylesheet
   Schriften liegen lokal im Ordner /fonts (keine Verbindung zu Google o. Ä.). */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/BricolageGrotesque-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("fonts/InstrumentSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("fonts/InstrumentSans-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("fonts/InstrumentSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f5f4;
  --paper-2: #e6ecea;
  --white: #ffffff;
  --ink: #1c2320;
  --muted: #505451;
  --line: #cfd9d8;
  --petrol: #26302c;
  --petrol-2: #138a52;
  --signal: #1dbf73;
  --signal-ink: #062615;
  --ok: #1f7a4d;
  --error: #b3261e;

  --font-display: "Bricolage", "Instrument", system-ui, sans-serif;
  --font-text: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-underline-offset: 3px; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; }

p { margin: 0; }

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); }
.btn-primary:hover { background: #3fd38b; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
/* Logo sitzt rechts, Navigation links */
.brand { display: flex; align-items: center; text-decoration: none; order: 2; margin-left: auto; }
.nav, .nav-toggle { order: 1; }
.brand img { height: 40px; width: auto; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand-text span { color: var(--petrol-2); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--muted);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav .btn { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .btn { margin-top: 16px; justify-content: center; min-height: 48px; }
  .brand img { height: 34px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 12em; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }

.netplan { width: 100%; height: auto; }
.netplan .cable { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.netplan .cable-core { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; opacity: 0.35; }
.netplan .radio { fill: none; stroke: var(--petrol-2); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.netplan .node { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.netplan .node-main { fill: var(--ink); stroke: var(--ink); }
.netplan .cloud { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.netplan text { font-family: var(--font-text); font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.netplan .node-main + text { fill: var(--white); }
.netplan .small { font-size: 13px; font-weight: 400; fill: var(--muted); }
.netplan .port { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }

/* Ein einziger Moment Bewegung: Datenimpulse laufen beim Laden einmal durchs Netz */
.netplan .pulse {
  fill: none;
  stroke: var(--petrol);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 600;
  stroke-dashoffset: 14;
  opacity: 0;
  animation: pulse 1.5s cubic-bezier(.45,.05,.55,.95) forwards;
}
.netplan .p1 { animation-delay: 0.3s; }
.netplan .p2 { animation-delay: 0.9s; }
.netplan .p3 { animation-delay: 1.5s; }
@keyframes pulse {
  0% { opacity: 1; stroke-dashoffset: 14; }
  92% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -260; }
}
@media (prefers-reduced-motion: reduce) { .netplan .pulse { display: none; } }

/* Original-Logo rechts im Banner */
.hero-logo { margin: 0; justify-self: end; width: 100%; max-width: 540px; }
.hero-logo img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .hero-logo { justify-self: start; max-width: 360px; margin-top: 8px; }
}

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 40em; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }

/* Leistungen: drei Bereiche nebeneinander, getrennt durch grüne Kabel-Linien */
.services { background: var(--white); border-block: 1px solid var(--line); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.service { padding: 8px clamp(20px, 2.6vw, 40px); }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 3px solid var(--signal); }
.service h3 { font-size: clamp(1.25rem, 1.55vw, 1.4rem); }
.service-for { margin-top: 6px; color: var(--muted); font-style: italic; }
.service p.desc { margin-top: 18px; max-width: 32em; }
.service ul { list-style: none; margin: 26px 0 0; padding: 0; }
.service li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
}
.service li:last-child { border-bottom: 1px solid var(--line); }
.service li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--signal);
  border: 1.5px solid var(--ink);
}

@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 0 0 48px; }
  .service + .service { border-left: 0; border-top: 3px solid var(--signal); padding-top: 48px; }
  .service:last-child { padding-bottom: 0; }
}

/* Ablauf: echte Reihenfolge, deshalb nummeriert */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 700 1.15rem/1 var(--font-display);
}
.step::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 56px;
  right: calc(-1 * clamp(20px, 3vw, 32px) + 12px);
  height: 3px;
  background: var(--signal);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 10px; color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-top: 0; padding-left: 64px; min-height: 44px; }
  .step::after {
    top: 52px; left: 21px; right: auto; bottom: -32px; width: 3px; height: auto;
  }
  .step:nth-child(2)::after { display: block; }
  .step:last-child::after { display: none; }
}

/* Über mich */
.about { background: var(--paper-2); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.about-text p + p { margin-top: 18px; }
.about-text h2 { margin-bottom: 24px; }
/* Fotorahmen greift die Kästchen aus dem Logo auf: grauer Rahmen, weißer Innenrand */
.about-photo {
  margin: 0;
  max-width: 400px;
  padding: 8px;
  background: var(--white);
  border: 6px solid var(--muted);
  border-radius: 22px;
}
.about-photo img { width: 100%; height: auto; border-radius: 12px; }
.facts { margin: 32px 0 0; display: grid; gap: 0; }
.facts div { padding: 16px 0; border-top: 1px solid #b9c7c5; }
.facts div:last-child { border-bottom: 1px solid #b9c7c5; }
.facts dt { font-size: 0.92rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }

@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */

.contact { background: var(--petrol); color: #e9efec; }
.contact h2 { color: var(--white); }
.contact .lead { color: #b7c4bd; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-info { margin-top: 36px; font-style: normal; line-height: 1.7; }
.contact-info strong { color: var(--white); }
.contact-info a { color: var(--white); }

.form {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
}
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid #a9b8b7;
  border-radius: 8px;
  padding: 11px 13px;
  min-height: 48px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field textarea::placeholder { color: #7d8984; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(29, 191, 115, 0.5);
}
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--petrol); }
.consent a { color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-hint { font-size: 0.9rem; color: var(--muted); }

.notice {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.notice[hidden] { display: none; }
.notice-ok { background: #e3f3ea; color: var(--ok); border: 1.5px solid #9fd2b5; }
.notice-error { background: #fbe9e7; color: var(--error); border: 1.5px solid #ecb3ad; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */

.site-footer { background: #161b19; color: #b8c4c9; font-size: 0.95rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 28px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Rechtstexte ---------- */

.legal { padding-block: clamp(48px, 7vw, 88px); }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; font-family: var(--font-text); }
.legal p, .legal ul { margin: 0 0 14px; max-width: 42em; }
.legal ul { padding-left: 1.2em; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 700; }
