/* ==========================================================================
   Der Fels in der IT – Stylesheet
   Schriften lokal, keine externen Ressourcen, kein JavaScript.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  --navy: #142f55;
  --navy-light: #1b3a66;
  --navy-dark: #0f2645;
  --wave: #3d6fa5;
  --orange: #f58a33;
  --orange-dark: #d9672a;
  --orange-darker: #b8541f;
  --ink: #1d2533;
  --muted: #5b6575;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 14px;
  --shadow: 0 2px 6px rgba(20, 47, 85, .06), 0 12px 32px rgba(20, 47, 85, .08);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-darker); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  background: var(--orange-dark); color: #fff;
  box-shadow: 0 6px 18px rgba(217, 103, 42, .35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--orange-darker); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(184, 84, 31, .4); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--small { padding: .65em 1.15em; font-size: .95rem; box-shadow: none; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.nav a:not(.btn) { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--orange-dark); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand img { height: 38px; }
  .site-header .wrap { min-height: 62px; }
}

/* Zweite Menüzeile auf kleinen Bildschirmen */
.subnav { display: none; }
@media (max-width: 760px) {
  .subnav {
    display: flex; justify-content: center; gap: 28px;
    border-top: 1px solid var(--line); padding: 9px var(--gutter);
  }
  .subnav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .subnav a:hover { color: var(--orange-dark); }
  [id] { scroll-margin-top: 110px; }
}
@media (min-width: 761px) { [id] { scroll-margin-top: 84px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 55%, var(--navy-dark) 100%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(96px, 12vw, 150px);
}
.eyebrow {
  display: inline-block; margin-bottom: 1.1em;
  color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); color: #d6e0ee; max-width: 36em; }
.hero .motto { color: var(--orange); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 1.8em; }
.hero-actions .note { color: #b9c7da; font-size: .95rem; }
.hero-art { justify-self: end; align-self: end; width: min(100%, 440px); position: relative; z-index: 0;
  margin-bottom: calc(-1 * clamp(96px, 12vw, 150px) + clamp(16px, 2.4vw, 38px)); }
.hero-waves { z-index: 1; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 96px); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: 2; justify-self: center; width: min(70%, 300px); margin-top: 8px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; color: var(--orange-dark); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6em; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; }
.quote {
  margin: 0 0 1.4em; padding: 1.1em 1.3em; border-left: 4px solid var(--orange);
  background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; font-weight: 600; color: var(--navy);
}
.quote footer { margin-top: .4em; font-size: .92rem; font-weight: 400; color: var(--muted); }
.signature { font-weight: 700; color: var(--navy); }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

/* ---------- Leistungen ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { width: 88px; height: 88px; margin-bottom: 18px; }
.card h3 { hyphens: manual; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards { grid-template-columns: 1fr; } .card { flex-direction: row; gap: 18px; align-items: flex-start; } .card img { width: 64px; height: 64px; flex: none; margin: 0; } }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); counter-reset: step; }
.steps li { position: relative; padding: 24px 24px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Abschluss-CTA ---------- */
.cta { background: var(--navy); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: #d6e0ee; max-width: 36em; margin: 0 auto 1.6em; font-size: 1.1rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy-dark); color: #b9c7da; font-size: .95rem; padding: 40px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.site-footer a.social img { width: 36px; height: auto; transition: opacity .2s ease, transform .2s ease; }
.site-footer a.social:hover img { opacity: .8; transform: translateY(-1px); }
.footer-brand strong { color: #fff; display: block; font-size: 1.05rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal address { font-style: normal; }
.legal .stand { color: var(--muted); font-size: .92rem; margin-top: 2.4em; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .hero-waves, .btn, .cta { display: none !important; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lead { color: #000; }
}

@media (max-width: 480px) {
  .site-footer nav { gap: 10px 14px; }
  .site-footer a.social img { width: 34px; }
}
