/* Dudeks-IT – Stylesheet
   Konzept: Seekarte. Kühles Kartenpapier, tiefes Navy, Tiefenlinien,
   Tonnen-Gelb nur als Signal (Logo-Punkt, Fokus, Markierung). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper:   #F2F4F3;
  --surface: #E7EDEE;
  --ink:     #13283B;
  --depth:   #2C5878;
  --muted:   #4A5F70;
  --rule:    #C3D2D8;
  --contour: #A9C1CC;
  --contour-major: #7E9FB0;
  --signal:  #E3A21A;
  --radius: 3px;
  --wrap: 72rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #0E1F2E;
    --surface: #142A3C;
    --ink:     #E6EEF1;
    --depth:   #9DC0D2;
    --muted:   #A3B6C2;
    --rule:    #24405A;
    --contour: #1F3A51;
    --contour-major: #2D5170;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

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

a { color: inherit; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--depth); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 48rem) { .wrap { padding-inline: 2rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Typo ---------- */
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 650; }
.display {
  font-variation-settings: "wdth" 125;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
}
h2.section-title {
  font-variation-settings: "wdth" 125;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  letter-spacing: -.015em;
  margin-bottom: 1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; margin: 1rem 0 0; }
p { max-width: 65ch; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; font-size: 1.2rem; font-variation-settings: "wdth" 125; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1) hue-rotate(180deg) brightness(1.15); } }

.nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.nav-mobile { display: none; }
@media (max-width: 47.99rem) {
  .nav { display: none; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary { list-style: none; cursor: pointer; font-weight: 600; padding: .4rem .2rem; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile ul { position: absolute; right: 0; top: 2.4rem; list-style: none; margin: 0; padding: .5rem 0; background: var(--paper); border: 1px solid var(--rule); min-width: 12rem; z-index: 5; }
  .nav-mobile a { display: block; padding: .55rem 1rem; text-decoration: none; }
}

/* ---------- Hero / Seekarte ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-chart path { stroke: var(--contour); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-chart path.m { stroke: var(--contour-major); stroke-width: 1.6; }
.hero::after { /* Text lesbar halten: Karte links ausblenden */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 38%, color-mix(in srgb, var(--paper) 30%, transparent) 75%, transparent 100%);
}
@media (max-width: 47.99rem) {
  .hero::after { background: linear-gradient(180deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 82%, transparent) 70%, color-mix(in srgb, var(--paper) 45%, transparent) 100%); }
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); max-width: 13ch; }
.hero .lead { color: var(--ink); opacity: .82; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.5rem; align-items: center; margin-top: 2.25rem; }

.position {
  position: absolute; z-index: 1; right: 7%; bottom: 18%;
  display: flex; align-items: center; gap: .55rem;
  font-size: .9rem; font-weight: 600; color: var(--depth);
  font-variant-numeric: tabular-nums;
}
.position::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 28%, transparent); }
@media (max-width: 47.99rem) { .position { right: 1.25rem; bottom: 1.1rem; font-size: .8rem; } .hero .wrap { padding-bottom: 5rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.4rem;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; border-radius: var(--radius);
  border: 2px solid var(--ink);
}
.btn:hover { background: var(--depth); border-color: var(--depth); color: var(--paper); }
.link-quiet { font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head p { margin: 0; color: var(--muted); }

/* Leistungen: Zeilen statt Karten */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.service { display: grid; gap: .75rem 3rem; padding-block: 2rem; border-bottom: 1px solid var(--rule); }
@media (min-width: 56rem) { .service { grid-template-columns: 19rem 1fr; } }
.service h3 { font-size: 1.35rem; font-variation-settings: "wdth" 112; }
.service p { margin: 0 0 .9rem; }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.service li { margin-bottom: .25rem; }
.service li::marker { color: var(--depth); }
.tech { margin-top: .9rem !important; font-size: .92rem; color: var(--muted); }

.service--sea { background: var(--surface); margin-inline: calc(-1 * clamp(1rem, 2vw, 1.5rem)); padding-inline: clamp(1rem, 2vw, 1.5rem); }

/* Arbeitsweise: echte Abfolge */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-variation-settings: "wdth" 125; font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--depth); margin-bottom: .75rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Praxis */
.cases { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .cases { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.case { border-left: 3px solid var(--signal); padding-left: 1.4rem; }
.case h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.case p { margin: 0 0 .8rem; }
.case .facts { font-size: .92rem; color: var(--muted); margin: 0; }

/* Über mich */
.about { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .about { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }
.about-figures { display: grid; gap: 1.5rem; margin: 0; }
.about-figures div { border-top: 1px solid var(--rule); padding-top: .9rem; }
.about-figures dt { font-variation-settings: "wdth" 125; font-weight: 700; font-size: 2rem; line-height: 1.1; }
.about-figures dd { margin: .2rem 0 0; color: var(--muted); }

/* Kontakt */
.contact { background: var(--ink); color: var(--paper); }
.contact .section-title { color: var(--paper); }
.contact .lead { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.contact-grid { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-grid div { border-top: 1px solid color-mix(in srgb, var(--paper) 30%, transparent); padding-top: 1rem; }
.contact-grid h3 { font-size: .95rem; font-weight: 600; opacity: .75; margin-bottom: .35rem; }
.contact-grid a, .contact-grid p { font-size: 1.2rem; font-weight: 600; margin: 0; }
.contact a:hover { color: var(--signal); }
@media (prefers-color-scheme: dark) { .contact { background: #071521; color: var(--ink); } .contact .section-title { color: var(--ink); } .contact .lead { color: var(--muted); } }

/* Footer */
.site-footer { padding-block: 2rem; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 7vw, 5rem); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .6rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { max-width: 70ch; }
.todo { background: color-mix(in srgb, var(--signal) 35%, transparent); padding: 0 .25em; border-radius: 2px; }

/* Sprachumschalter */
.header-right { display: flex; align-items: center; gap: 1.75rem; }
.lang { font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid var(--rule); padding: .2rem .55rem; border-radius: var(--radius); }
.lang:hover { border-color: var(--depth); }
@media (max-width: 47.99rem) { .header-right { gap: 1rem; } }

/* Direkter Kontakt (Band unter dem Hero) */
.direct { background: var(--surface); border-bottom: 1px solid var(--rule); }
.direct .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; padding-block: 1.6rem; }
.direct-claim { margin: 0; font-weight: 600; font-size: 1.1rem; max-width: 36em; }
.direct-channels { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.direct-channels a, .direct-channels span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; background: var(--paper); }
.direct-channels a:hover { border-color: var(--depth); color: var(--depth); }
@media (min-width: 48rem) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
