/* Banuat Group – One-Pager. Apple-clean, keine externen Ressourcen.
   Startseite: passt sich ohne Scrollen an jede Bildschirmgröße an (Grid + vmin-Skalierung). */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.06);
  --accent: #0071e3;
  --card-text: #1d1d1f;
  --card-muted: #6e6e73;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 16px 40px rgba(0, 0, 0, 0.10);
  --radius: clamp(14px, 2.2vmin, 24px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #ffffff;      /* Marken-Kacheln bleiben weiß (Logo-Wand) */
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #2997ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Startseite: Vollbild ohne Scrollen ---------- */
.home {
  height: 100vh;
  height: 100svh;                 /* stabile Höhe auf Handys (Adressleiste eingerechnet) */
  overflow: auto;                 /* Sicherheitsventil, greift normal nie */
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(8px, 1.6vmin, 20px);
  padding: clamp(10px, 2vmin, 28px) clamp(12px, 3vmin, 40px);
}

.hero { text-align: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(22px, 5vmin, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero p {
  margin: 0.25em 0 0;
  color: var(--muted);
  font-size: clamp(12px, 2vmin, 20px);
  line-height: 1.3;
}

/* Kachel-Raster: 2 x 2 */
.grid {
  min-height: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(8px, 1.6vmin, 20px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  min-height: 0; min-width: 0;
  overflow: hidden;
  container-type: size;                 /* Inhalt skaliert über cqw/cqh mit der Kachel */
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(6px, 1.2vmin, 14px);
  padding: clamp(12px, 2.6vmin, 36px);
  background: var(--surface);
  color: var(--card-text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-hover); outline: none; }
.card:focus-visible { box-shadow: var(--shadow-hover), 0 0 0 3px var(--brand, var(--accent)); }

/* Markenblock: Schild-Icon links, Wortmarke + Claim rechts */
.brand {
  min-height: 0; min-width: 0;
  display: flex; align-items: center;
  gap: clamp(8px, 1.6vmin, 22px);
  gap: 4cqw;
}
.brand .icon {
  flex: 0 0 auto;
  height: clamp(44px, 12vmin, 150px);
  height: min(42cqh, 30cqw);
  width: auto;
  display: block;
}
.wordmark { min-width: 0; }
.wordmark .name {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(20px, 5.5vmin, 60px);
  font-size: min(16cqh, 11.5cqw);
  white-space: nowrap;
}
.wordmark .name b { color: var(--brand); font-weight: 800; }
.wordmark .name .sub { font-weight: 500; letter-spacing: -0.02em; }
.wordmark .claim {
  margin-top: 0.35em;
  color: var(--card-muted);
  font-size: clamp(10px, 1.9vmin, 20px);
  font-size: min(6cqh, 4.3cqw);
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.meta { min-width: 0; }
.card h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-size: clamp(13px, 2.2vmin, 24px);
  font-size: min(7cqh, 5cqw);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .muted {
  margin: 0.2em 0 0;
  color: var(--card-muted);
  line-height: 1.3;
  font-size: clamp(11px, 1.8vmin, 20px);
  font-size: min(5.8cqh, 4.2cqw);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.go {
  display: block;
  margin-top: 0.5em;
  color: var(--brand, #0071e3);
  font-weight: 700;
  font-size: clamp(11px, 1.8vmin, 20px);
  font-size: min(5.8cqh, 4.2cqw);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.go::after { content: "  ↗"; }

/* Fußzeile */
.footer {
  color: var(--muted);
  font-size: clamp(10px, 1.4vmin, 13px);
  line-height: 1.3;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; }
.footer nav { display: flex; gap: 16px; }
.footer a:hover { color: var(--text); text-decoration: underline; }

/* Handy hochkant: 1 Spalte, 4 Reihen (liegende Kacheln), Beschreibung aus */
@media (max-width: 640px) and (orientation: portrait) {
  .grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .card { grid-template-columns: minmax(0, 1fr); padding: clamp(10px, 4cqw, 18px) clamp(12px, 5cqw, 22px); }
  .card .muted { display: none; }
  .brand .icon { height: min(60cqh, 22cqw); }
  .wordmark .name { font-size: min(26cqh, 10cqw); }
  .wordmark .claim { font-size: min(11cqh, 4cqw); }
  .card h2 { font-size: min(13cqh, 5cqw); }
  .go { font-size: min(12cqh, 4.4cqw); margin-top: 0.25em; }
  .footer .wrap { justify-content: center; text-align: center; }
}
/* Handy quer (wenig Höhe): 2 x 2 bleibt, aber kompakt */
@media (max-height: 520px) {
  .grid { max-width: none; }
  .hero p, .card .muted { display: none; }
  .home { gap: 6px; padding: 8px 14px; }
  .card { padding: 8px 14px; gap: 3px; }
  .brand .icon { height: min(60cqh, 18cqw); }
  .wordmark .name { font-size: min(28cqh, 7cqw); }
  .wordmark .claim { font-size: min(12cqh, 3.2cqw); }
  .card h2 { font-size: min(14cqh, 3.6cqw); }
  .go { font-size: min(13cqh, 3.4cqw); margin-top: 0.2em; }
}

/* ---------- Textseiten (Impressum / Datenschutz / 404) ---------- */
.page { padding: 40px 0 64px; min-height: 100vh; }
.page .wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.025em; margin: 0 0 24px; line-height: 1.1; }
.page h2 { font-size: 21px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.page p, .page li { color: var(--text); }
.page p { margin: 0 0 12px; }
.page .lead { color: var(--muted); }
.page address { font-style: normal; }
.page a { color: var(--accent); }
.page a:hover { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 15px; }
.back::before { content: "← "; }
.page .footer { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.page .footer .wrap { padding: 0; }
