/* =====================================================================
   Treight UG (haftungsbeschränkt) – www.treight.de
   Stylesheet ohne externe Abhängigkeiten (keine Webfonts, keine CDNs).
   Farbschema: das Blau des Treight-Logos als Grundfarbe (Stand 23.11.2026).
   ===================================================================== */

:root {
  color-scheme: light;
  --color-bg: #f5f7fc;
  --color-surface: #ffffff;
  --color-text: #171d33;
  --color-muted: #535c78;
  --color-primary: #273e8c;       /* Grundfarbe: das Blau des Treight-Logos */
  --color-primary-dark: #1a2a61;  /* Tiefblau: Überschriften, Fußbereich, Verlauf */
  --color-accent: #273e8c;        /* Akzent in der Grundfarbe */
  --color-accent-dark: #203374;   /* Hover-Zustand */
  --color-highlight: #b3c4ff;     /* Hellblau für Text auf blauem Grund */
  --color-tint: #ebeefa;          /* helle Blaufläche: Symbole, Tabellenkopf, Hinweise */
  --color-border: #d7dbea;
  --color-focus: #3f66d8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(26, 42, 97, 0.06), 0 8px 24px rgba(26, 42, 97, 0.07);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --max-width: 1120px;
  --max-text: 72ch;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--color-primary-dark);
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.1rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--color-accent-dark);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

address {
  font-style: normal;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.3em;
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--color-tint);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  margin: 1rem 0 1.5rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
}

th {
  color: var(--color-primary-dark);
  background: var(--color-tint);
}

/* Tabellen auf schmalen Bildschirmen gestapelt darstellen (kein Querscrollen) */
@media (max-width: 720px) {
  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  tr {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.9rem;
    margin-bottom: 0.9rem;
  }
  td {
    border: 0;
    padding: 0.45rem 0;
  }
  td + td {
    border-top: 1px dashed var(--color-border);
  }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.15rem;
  }
}

/* ---------- Layout-Hilfen ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.prose {
  max-width: var(--max-text);
}

.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 50;
}

/* Kopfzeile nur auf größeren Bildschirmen „kleben“ lassen (spart Platz auf dem Handy) */
@media (min-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary-dark);
}

.brand:hover {
  color: var(--color-primary-dark);
}

/* Logo „Treight UG“ vom Briefbogen (Seitenverhältnis 1146 : 187) */
.brand__logo {
  width: auto;
  height: 38px;
  flex: 0 0 auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--color-text);
  padding: 0.4rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(150, 170, 255, 0.26), transparent 60%),
    linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-highlight);
  margin-bottom: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  background: var(--color-accent);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

/* Auf dem blauen Hero: heller Hauptbutton, damit er sich klar abhebt */
.hero .button--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.hero .button--primary:hover {
  background: var(--color-tint);
  color: var(--color-primary-dark);
}

.button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}

.button--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.button--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Fokusrahmen auf blauem Grund in Weiß, damit er sichtbar bleibt */
.hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fff;
}

/* ---------- Abschnitte ---------- */
.section {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__intro {
  max-width: 64ch;
  color: var(--color-muted);
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.section--alt .card {
  background: var(--color-bg);
  box-shadow: none;
}

.card h3 {
  margin-top: 0.25rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Aufzählung innerhalb einer Karte, z. B. die lieferbaren Sorten */
.card__list {
  margin: -0.4em 0 0;
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.facts {
  display: grid;
  gap: 0.75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 0;
}

.facts div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border);
}

.facts dt {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.contact-block {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.contact-block a {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Store-Badges (reine Text-Badges, keine Fremdgrafiken) ---------- */
.store-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--color-tint);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Inhaltsseiten (Impressum, Datenschutz, Support) ---------- */
.page-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.page-header p {
  color: var(--color-muted);
  max-width: 64ch;
  margin-bottom: 0;
}

.page-content {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.page-content h2 {
  margin-top: 2.25rem;
  font-size: 1.45rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin-top: 1.6rem;
  font-size: 1.12rem;
}

.toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  break-inside: avoid;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.notice {
  border-left: 4px solid var(--color-accent);
  background: var(--color-tint);
  padding: 0.9rem 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 1.1rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary-dark);
  padding: 0.7rem 0;
  list-style-position: outside;
}

details[open] summary {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}

/* ---------- Fehlerseite ---------- */
.error-page {
  text-align: center;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.error-page .code {
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ---------- Fußbereich ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--color-highlight);
}

.site-footer .container {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.35rem;
}

.site-footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Druck ---------- */
@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .hero__actions,
  .toc {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  a {
    color: #000;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }
}
