/* trimag – schlankes Stylesheet, keine externen Fonts/Skripte */
:root {
  --rot: #b5121b;
  --rot-dunkel: #8f0e15;
  --text: #222;
  --text-hell: #5a5a5a;
  --linie: #e6e6e6;
  --flaeche: #f6f5f3;
  --weiss: #fff;
  --breite: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
}

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

a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--linie);
  background: var(--weiss);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 76px; flex-wrap: wrap;
}
.logo img { height: 42px; width: auto; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; font-size: 15px;
  letter-spacing: .02em; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rot); color: var(--text); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 64px 0;
}
.hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 18px; font-weight: 600; }
.hero p { color: var(--text-hell); font-size: 19px; margin: 0 0 28px; }
.hero img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.eyebrow { color: var(--rot); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; font-weight: 600; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; font-size: 16px; margin: 0 10px 10px 0;
  border: 2px solid var(--rot);
}
.btn-primary { background: var(--rot); color: var(--weiss); }
.btn-primary:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.btn-secondary { background: transparent; color: var(--rot); }
.btn-secondary:hover { background: var(--rot); color: var(--weiss); }

/* Sektionen */
section { padding: 64px 0; }
.bg-flaeche { background: var(--flaeche); }
h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 32px; font-weight: 600; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--text); display: block;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--rot); transform: translateY(-2px); color: var(--text); }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-hell); font-size: 16px; }
.card .mehr { display: inline-block; margin-top: 14px; color: var(--rot); font-weight: 600; font-size: 15px; }

.wert h3 { font-size: 19px; margin: 0 0 8px; }
.wert p { margin: 0; color: var(--text-hell); }
.wert::before { content: ""; display: block; width: 36px; height: 3px; background: var(--rot); margin-bottom: 16px; }

/* Kontaktband */
.kontakt-band { background: var(--rot); color: var(--weiss); }
.kontakt-band h2 { color: var(--weiss); margin-bottom: 12px; }
.kontakt-band p { margin: 0 0 24px; opacity: .92; }
.kontakt-band a { color: var(--weiss); }
.kontakt-zeile { display: flex; gap: 40px; flex-wrap: wrap; font-size: 18px; }
.kontakt-zeile strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; font-weight: 600; }

/* Footer */
.site-footer { padding: 28px 0 24px; font-size: 14px; color: #c9c9c9; background: #1b1b1b; text-align: center; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: #c9c9c9; text-decoration: none; }
.site-footer a:hover { color: var(--weiss); text-decoration: underline; }
.footer-links a { margin: 0 9px; display: inline-block; }
.social { display: flex; justify-content: center; gap: 18px; margin-top: 16px !important; }
.social a { display: inline-flex; width: 22px; height: 22px; }
.social svg { width: 100%; height: 100%; }

/* Mobile */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0; gap: 28px; }
  .hero img { order: -1; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav { gap: 18px; width: 100%; padding-bottom: 12px; }
  section { padding: 48px 0; }
}

/* Markenpattern als Abschluss – gross wie auf dem Briefpapier */
.pattern-fuss { padding-top: clamp(40px, 6vw, 88px); line-height: 0; }
.pattern-fuss img { display: block; width: 100%; height: auto; }

/* Seitenkopf für Unterseiten */
.seitenkopf { padding: 56px 0 48px; background: var(--flaeche); }
.seitenkopf-nav { background: var(--flaeche); padding: 0 0 40px; margin-top: -16px; }
.seitenkopf h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; font-weight: 600; }
.seitenkopf p { color: var(--text-hell); font-size: 19px; margin: 0; max-width: 760px; }
.seite { padding: 40px 0 72px; }

/* Fliesstext */
.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 12px; font-size: 24px; }
.prose h3 { margin: 28px 0 8px; font-size: 19px; }
.prose ul { padding-left: 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { border-bottom: 1px solid var(--linie); text-align: left; padding: 8px 10px 8px 0; vertical-align: top; }
mark { background: #fff3c4; padding: 0 3px; }

/* Tabs (Angebote) */
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--linie); margin-bottom: 28px; }
.tabs a {
  padding: 12px 22px; text-decoration: none; color: var(--text); font-weight: 600;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a[aria-current="page"] { border-bottom-color: var(--rot); color: var(--rot); }

/* Dienstleistungen */
.dl-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; max-width: 900px; }
.dl-nav a, .dl-nav button {
  text-decoration: none; border: 1px solid #d9d6d0; border-radius: 999px; background: var(--weiss);
  padding: 9px 12px; font: inherit; font-size: 15px; color: var(--text); cursor: pointer;
  text-align: center; hyphens: auto; line-height: 1.3;
}
.dl-nav a:hover, .dl-nav button:hover { border-color: var(--rot); color: var(--rot); }
.dl-nav button[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.team-filter { margin-bottom: 16px; }
.dienstleistung { padding: 64px 0; scroll-margin-top: 90px; }
.dienstleistung > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.dienstleistung h2 { margin-bottom: 14px; }
.dienstleistung ul { padding-left: 20px; margin: 0 0 16px; }
.dienstleistung li { margin-bottom: 4px; }
.untertitel { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-hell); margin: 0 0 14px; font-weight: 600; }
details.team-aufklapp { margin-top: 24px; }
details.team-aufklapp summary { cursor: pointer; color: var(--rot); font-weight: 600; }
details.team-aufklapp .team-grid { margin-top: 16px; }

/* Personen: grosses quadratisches Foto links, Text rechts */
.person { display: flex; gap: 22px; align-items: flex-start; }
.person-foto { flex-shrink: 0; width: 160px; aspect-ratio: 1; overflow: hidden; background: var(--flaeche); border-radius: var(--radius); }
.person-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
@media (hover: hover) { .person:hover .person-foto img { transform: scale(1.05); } }
.foto-platzhalter {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-hell); font-weight: 600; font-size: 28px; letter-spacing: .05em;
}
.person-gross .person-foto { width: 130px; }
.person-text { min-width: 0; padding-top: 4px; }
.person h3 { margin: 0 0 4px; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.25; }
.person .funktion { margin: 0 0 14px; color: var(--text-hell); font-size: 15px; line-height: 1.4; }
.person .kontaktdaten { margin: 0; font-size: 15px; line-height: 1.6; }
.person .kontaktdaten a { text-decoration: none; word-break: break-word; }
.person .kontaktdaten a:hover { text-decoration: underline; }
.kontakt-liste { display: grid; gap: 28px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 48px; }
.dienstleistung .team-grid { grid-template-columns: 1fr; gap: 24px; }
.dienstleistung .team-grid .person-foto { width: 96px; }
.team-gruppe { padding: 48px 0; scroll-margin-top: 90px; }
.team-gruppe:nth-child(even) { background: var(--flaeche); box-shadow: 0 0 0 100vmax var(--flaeche); clip-path: inset(0 -100vmax); }
.team-gruppe h2 { font-size: 26px; margin-bottom: 32px; }
@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
  .person-foto { width: 110px; }
  .person-gross .person-foto { width: 100px; }
}

/* Referenzen */
.referenz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.referenz {
  all: unset; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; border-radius: var(--radius); overflow: hidden;
  background: var(--weiss); border: 1px solid var(--linie);
}
.referenz:focus-visible { outline: 3px solid var(--rot); }
.referenz img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.referenz:hover img { transform: scale(1.03); }
.referenz-text { display: block; padding: 14px 16px 18px; font-size: 15px; color: var(--text-hell); }
.referenz-text strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); border-radius: var(--radius); background: var(--weiss); }
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox img { max-height: 80vh; width: 100%; object-fit: contain; background: #000; }
.lightbox p { margin: 0; padding: 12px 16px; }
.lightbox-zu {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); font-size: 26px; cursor: pointer; line-height: 1;
}

/* Downloads */
.download-liste { list-style: none; padding: 0; margin: 0; max-width: 780px; }
.download-liste li { border-bottom: 1px solid var(--linie); }
.download-liste a {
  display: flex; justify-content: space-between; gap: 16px; padding: 16px 0;
  text-decoration: none; color: var(--text);
}
.download-liste a:hover { color: var(--rot); }
.download-liste .typ { color: var(--text-hell); font-size: 14px; white-space: nowrap; }
.hinweis { color: var(--text-hell); font-size: 15px; max-width: 780px; }

/* Kontakt */
.kontakt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.kontakt-grid h2 { font-size: 20px; margin-bottom: 10px; }
.kontakt-grid p { margin: 0 0 12px; }

/* Spiel */
.spiel-buehne { background: var(--weiss); }
.spiel-rahmen { display: block; width: 100%; height: calc(100vh - 77px); min-height: 640px; border: 0; }

@media (max-width: 820px) {
  .dienstleistung > .wrap, .kontakt-grid { grid-template-columns: 1fr; gap: 28px; }
  .referenz-grid { grid-template-columns: 1fr; }
}

/* Bewertungs-Widget */
.widget-rahmen { max-width: 900px; min-height: 420px; }

@media (max-width: 820px) {
  .dl-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-nav > :last-child:nth-child(odd) { grid-column: span 2; }
}
.hero > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.prose th, .prose td { overflow-wrap: anywhere; hyphens: auto; }
