/* Tromm Holding GmbH – site.css
   Eine Datei, mobile-first, kein JavaScript.
   Farben stammen aus dem Logo (Blau #0157ae, Schwarz #191919). */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/open-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-700.woff2") format("woff2");
}

:root {
  --blue: #0157ae;
  --blue-dark: #023f7d;
  --ink: #191919;
  --ink-soft: #4a4f57;
  --line: #d9dee5;
  --paper: #ffffff;
  --paper-tint: #f3f5f8;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --measure: 38rem;          /* ca. 70–75 Zeichen */
  --gutter: 1.25rem;
  --space: 3.5rem;
}

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--blue-dark); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p, ul, ol, dl { margin: 0 0 1rem; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), 68rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  color: var(--blue);
  z-index: 10;
}
.skip:focus { top: 0.5rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}
.brand img {
  width: 10rem;
  height: auto;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
}

/* ---------- Startseite: Einstieg ---------- */

.hero {
  padding-block: var(--space) 0;
}
.hero .wrap {
  display: grid;
  gap: 2rem;
}
.hero h1 {
  margin-bottom: 1rem;
}
.hero .lead {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.hero-media img {
  width: 100%;
  border-top: 4px solid var(--blue);
}

/* ---------- Beteiligungen ---------- */

.holdings {
  padding-block: var(--space);
}
.holdings h2 {
  margin-bottom: 2rem;
}
.holding-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.holding {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1.5rem;
  background: var(--paper-tint);
}
.holding > * { min-width: 0; }
.holding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 0.75rem 1rem;
}
.holding-logo img {
  height: 5rem;
  width: 100%;
  object-fit: contain;
}
.holding h3 {
  margin-bottom: 0.5rem;
}
.facts {
  display: grid;
  gap: 0 1rem;
  font-size: 0.9375rem;
}
.facts dt {
  color: var(--ink-soft);
}
.facts dd {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.facts dd:last-child { margin-bottom: 0; }

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

.contact {
  background: var(--blue);
  color: var(--paper);
  padding-block: var(--space);
}
.contact h2 {
  max-width: var(--measure);
}
.contact a {
  color: var(--paper);
  overflow-wrap: anywhere;
}
.contact .person {
  margin-top: 2rem;
  font-size: 1.125rem;
}
.contact .person strong {
  display: block;
  font-size: 1.25rem;
}
.contact .role {
  display: block;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.contact .channels {
  display: grid;
  gap: 0.5rem;
}

/* ---------- Dokumentseiten (Datenschutz, Impressum) ---------- */

.doc {
  padding-block: var(--space);
}
.doc .wrap {
  max-width: var(--measure);
}
.doc h1 {
  margin-bottom: 2rem;
}
.doc h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.doc h3 {
  margin-top: 2rem;
}
.doc h4 {
  margin-top: 1.5rem;
}
.doc address {
  font-style: normal;
}
.doc a {
  overflow-wrap: anywhere;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li + li {
  margin-top: 0.5rem;
}

/* ---------- Fuß ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}
.site-footer address {
  font-style: normal;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a {
  color: var(--ink);
}

/* ---------- Ab 48rem (768 px) ---------- */

@media (min-width: 48em) {
  :root {
    --gutter: 2rem;
    --space: 5rem;
  }
  .brand img { width: 12rem; }

  .hero .wrap {
    grid-template-columns: 5fr 7fr;
    align-items: end;
    gap: 3rem;
  }
  .hero-media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .holding-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .holding {
    padding: 2rem;
  }
  .facts {
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    row-gap: 0.25rem;
  }
  .facts dd { margin-bottom: 0; }

  .contact .person {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
  .contact .role { margin-bottom: 0; }

  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
