/* =========================================================
   DTU  ·  Deutsche Tierärzte Union GmbH
   Design-System, Farbwelt "Kanzlei" (festgelegt 06.09.2026)
   ========================================================= */

:root {
  /* --- Marke ---
     Grundton ist die Farbe aus dem Logo (#022953). Die abgeleiteten
     Töne sind darauf abgestimmt, nicht mehr auf das frühere #1C344E. */
  --brand:        #022953;   /* Navy aus dem Logo */
  --brand-deep:   #011B3A;   /* dunkler, für Flächen und Fußzeile */
  --accent:       #1B5490;   /* Akzent: Knöpfe, Zahlen, Hervorhebung */
  --accent-hover: #164675;
  --brand-hover:  #063B78;   /* etwas heller, für Knöpfe beim Überfahren */
  --accent-light: #79ADE4;   /* Akzent auf dunklem Grund */

  /* --- Flächen --- */
  --paper:  #F7F8FA;         /* Seitenhintergrund */
  --paper2: #EFF2F5;         /* abgesetzte Sektion */
  --card:   #FFFFFF;

  /* --- Linien und Text --- */
  --line:        #DAE0E8;
  --line-strong: #B7C3D1;
  --ink:         #022953;
  --muted:       #5C6D86;

  /* --- Typografie --- */
  /* Drei Rollen: Display traegt die Marke, Serif traegt den Text,
     UI traegt alles Funktionale (Navigation, Knoepfe, Beschriftungen). */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-text:    "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui:      "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Maße --- */
  --wrap: none;          /* volle Breite, begrenzt wird nur der Fließtext */
  --gutter: 40px;
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================
   Typografie
   ========================================================= */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -.035em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

/* Unbounded laeuft breit. Kleinere Grade als bei einer Grotesk,
   sonst sprengt jede Zeile den Satzspiegel. */
h1 { font-size: clamp(1.75rem, 3.5vw, 2.9rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); }

/* h3 laeuft klein, dort ist Unbounded unleserlich: UI-Schrift. */
h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
  color: var(--brand);
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--muted);
  line-height: 1.72;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

a { color: var(--accent); }

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}

/* Knöpfe tragen das Markenblau. Der hellere Akzent bleibt den
   Zahlen, Nummern und Hervorhebungen vorbehalten. */
.btn--primary { background: var(--brand); color: #fff; border: 2px solid var(--brand); padding: 12px 23px; }
.btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }

/* Zweitrangiger Knopf: dieselbe Farbe wie der Hauptknopf,
   nur als Kontur. Zwei Pixel, damit er neben dem gefüllten besteht. */
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: 12px 23px;          /* gleicht die dickere Kontur aus */
}
.btn--ghost:hover {
  background: var(--brand);
  color: #fff;
}

/* =========================================================
   Kopfzeile
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  padding-left: var(--gutter);
  height: 100px;
  transition: height .4s cubic-bezier(.2, .8, .3, 1);
}
/* Beim Scrollen flacher, damit die Leiste nicht im Weg steht */
.site-header.eng { height: 74px; }

.site-header__marke { display: flex; align-items: center; padding-right: var(--gutter); }
.site-header__brand { display: flex; align-items: center; text-decoration: none; }
.site-header__logo {
  height: 58px;
  width: calc(58px * 146.35 / 56.86);   /* Seitenverhaeltnis des Logos */
  color: var(--brand);
  display: block;
  transition: height .4s cubic-bezier(.2, .8, .3, 1),
              width  .4s cubic-bezier(.2, .8, .3, 1);
}
.site-header.eng .site-header__logo { height: 44px; width: calc(44px * 146.35 / 56.86); }

/* Die Navigation traegt dieselben Nummern wie die Abschnitte der Seite.
   Senkrechte Linien fassen sie zu Feldern. */
.site-nav { display: flex; margin-left: auto; align-items: stretch; }
.site-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 28px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-ui);
  transition: background .3s ease;
}
.site-nav a:hover { background: var(--paper2); }
.site-nav a b {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: .82rem;
  letter-spacing: -.02em;
  color: var(--accent-light);
  transition: color .3s ease;
}
.site-nav a:hover b { color: var(--accent); }
.site-nav a span { font-size: .88rem; font-weight: 500; color: var(--brand); white-space: nowrap; }

/* Der Handlungsknopf schliesst rechts buendig ab, ohne Rand daneben */
.site-header__cta {
  font-family: var(--font-ui);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand);
  color: #fff;
  padding: 0 32px;
  align-self: stretch;
  transition: background .3s ease;
}
.site-header__cta:hover { background: var(--brand-hover); }
.site-header__cta .wort { white-space: nowrap; }
.site-header__cta .pfeil { transition: transform .3s cubic-bezier(.2, .8, .3, 1); }
.site-header__cta:hover .pfeil { transform: translateX(4px); }

/* Wie weit die Seite gelesen ist */
.site-header__fortschritt {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .12s linear;
}

/* Das Menue erscheint erst am schmalen Schirm */
.site-menue { display: none; }

@media (max-width: 1150px) {
  .site-header { padding-left: 32px; }
  .site-header__marke { padding-right: 28px; }
  .site-nav a { padding: 0 20px; }
  .site-header__cta { padding: 0 24px; }
}

/* Schmal: gewoehnliche Leiste mit Marke, Knopf und Menue.
   Das Aufklappen uebernimmt <details>, also der Browser selbst.
   Ohne eigenes Skript kann daran nichts haengen bleiben. */
@media (max-width: 860px) {
  .site-header { height: 64px; padding: 0 0 0 20px; }
  .site-header.eng { height: 58px; }
  .site-header__marke { padding-right: 12px; }
  .site-header__logo { height: 40px; width: calc(40px * 146.35 / 56.86); }
  .site-header.eng .site-header__logo { height: 36px; width: calc(36px * 146.35 / 56.86); }
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; padding: 0 18px; font-size: .8rem; }

  .site-menue { display: flex; align-items: stretch; }
  .site-menue > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-left: 1px solid var(--line);
    background: var(--card);
  }
  .site-menue > summary::-webkit-details-marker { display: none; }
  .site-menue__balken { display: block; width: 20px; height: 12px; position: relative; }
  .site-menue__balken i {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--brand);
    transition: transform .3s ease, opacity .2s ease;
  }
  .site-menue__balken i:nth-child(1) { top: 0; }
  .site-menue__balken i:nth-child(2) { top: 5px; }
  .site-menue__balken i:nth-child(3) { top: 10px; }
  .site-menue[open] .site-menue__balken i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .site-menue[open] .site-menue__balken i:nth-child(2) { opacity: 0; }
  .site-menue[open] .site-menue__balken i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

  .site-menue__inhalt {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(2, 41, 83, .10);
    display: flex;
    flex-direction: column;
  }
  .site-menue__inhalt a {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 15px 22px;
    text-decoration: none;
    border-top: 1px solid #EDF1F5;
    font-family: var(--font-ui);
  }
  .site-menue__inhalt a b {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: .78rem;
    letter-spacing: -.02em;
    color: var(--accent-light);
    min-width: 22px;
  }
  .site-menue__inhalt a span { font-size: .95rem; font-weight: 500; color: var(--brand); }
}

/* Sehr schmal: der Knopf traegt nur noch das erste Wort, sonst
   draengt er die Marke aus der Leiste. */
/* Auf sehr schmalen Geraeten etwas enger, der Text passt aber
   auch dort vollstaendig neben Marke und Menue. */
@media (max-width: 400px) {
  .site-header__cta { padding: 0 15px; font-size: .79rem; gap: 7px; }
}

/* =========================================================
   Sektionen
   ========================================================= */

.section { padding: clamp(56px, 8vw, 96px) 0; }

/* =========================================================
   Hero: grosse Zeile ueber die volle Breite, darunter
   Trennlinie, darunter Text links und Kernaussagen rechts.
   ========================================================= */

.hero { padding: clamp(44px, 6vw, 88px) 0 clamp(40px, 5vw, 74px); }

.hero h1 {
  max-width: none;
  line-height: 1.04;
  letter-spacing: -.045em;
  margin-bottom: 0;
  /* Klein: mehrzeilig und gross genug zum Lesen. */
  font-size: clamp(1.7rem, 5.6vw, 2.7rem);
}

/* Ab hier passt die Zeile einzeilig in die Breite.
   4.35vw ist gemessen, nicht geschaetzt: Der Satz ist bei 100px
   Schriftgrad 2089px breit, daraus ergibt sich der Faktor.
   Etwas unter dem Optimum, damit nichts umbricht. */
@media (min-width: 1250px) {
  .hero h1 { font-size: 4.3vw; }
}

@media (min-width: 2400px) {
  .hero h1 { font-size: 4.2vw; }
}

.hero__rule { height: 1px; background: var(--line-strong); margin-top: clamp(26px, 3vw, 40px); }

.hero__unten {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 90px);
  align-items: start;
  padding-top: clamp(26px, 3vw, 36px);
}

.hero__links .lead { margin: 0 0 28px; max-width: none; font-size: clamp(.98rem, 1.02vw, 1.12rem); line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.saeulen { list-style: none; margin: 0; padding: 0; display: grid; }
.saeule {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto minmax(16ch, .95fr) minmax(0, 1.35fr);
  gap: 4px 22px;
  align-items: baseline;
}
.saeule:first-child { padding-top: 0; }
.saeule:last-child { border-bottom: 0; }
.saeule b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -.04em;
  color: var(--accent);
}
.saeule span {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand);
  line-height: 1.35;
}
.saeule small {
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

/* Beschreibung unter den Titel, solange die dritte Spalte zu schmal
   waere. Erst ab etwa 1850px traegt sie eine Zeile am Stueck. */
@media (max-width: 1820px) {
  .saeule {
    grid-template-columns: auto 1fr;
    gap: 2px 16px;
  }
  .saeule small { grid-column: 2; }
}

/* =========================================================
   Fußzeile: hell, damit sie sich vom dunklen Kontaktteil
   darüber absetzt. Bewusst schlank, denn Anschrift und
   Registerangaben stehen bereits im Kontaktbereich.
   ========================================================= */

.site-footer {
  font-family: var(--font-ui);
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: clamp(26px, 3vw, 40px) 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 24px 40px;
  flex-wrap: wrap;
}

.site-footer__marke { display: flex; align-items: center; text-decoration: none; }
.site-footer__logo {
  height: 58px;
  width: calc(58px * 146.35 / 56.86);
  color: var(--brand);
  display: block;
}

.site-footer__recht {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.site-footer__links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: .87rem;
}
.site-footer__links a {
  color: var(--brand);
  text-decoration: none;
  transition: color .18s ease;
}
.site-footer__links a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 640px) {
  .site-footer__inner { gap: 18px; }
  .site-footer__links { margin-left: 0; width: 100%; }
}

/* =========================================================
   Platzhalter-Markierung: alles, was noch echte Daten braucht
   ========================================================= */

.site-footer a.todo, .site-footer .todo { color: #6B4E00; }

.todo {
  background: #FFF3CD;
  color: #6B4E00;
  border-bottom: 2px dotted #B98900;
  padding: 0 3px;
  font-weight: 600;
}

/* =========================================================
   Klein
   ========================================================= */

/* =========================================================
   Breite und Abstände je Bildschirm
   Desktop und Laptop: volle Breite, 40px Rand.
   Klein: Rand zurücknehmen, sonst bleibt kaum Inhalt übrig.
   ========================================================= */

@media (max-width: 900px) {
  :root { --gutter: 28px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
}@media (max-width: 1000px) {
  .hero__unten { grid-template-columns: 1fr; gap: 30px; }
  .hero__links .lead { max-width: none; }
}

/* Tablet hoch und grosse Handys */
@media (max-width: 900px) {

  .section { padding: clamp(44px, 7vw, 64px) 0; }
}

/* Handy */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero__links .lead { font-size: .95rem; line-height: 1.55; margin-bottom: 22px; }
  .hero { padding: 30px 0 34px; }
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); letter-spacing: -.03em; }
  .saeule { gap: 14px; }
  .saeule b { font-size: 1.15rem; }

}

/* Sehr kleine Geraete */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.5rem; }
  .btn { padding: 12px 16px; font-size: .86rem; }
  .hero__cta { display: grid; }
  .hero__cta .btn { width: 100%; }
}

/* Wer Bewegung reduziert haben moechte, bekommt keine */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* Grosse Schirme: Ueberschrift bis an den Rand, Lead auf zwei Zeilen */
@media (min-width: 1400px) {
  .hero__unten { grid-template-columns: 1.25fr 1fr; }
}
