/* ==========================================================================
   Solvemo GmbH – Landingpage
   --------------------------------------------------------------------------
   Aufbau: 1. Schrift  2. Farben & Maße  3. Basis  4. Startseite
           5. Fußleiste  6. Rechtliche Seite  7. Mobil  8. Barrierefreiheit
   ========================================================================== */


/* 1. Schrift – lokal gehostet (DSGVO: keine Verbindung zu Google) --------- */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;          /* variable Schrift: alle Stärken in einer Datei */
  font-style: normal;
  font-display: swap;
}


/* 2. Farben & Maße -------------------------------------------------------- */

:root {
  /* Farben */
  --bg:        #172B14;   /* Tannengrün, Hintergrund */
  --lime:      #C6E25A;   /* Firmenname */
  --white:     #FFFFFF;   /* Name, Kontaktwerte */
  --soft:      #C9D6C4;   /* Funktionen */
  --muted:     #8FA88A;   /* kleine Überschriften in der Fußleiste */
  --rule:      #34502F;   /* Trennlinie */

  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Seitenränder */
  --pad-x: clamp(24px, 8.125vw, 104px);
  --pad-top: clamp(32px, 5vw, 64px);
  --pad-bottom: clamp(32px, 4.375vw, 56px);

  /*
    TEXTBLOCK-MASSSTAB
    Alle Schriftgrößen im Kopfblock hängen an EINER Einheit (--u).
    Dadurch enden „Solvemo“, die Namenszeile und die Zeile
    „…Sachverständiger“ links und rechts auf derselben Kante –
    bei jeder Bildschirmbreite. Die Verhältnisse NICHT einzeln ändern,
    sonst stimmen die Kanten nicht mehr. Größer/kleiner: nur --u anpassen.
    Referenz: bei 1280 px Breite ist --u = 1px.
  */
  --u: min(1px, 0.078125vw);

  --logo-w: calc(359 * var(--u));   /* Logo = exakt so hoch wie der Textblock */
}


/* 3. Basis ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--lime); }

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

address { font-style: normal; }


/* 4. Startseite ----------------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  display: flex;
  flex-direction: column;
}

.hero {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(48 * var(--u));
  padding-block: 48px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: calc(28 * var(--u));
}

.hero__company {
  margin: 0;
  height: calc(147.59 * var(--u));   /* Höhe der bisherigen Textzeile, Layout darunter bleibt unverändert */
}

/*
  Wortmarke „Solvemo™“ als SVG (Original-Typografie, Leuchtgrün).
  Breite = Textblockbreite: linke Kante wie bisher (5 u Vorlauf des „S“),
  rechte Kante (Ende des ™) exakt auf der Kante der Namens- und
  Qualifikationszeilen. Oberkante des „S“ auf gleicher Höhe wie die
  Logo-Oberkante.
*/
.hero__company img {
  display: block;
  width: calc(584.5 * var(--u));
  height: auto;
  margin-left: calc(5 * var(--u));
  margin-top: calc(15.6 * var(--u));
  max-width: none;
}

.hero__person {
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
}

.hero__name {
  margin: 0;
  padding-left: 0.087em;          /* optischer Randausgleich D ↔ S */
  font-size: calc(34.5 * var(--u));
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.0145em;
  white-space: nowrap;
}

.hero__role,
.hero__qualifications {
  margin: 0;
  padding-left: 0.2em;            /* optischer Randausgleich */
  font-size: calc(20 * var(--u));
  line-height: 1.65;
  font-weight: 300;
  color: var(--soft);
  white-space: nowrap;
}

.hero__qualifications {
  margin-top: calc(4 * var(--u)); /* kleiner Abstand: Rolle ↔ Qualifikationen */
}

.hero__qualifications span { display: block; }

.hero__mark {
  flex-shrink: 0;
  width: var(--logo-w);
  margin-top: calc(7 * var(--u)); /* optischer Ausgleich auf Versal- und Grundlinie */
}
.hero__mark img { width: 100%; }


/* 5. Fußleiste ------------------------------------------------------------ */

.contact {
  display: grid;
  /* letzte Spalte beginnt exakt an der linken Kante des Logos */
  grid-template-columns: repeat(3, minmax(0, 1fr)) var(--logo-w);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.contact__value {
  font-size: 16px;
  line-height: 1.5;
}


/* 6. Rechtliche Seite (Impressum & Datenschutz) --------------------------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--pad-top) 24px 96px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--soft);
}

.legal h1 {
  margin: 40px 0 8px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--lime);
}

.legal h2 {
  margin: 56px 0 12px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.legal h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.legal p,
.legal li,
.legal dd {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--soft);
}

.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }

.legal dl {
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  gap: 6px 24px;
  margin: 0;
}
.legal dt { font-size: 15px; line-height: 1.8; color: var(--muted); }
.legal dd { margin: 0; }

.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.legal a:hover { text-decoration-color: currentColor; }

.legal__note {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 14px !important;
  color: var(--muted) !important;
}


/* 7. Tablet & Mobil ------------------------------------------------------- */

@media (max-width: 960px) {
  :root {
    /*
      Im Hochformat füllt der Textblock die Inhaltsbreite
      (max. 600 px). Referenz: 342 px Breite → „Solvemo“ = 96 px.
    */
    --w: min(100vw - 48px, 600px);
    --u: calc(var(--w) / 585);
  }

  .page { padding-inline: 24px; }

  .hero {
    flex-direction: column-reverse;   /* Logo über dem Text */
    align-items: flex-start;
    justify-content: flex-start;
    gap: 36px;
    padding-block: 8px 48px;
  }

  .hero__mark {
    width: clamp(120px, 38vw, 180px);
    margin-top: 0;
  }

  /* Die lange Sachverständigen-Zeile darf umbrechen – Lesbarkeit vor Kante */
  .hero__role,
  .hero__qualifications {
    font-size: 16px;
    line-height: 1.6;
    white-space: normal;
    padding-left: 0.125em;
  }
  .hero__qualifications { margin-top: 2px; }

  .contact {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 24px;
  }

  .contact__value { font-size: 17px; }

  /* Tippbare Flächen mind. 44 px */
  .contact a.contact__value {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 12px; }
}


/* 8. Barrierefreiheit ----------------------------------------------------- */

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
