/* =====================================================================
   core. Consulting & Coaching
   ---------------------------------------------------------------------
   Farben   Dunkelgrau #374145 · Hellgrau #dddfe0
   Schrift  Roboto (variabel 100–900, lokal gehostet, keine Google-Abfrage)
   Skala    Major Third (1.25) – h1 3.815rem … small 0.8rem, xs 0.64rem
            Überschriften fluid per clamp(): Minimum bei 360 px Viewport
            (Minor Third 1.2), Endwert (Vorgabe) ab 1600 px Viewport.
   ===================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Metrik-angepasster Fallback, damit beim Laden nichts springt */
@font-face {
  font-family: "Roboto Fallback";
  src: local("Arial");
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
  size-adjust: 100.3%;
}

:root {
  /* Farben */
  --ink: #374145;
  --paper: #dddfe0;

  /* Typo-Skala Major Third (1.25) – fluid zwischen 22.5rem (360 px) und 100rem (1600 px) */
  --fs-h1: clamp(2.986rem, 2.745rem + 1.070vw, 3.815rem);
  --fs-h2: clamp(2.488rem, 2.324rem + 0.728vw, 3.052rem);
  --fs-h3: clamp(2.074rem, 1.967rem + 0.474vw, 2.441rem);
  --fs-h4: clamp(1.728rem, 1.663rem + 0.290vw, 1.953rem);
  --fs-h5: clamp(1.44rem, 1.404rem + 0.159vw, 1.563rem);
  --fs-h6: clamp(1.2rem, 1.185rem + 0.065vw, 1.25rem);
  --fs-p: 1rem;
  --fs-small: 0.8rem;
  --fs-xs: 0.64rem;

  /* Abstände (Skala √2) */
  --s-2: 0.5rem;
  --s-1: 0.707rem;
  --s0: 1rem;
  --s1: 1.414rem;
  --s2: 1.999rem;
  --s3: 2.827rem;
  --s4: 3.998rem;
  --s5: 5.653rem;
  --s6: 7.993rem;

  --page-pad: clamp(1rem, 4.5vw, 4.5rem);
  --max-width: 100rem;

  --font: "Roboto", "Roboto Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Basis ---------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-p);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5, h6, p, address {
  margin: 0;
}

address {
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Typo-Skala ---------- */

h1, .h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.1;  letter-spacing: -0.015em; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 400; line-height: 1.2;  letter-spacing: -0.01em; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 400; line-height: 1.3; }
h6, .h6 { font-size: var(--fs-h6); font-weight: 400; line-height: 1.45; }
.p      { font-size: var(--fs-p); line-height: 1.5; }
small, .small { font-size: var(--fs-small); line-height: 1.5; letter-spacing: 0.01em; }
.xs     { font-size: var(--fs-xs); line-height: 1.5; }

/* ---------- Hilfsklassen ---------- */

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

.skip-link {
  position: absolute;
  top: -10rem;
  left: var(--page-pad);
  z-index: 10;
  padding: var(--s-1) var(--s0);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-2);
}

/* ---------- Kopf ---------- */

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--s1) var(--page-pad);
}

.site-header__logo {
  display: block;
  width: clamp(8.75rem, 6.6rem + 6vw, 12.5rem);
}

.site-header__logo img {
  width: 100%;
}

.lang {
  display: flex;
  gap: var(--s-2);
  margin-right: calc(var(--s-2) * -1);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang a {
  padding: var(--s-2);
  text-decoration: none;
}

.lang a:hover,
.lang a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* ---------- Startseite: Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: end;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--s2) var(--page-pad) 0;
  overflow: clip; /* clip statt hidden – sonst funktioniert das „sticky“ Porträt nicht */
}

/* h1-Skala wie vorgegeben; unter 360 px zusätzlich an die Breite gekoppelt,
   damit „with substance.“ nicht überläuft */
.hero__claim {
  font-size: var(--fs-h1);
  font-size: min(var(--fs-h1), 13vw);
  overflow-wrap: normal;
}

.hero__claim > span {
  display: block;
}

/* Fokus: Zielgruppe direkt unter dem Claim */
.hero__focus {
  max-width: 17em;
  margin-top: var(--s2);
  font-size: var(--fs-h4);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Jeder Satz der Fokuszeile beginnt auf einer eigenen Zeile */
.hero__focus > span {
  display: block;
}

/* Fließtext der Startseite in h6-Größe, damit er neben dem großen Claim trägt */
.hero__body,
.hero__offer,
.hero__cta {
  max-width: 34rem;
  font-size: var(--fs-h6);
  line-height: 1.55;
}

.hero__body {
  margin-top: var(--s3);
  hyphens: auto;
}

.hero__body p + p {
  margin-top: var(--s1);
}

.hero__offer {
  margin-top: var(--s4);
}

.hero__offer-title {
  margin-bottom: var(--s-1);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero__cta {
  margin-top: var(--s3);
}

.hero__cta .button {
  margin-top: var(--s1);
}

.hero__portrait {
  justify-self: end;
  width: min(88%, 28rem);
  margin-top: var(--s3);
}

.hero__portrait img {
  width: 100%;
}

@media (min-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--s3);
    align-content: stretch;
    padding-top: 0;
  }

  .hero__text {
    align-self: start;
    padding-block: var(--s-1) var(--s5);
  }

  /* Porträt bleibt beim Lesen unten im Bild stehen und landet am Ende
     des Textes auf dem Kontaktband */
  .hero__portrait {
    position: sticky;
    bottom: 0;
    align-self: end;
    width: 100%;
    margin-top: 0;
  }

  .hero__portrait img {
    max-height: calc(100svh - 7.5rem);
    object-fit: contain;
    object-position: right bottom;
  }
}

/* Ein einziger, ruhiger Auftakt: Claim blendet ein, das Porträt steigt aus dem Kontaktband */
@media (prefers-reduced-motion: no-preference) {
  .hero__claim > span {
    animation: claim-in 0.9s var(--ease) both;
  }

  .hero__claim > span + span {
    animation-delay: 0.15s;
  }

  .hero__portrait img {
    animation: portrait-rise 1.2s var(--ease) both;
  }
}

@keyframes claim-in {
  from {
    opacity: 0;
    transform: translateY(0.12em);
  }
}

@keyframes portrait-rise {
  from {
    transform: translateY(6%);
  }
}

/* ---------- Button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 var(--s2);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-p);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.button:hover {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ---------- Fuß: Kontaktband ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  display: grid;
  gap: var(--s5);
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--s4) var(--page-pad) var(--s2);
}

.contact {
  display: grid;
  gap: var(--s1);
  font-size: var(--fs-h6);
  line-height: 1.45;
}

.contact a {
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s1) var(--s2);
}

/* Ab Tablet: Kontaktband im selben Raster wie der Hero (7 : 5) */
@media (min-width: 48rem) {
  .contact,
  .site-footer__base {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--s3);
  }

  .contact__address {
    grid-row: span 2;
  }

  .contact__social {
    grid-column: 2;
  }

  .site-footer__base .legal-nav {
    grid-column: 2;
  }
}

@media (min-width: 64rem) {
  .site-footer__inner {
    padding-top: var(--s5);
  }
}

.site-footer__logo {
  display: block;
  width: clamp(7.5rem, 6.3rem + 4vw, 10rem);
}

.site-footer__logo img {
  width: 100%;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s1);
}

.legal-nav a {
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  text-decoration: underline;
}

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

.legal {
  display: grid;
  gap: var(--s3);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--s3) var(--page-pad) var(--s5);
}

.legal__body {
  max-width: 40rem;
  hyphens: auto;
}

.legal__body > * + * {
  margin-top: var(--s1);
}

/* Nummerierte Abschnitte der Rechtstexte */
.legal__body > h2 {
  margin-top: var(--s3);
  font-size: var(--fs-h6);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.legal__body > h2 + p {
  margin-top: var(--s-2);
}

/* Unterpunkte in Rechtstexten (z. B. Server-Logfiles, Widerspruchsrecht) */
.legal__body > h3 {
  margin-top: var(--s1);
  font-size: var(--fs-p);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.legal__body > h3 + p {
  margin-top: 0;
}

.legal__body ul {
  margin-bottom: 0;
  padding-left: 1.25em;
}

.legal__body > p + ul {
  margin-top: var(--s-2);
}

.legal__label {
  font-weight: 500;
}

.legal__body > .legal__note {
  margin-top: var(--s4);
}

@media (min-width: 64rem) {
  .legal {
    padding-top: var(--s4);
  }
}

/* Ab 1280 px: Textspalte im selben 7 : 5-Raster wie Porträt und Kontaktdaten */
@media (min-width: 80rem) {
  .legal {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--s3);
  }

  .legal__title {
    grid-column: 1 / -1;
  }

  .legal__body {
    grid-column: 2;
  }
}

/* ---------- Grafitecture-Feld (Impressum, Datenschutz) ----------
   Unverändert aus grafitecture/lannee_webseite, kit/grafitecture-credit/
   grafitecture-credit.css (Kopie unter kit/grafitecture-credit/). Eigene
   Farben und Größe des Feldes: bewusste Ausnahme von --ink/--paper, hier
   nichts anpassen – Änderungen nur im Kit. */

/*
 * Grafitecture-Feld · Kit v1.2 (31.10.2026)
 * ------------------------------------------------------------------------
 * Ein Feld in Grafitecture-Lime #dafd55 mit Logo, Slogan „Marken mit KI.“ und
 * Link auf https://www.grafitecture.de/ (neues Fenster). Für jede Website, die
 * Grafitecture entworfen hat, technisch betreut und weiterentwickelt.
 * Platz: immer ganz unten in Impressum und Datenschutz.
 *
 * Farben nach den Regeln von grafitecture.de: Fläche Lime #dafd55 im vollen Ton,
 * Schrift und Logo #435960 (6,4 : 1), Linien auf der Fläche weiß, beim Darüber-
 * fahren werden Logo und Link weiß. Eckig, nichts unterlegt.
 *
 * Bewusst unabhängig von der Website, in der das Feld steht: eigene Farben, eigene
 * Abstände (Container-Einheiten, das Feld richtet sich nach seiner eigenen Breite),
 * Selektoren mit zwei Klassen, damit Regeln wie `.legal p + p` nicht durchschlagen.
 * Schrift: die Textschrift der Website (`--gt-credit-font` zum Überschreiben).
 * Kein Skript, kein Inline-Style, keine externen Requests (CSP `'self'` genügt).
 *
 * Stellschrauben (optional, auf .gt-credit oder einem Elternelement setzen):
 *   --gt-credit-font   Schrift            (Standard: geerbt)
 *   --gt-credit-space  Abstand nach oben  (Standard: 4rem)
 *   --gt-credit-max    größte Breite      (Standard: 25.2rem = 403 px; v1.2, vorher 36rem, davor volle Spaltenbreite)
 */

.gt-credit {
  --gt-lime: #dafd55;
  --gt-ink: #435960;
  --gt-white: #fff;
  container-type: inline-size;
  position: relative;
  display: block;
  box-sizing: border-box;
  max-width: var(--gt-credit-max, 25.2rem);
  margin: var(--gt-credit-space, 4rem) 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--gt-lime);
  color: var(--gt-ink);
  font-family: var(--gt-credit-font, inherit);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.gt-credit .gt-credit__in {
  padding: 1.5rem;
  padding: clamp(1.25rem, 5.5cqi, 3rem);
}

.gt-credit .gt-credit__by,
.gt-credit .gt-credit__claim,
.gt-credit .gt-credit__go {
  max-width: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* „Entworfen, technisch betreut und weiterentwickelt von“ + Logo: ein Satz */
.gt-credit .gt-credit__lead {
  display: block;
  font-size: 0.9375rem;
  font-size: clamp(0.8125rem, 2.1cqi, 1.0625rem);
  line-height: 1.35;
  text-wrap: balance;
}
.gt-credit .gt-credit__logo {
  display: block;
  margin-top: 0.875rem;
  margin-top: clamp(0.625rem, 2.4cqi, 1.25rem);
  color: var(--gt-ink);
}
.gt-credit .gt-credit__logo svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 2.75rem;
  height: clamp(1.75rem, 8cqi, 3.75rem);
  fill: currentColor;
}

/* Linie (weiß auf Lime), darunter Slogan und Link */
.gt-credit .gt-credit__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
  margin-top: clamp(1.5rem, 6cqi, 3rem);
  padding-top: 0.875rem;
  padding-top: clamp(0.75rem, 2cqi, 1.125rem);
  border-top: 1px solid var(--gt-white);
}
.gt-credit .gt-credit__claim {
  font-size: 1.75rem;
  font-size: clamp(1.25rem, 4.6cqi, 2.618rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.gt-credit .gt-credit__go {
  font-size: 0.9375rem;
  font-size: clamp(0.875rem, 2.1cqi, 1.0625rem);
  font-weight: 500;
  line-height: 1.2;
}

.gt-credit .gt-credit__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--gt-ink);
  font: inherit;
  text-decoration: none;
  outline: none;
}
/* das ganze Feld ist klickbar, ein einziger Link */
.gt-credit .gt-credit__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gt-credit .gt-credit__link:focus-visible::after {
  outline: 2px solid var(--gt-ink);
  outline-offset: -6px;
}
.gt-credit .gt-credit__arrow {
  display: block;
  flex: none;
  width: 1.375em;
  height: auto;
  stroke: currentColor;
}

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

/* Mouse-over wie auf den Lime-Flächen von grafitecture.de: Logo und Link werden weiß */
@media (hover: hover) {
  .gt-credit .gt-credit__logo,
  .gt-credit .gt-credit__link {
    transition: color 0.2s ease;
  }
  .gt-credit .gt-credit__arrow {
    transition: transform 0.2s ease;
  }
  .gt-credit:hover .gt-credit__logo,
  .gt-credit:hover .gt-credit__link {
    color: var(--gt-white);
  }
  .gt-credit:hover .gt-credit__arrow {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gt-credit .gt-credit__logo,
  .gt-credit .gt-credit__link,
  .gt-credit .gt-credit__arrow {
    transition: none;
  }
  .gt-credit:hover .gt-credit__arrow {
    transform: none;
  }
}

/* Hoher Kontrast (Windows): Rahmen statt Fläche */
@media (forced-colors: active) {
  .gt-credit {
    border: 1px solid CanvasText;
  }
  .gt-credit .gt-credit__foot {
    border-top-color: CanvasText;
  }
}
