/* Otabis GmbH – Stylesheet
   Farben & Schriften zentral als Variablen: hier anpassen, wirkt überall. */

:root {
  --ground: #f8f6f7;
  --surface: #ffffff;
  --ink: #140a11;          /* Otabis Schwarz (Logo) */
  --muted: #6a5d65;
  --line: #e7dfe3;
  --accent: #8c1352;       /* Otabis Magenta (Logo) */
  --accent-soft: #f6e7ef;
  --on-accent: #ffffff;
  --ok: #1f8a5b;

  /* Hausschrift Otabis: Roboto Condensed */
  --f-display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --f-mono: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #140d11;
    --surface: #1e151a;
    --ink: #f3eef1;
    --muted: #b1a3ab;
    --line: #33262d;
    --accent: #e0679f;
    --accent-soft: #3a1a2a;
    --on-accent: #140d11;
    --ok: #4cc28c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #140d11;
  --surface: #1e151a;
  --ink: #f3eef1;
  --muted: #b1a3ab;
  --line: #33262d;
  --accent: #e0679f;
  --accent-soft: #3a1a2a;
  --on-accent: #140d11;
  --ok: #4cc28c;
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0; }
p { margin: 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 30px; width: auto; display: block; }
.logo-on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
.nav {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding-block: 88px 88px;
  /* Tastaturbild als dezenter Hintergrund: links deckend für den Text, rechts durchscheinend */
  background:
    linear-gradient(90deg,
      var(--ground) 0%,
      color-mix(in srgb, var(--ground) 92%, transparent) 40%,
      color-mix(in srgb, var(--ground) 72%, transparent) 70%,
      color-mix(in srgb, var(--ground) 60%, transparent) 100%),
    url("img/hero-bg.jpg") 70% 55% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
}
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.status {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--f-mono);
  font-size: 0.88rem;
}
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-bottom: 1px dashed var(--line);
}
.status-row:last-child { border-bottom: 0; }
.status-row span:first-child { color: var(--muted); }
.status-row span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent);
}

/* ---------- Sections ---------- */
section { padding-block: 80px; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 40px;
  margin-bottom: 44px;
}
.section-head p { max-width: 30em; color: var(--muted); }
.section-head .eyebrow { margin-bottom: 12px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.service {
  padding: 28px 28px 32px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.service p { color: var(--muted); font-size: 0.97rem; }
.tag {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* ---------- Bänder ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 16px; color: var(--muted); max-width: 34em; }
.about-text strong { color: var(--ink); font-weight: 500; }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--surface); padding: 22px; }
.fact b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fact span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Angebote ---------- */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.offer {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: var(--ground);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.offer p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.offer-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
}
.offer-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.offer-link { color: var(--accent); font-weight: 500; text-decoration: none; margin-top: 4px; }
.offer-link:hover { text-decoration: underline; }

/* ---------- Einsatzmodelle ---------- */
.models {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.models li { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 2px solid var(--accent); }
.models p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Hilfe ---------- */
.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ground); color: var(--ink); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.help-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.help-item p { color: var(--muted); font-size: 0.95rem; }

/* Ticketformular */
.ticket {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground);
  overflow: hidden;
}
.ticket-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.ticket-frame {
  display: block; width: 100%; height: 1100px; border: 0;
  background: #ffffff;   /* Formular bringt eigenes helles Design mit */
}
.ticket-link { padding: 32px 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; color: var(--muted); }

/* ---------- Bilder ---------- */
figure { margin: 0; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.photo-pair img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-pair figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }

.portrait { margin-top: 32px; max-width: 280px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--line); }
.portrait figcaption { margin-top: 12px; display: flex; flex-direction: column; font-size: 0.95rem; }
.portrait figcaption span { color: var(--muted); }

/* ---------- Team ---------- */
.team { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.team .eyebrow { margin-bottom: 20px; }
.members {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.member {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.avatar {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; display: block;
  background: var(--accent-soft);
  color: color-mix(in srgb, var(--accent) 55%, var(--muted));  /* Silhouette */
}
.avatar svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.avatar .cut { stroke: var(--accent-soft); stroke-width: 1.6; }            /* Haar hebt sich von Schultern ab */
.avatar .face { fill: color-mix(in srgb, currentColor 70%, var(--accent-soft)); }  /* Gesicht leicht heller als Haar */
.member-text { display: flex; flex-direction: column; line-height: 1.35; }
.member-text b { font-weight: 700; }
.member-text span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Referenzen ---------- */
.refs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px;
}
.refs li {
  background: #ffffff;          /* Logos brauchen hellen Grund, auch im Dark Mode */
  border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; padding: 6px;
}
.refs img {
  display: block; width: 100%; height: auto; aspect-ratio: 2 / 1;
  filter: grayscale(1); opacity: .75; transition: filter .2s ease, opacity .2s ease;
}
.refs li:hover img { filter: none; opacity: 1; }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 18px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact .eyebrow { color: inherit; opacity: .75; margin-bottom: 12px; }
.contact p { opacity: .85; margin-top: 16px; max-width: 30em; }
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.contact dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 500; }
.contact a { color: inherit; }

/* Kontakt speichern (vCard) */
.vcard {
  margin-top: 28px; display: flex; align-items: center; gap: 18px;
  padding: 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--on-accent) 12%, transparent);
  max-width: 440px;
}
.contact .vcard p { margin: 0; }
.vcard-qr { flex: none; width: 150px; height: 150px; border-radius: 6px; background: #fff; display: block; }
.vcard-text { display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.vcard-text span { opacity: .85; }
.vcard-btn {
  align-self: flex-start; margin-top: 4px; padding: 8px 14px; border-radius: 999px;
  background: var(--on-accent); color: var(--accent) !important; font-weight: 500; text-decoration: none;
}
.vcard-btn:hover { opacity: .9; }

/* ---------- Lageplan ---------- */
.map {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 2fr;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--surface);
}
.map-info { padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.map-info p:not(.eyebrow) { color: var(--muted); }
.map-frame { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; background: var(--line); }
.map-link { display: grid; place-items: center; min-height: 360px; padding: 24px; text-align: center; color: var(--muted); background: var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 40px; color: var(--muted); font-size: 0.88rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about, .contact { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .models { grid-template-columns: 1fr 1fr; }
  .help { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .photo-pair { grid-template-columns: 1fr; }
  .hero { background-position: 80% 50%; }
  .wrap { padding-inline: 16px; }
  .nav { display: none; }
  .hero { padding-block: 56px 48px; }
  section { padding-block: 56px; }
  .services, .models { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: 0; }
  .service { padding-right: 0; }
  .contact { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 1080px) and (min-width: 621px) {
  .nav { gap: 16px; font-size: 0.9rem; }
}

@media (max-width: 1080px) { .refs { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 620px)  { .refs { grid-template-columns: repeat(3, 1fr); gap: 8px; } }

@media (max-width: 900px) { .members { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .members { grid-template-columns: 1fr; } }

@media (max-width: 1080px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .offers { grid-template-columns: 1fr; } }

@media (max-width: 900px) { .map { grid-template-columns: 1fr; } .map-info { padding: 28px 24px; } }

@media (max-width: 620px) { .vcard { flex-direction: column; align-items: flex-start; } }
