/* ==========================================================================
   Hussmann IT Consulting — Stylesheet
   Farbpalette, Typografie und Layout an einer Stelle.
   Anpassungen an Farben nur in :root nötig.
   ========================================================================== */

:root {
  /* Farben */
  --ink:        #0b1526;   /* Dunkles Navy, Hero und Footer */
  --ink-soft:   #14243d;   /* Abgesetzte dunkle Fläche */
  --ink-line:   #24395a;   /* Linien auf dunklem Grund */
  --paper:      #ffffff;
  --paper-alt:  #f4f6f9;   /* Sehr helles Grau für Wechselsektionen */
  --text:       #16202e;
  --text-muted: #55657b;
  --text-invert:#e8eef7;
  --text-invert-muted: #9db0cb;
  --accent:     #c8873c;   /* Kupfer/Bernstein — technisch, aber warm */
  --accent-soft:#f0e2ce;
  --line:       #dde3ea;

  /* Typografie
     Bewusst nur Systemschriften: keine externe Schriftquelle, also kein
     Datenabfluss an Dritte und keine DSGVO-Diskussion (Stichwort Google
     Fonts, LG München I, 20.01.2022 – 3 O 17493/20).
     Eigene Schrift gewünscht? Schriftdateien nach assets/fonts/ legen,
     @font-face-Regeln ergänzen und den Namen hier vorne einsetzen. */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;

  /* Maße */
  --wrap: 1140px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(11, 21, 38, .06), 0 8px 24px rgba(11, 21, 38, .06);
}

/* --- Reset ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1.1em; }

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .4em; }

/* --- Bausteine ------------------------------------------------------------ */

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

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark { background: var(--ink); color: var(--text-invert); }
.section--dark h2 { color: #fff; }
.section--dark p { color: var(--text-invert-muted); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head { max-width: 900px; margin-bottom: clamp(40px, 5vw, 64px); }  /* war 720px breit */
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.section--dark .section-head p { color: var(--text-invert-muted); }

.lede { font-size: 1.15rem; color: var(--text-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease,
              transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #b3752f; }
.btn--ghost { border-color: var(--ink-line); color: var(--text-invert); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 38, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header.is-solid { background: var(--ink); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: #fff;
  font-weight: 650;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand__name { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; }
.brand__name span { color: var(--text-invert-muted); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--text-invert-muted);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  transition: color .18s ease;
}
.nav__links a:hover { color: #fff; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 2px;
}
.lang a {
  padding: .3em .65em;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-invert-muted);
  border-radius: 2px;
}
.lang a[aria-current="true"] { background: var(--accent); color: #fff; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: #fff;
  padding: .45em .6em;
  cursor: pointer;
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-invert);
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 9vw, 116px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(200, 135, 60, .16), transparent 62%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28));
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 780px; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-invert-muted);
  max-width: 62ch;
  margin-bottom: 2.2em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 28px;
  margin-top: clamp(48px, 7vw, 76px);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  position: relative;
  z-index: 1;
}
.fact__value {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  text-wrap: balance;
  font-weight: 650;
  color: #fff;
  letter-spacing: -.02em;
}
.fact__label {
  font-size: .84rem;
  color: var(--text-invert-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
}

/* --- Leistungskarten ------------------------------------------------------ */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
/* Vier Karten wirken als 2×2 ruhiger als 3 + 1. */
@media (min-width: 880px) {
  .grid--2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card__num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .55em; }
.card p { color: var(--text-muted); font-size: .97rem; margin-bottom: 1.1em; }
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .93rem;
  color: var(--text-muted);
}
.card li {
  position: relative;
  padding-left: 1.15em;
  margin-bottom: .35em;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Profil --------------------------------------------------------------- */

.profile {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
/* Portrait läuft beim Lesen der langen Stationenliste mit */
@media (min-width: 901px) {
  .profile__aside { position: sticky; top: 96px; }
}

.portrait {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: .88rem;
  overflow: hidden;
  /* Sanfter Verlauf als Bühne für das freigestellte Portrait */
  background:
    radial-gradient(120% 80% at 50% 6%, rgba(200, 135, 60, .13), transparent 58%),
    linear-gradient(168deg, #eef1f6 0%, #dde3ec 100%);
}
.portrait > * { padding: 20px; }
.portrait picture, .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}
.portrait img {
  object-fit: cover;
  object-position: 50% 8%;
  /* Weicher Schlagschatten, damit die Freistellung nicht aufgeklebt wirkt */
  filter: drop-shadow(0 18px 26px rgba(11, 21, 38, .18));
}

.timeline { list-style: none; padding: 0; margin: 2.2em 0 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.5em 1.75em;
  border-left: 1px solid var(--line);
  margin: 0;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -4.5px; top: .5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline__when {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.timeline__what { display: block; font-weight: 600; margin-top: .15em; }
.timeline__where {
  display: block;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 60ch;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1.2em 0 0; list-style: none; }
.tags li {
  margin: 0;
  padding: .38em .85em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-muted);
  background: #fff;
}

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

.contact {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list svg { flex: 0 0 20px; margin-top: 3px; color: var(--accent); }
.contact-list .label {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
}
.contact-list a, .contact-list strong {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.contact-list a:hover { color: var(--accent); }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--text-invert-muted);
  padding: 56px 0 40px;
  font-size: .92rem;
  border-top: 1px solid var(--ink-line);
}
.site-footer a { color: var(--text-invert-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--ink-line);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer__links li { margin: 0; }

/* --- Rechtsseiten --------------------------------------------------------- */

.legal { padding: clamp(56px, 8vw, 96px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { margin-bottom: .8em; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-muted); font-size: 1rem; }
.legal .back { display: inline-block; margin-bottom: 2.5em; font-size: .92rem; color: var(--accent); text-decoration: none; font-weight: 600; }

/* --- Platzhalter-Markierung ----------------------------------------------
   Alles, was noch mit echten Inhalten ersetzt werden muss, ist mit
   class="ph" ausgezeichnet. Vor dem Livegang: im Projekt nach "ph" suchen,
   Inhalte ersetzen und die Klasse entfernen.
   -------------------------------------------------------------------------- */

.ph {
  background: rgba(200, 135, 60, .13);
  box-shadow: inset 0 -1px 0 rgba(200, 135, 60, .5);
  border-radius: 2px;
}
body.ph-off .ph { background: none; box-shadow: none; }

/* --- Scroll-Animation ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- Responsiv ------------------------------------------------------------ */

@media (max-width: 900px) {
  .profile, .contact { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portrait { max-width: 320px; aspect-ratio: 3 / 4; }
}

@media (max-width: 720px) {
  .nav__toggle { display: block; order: 3; flex: 0 0 auto; }
  .lang { order: 2; flex: 0 0 auto; }
  .brand { order: 1; min-width: 0; flex: 1 1 auto; }
  .brand__name { font-size: .93rem; }
  .brand__mark { width: 30px; height: 30px; flex-basis: 30px; font-size: .74rem; }
  .nav { gap: 10px; min-height: 64px; }
  .lang a { padding: .28em .5em; font-size: .76rem; }
  .nav__links { order: 4; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav { position: relative; flex-wrap: nowrap; }
  .hero__facts { gap: 22px 20px; }
  body { font-size: 16px; }
}

@media print {
  .site-header, .hero__actions, .nav__toggle { display: none; }
  body { color: #000; }
}
