/* =========================
   Basis / Variablen (mobile-first)
   ========================= */
:root {
  /* Layout */
  --max-w: 1100px;
  --pad: 1rem;
  --pad-lg: 1.25rem;
  --radius: 16px;

  /* Farben */
  --bg: #fafaf9;            /* leicht warmes Off-White */
  --surface: #ffffff;
  --fg: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;

  /* Akzente */
  --accent: #0f172a;        /* dunkles Navy für Buttons */
  --accent-contrast: #ffffff;

  /* Schatten */
  --shadow-1: 0 1px 3px rgba(0,0,0,.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,.12);
}

/* =========================
   Reset & Grundlayout
   ========================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  line-height: 1.6;
  color: var(--fg);
  background:
    radial-gradient(35rem 35rem at 10% -10%, rgba(37,99,235,.06), transparent 60%),
    radial-gradient(30rem 30rem at 110% 10%, rgba(234,88,12,.06), transparent 60%),
    var(--bg);
  word-break: break-word;
}
img, picture, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* Standard – wird für bestimmte Bilder gezielt zurückgesetzt */
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 0 var(--pad);
}

/* =========================
   Header / Navigation
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
header .container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: var(--pad);
}
h1 {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin: 0;
}
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.nav a {
  display: inline-block;
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
}
.nav a:active { transform: scale(0.98); }

/* Hinweis-Banner oberhalb des Headers */
.info-banner {
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: .55rem 1rem;
  font-size: clamp(.9rem, 1.8vw, .95rem);
  line-height: 1.4;
}
.info-banner a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.info-banner a:hover {
  text-decoration: none;
  opacity: .85;
}

/* =========================
   Buttons / Links
   ========================= */
.btn, .btn:visited {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  font-weight: 600;
  transition: filter .15s ease, transform .08s ease;
}
.btn:hover { filter: brightness(0.96); }
.btn:active { transform: scale(0.98); }

.btn-outline, .btn-outline:visited {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-link {
  text-decoration: underline;
  color: var(--fg);
}

/* =========================
   Typografie / Abstände
   ========================= */
main { padding-block: var(--pad-lg); }
section + section { margin-top: 2rem; }

h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  margin: 0 0 .5rem 0;
}
h3 {
  margin: .25rem 0 .5rem;
  font-size: 1.05rem;
}
p { margin: .5rem 0 1rem; }
.muted { color: var(--muted); }

/* Unterüberschrift unter H1 (Start & About) */
.subheadline {
  margin: .25rem 0 0;
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.4;
}

/* =========================
   Karten & Hilfsflächen
   ========================= */
.card {
  background: var(--surface);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  box-shadow: var(--shadow-1);
  backdrop-filter: saturate(110%);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow-2); }

.hero-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Listen */
.feature-list,
.checklist {
  margin: .25rem 0 1rem;
  padding-left: 1.25rem;
}
.feature-list li,
.checklist li { margin: .25rem 0; }

/* Info-Box (Business-Seite) */
.info-box {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #f7f8fb;
}

/* Privat-Seite: Text + Bild linksbündig */
#private p, #private img { margin-left: 0; text-align: left; }

/* =========================
   Hero / Bild-Overlays
   ========================= */
.hero { position: relative; overflow: hidden; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius); }
.hero.has-bg { color: #fff; background: #0f172a; }
.hero.has-bg .hero-inner { position: relative; z-index: 2; text-align: center; }
.hero.has-bg::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.45));
  z-index:1;
}
.hero img.hero-bg {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; filter: saturate(105%) contrast(105%);
  z-index:0; opacity:.9;
  border-radius: 0; /* Hero-Background ohne Rundung */
}

/* =========================
   Startseite: Auswahl-Buttons
   ========================= */
.center { text-align: center; }

.choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  align-items: stretch;
}
.choice-buttons .choice-btn {
  display: block;
  width: 100%;
  max-width: 440px;              /* gleich breite Kacheln auf Desktop */
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;

  /* Optik */
  background: #fff;
  border: 1px solid rgba(17,17,17,0.08);
  box-shadow: var(--shadow-1);

  color: #111;
  text-align: left;
  transition:
    transform .12s ease,
    box-shadow .12s ease,
    background .12s ease,
    border-color .12s ease;
}
.choice-buttons .choice-btn:hover,
.choice-buttons .choice-btn:focus-visible {
  background: #ffffff;
  border-color: rgba(17,17,17,0.12);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  outline: none;
}
.choice-buttons .choice-title {
  display: block;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.8vw, 1.8rem);
  line-height: 1.2;
  margin: 0 0 .35rem 0;
}
.choice-buttons .choice-sub {
  display: block;
  font-size: clamp(.95rem, 2.4vw, 1rem);
  color: #4b5563;
  line-height: 1.5;
}

/* =========================
   Kacheln für Specials / Referenzen
   ========================= */
.card-tile,
.special-card,
.ref-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17,17,17,0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card-tile figure,
.special-card figure,
.ref-card figure { margin: 0; position: relative; overflow: hidden; }

.card-tile img,
.special-card img,
.ref-card img {
  width: 100%;
  height: 250px;        /* mobil: einheitliche Höhe */
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform .4s ease;
  border-radius: 0;     /* Kachel-Bilder ohne eigene Rundung */
}

/* Hover */
.card-tile:hover,
.special-card:hover,
.ref-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(17,17,17,0.12);
}
.card-tile:hover img,
.special-card:hover img,
.ref-card:hover img {
  transform: scale(1.05);
}

.card-tile figcaption,
.special-card figcaption,
.ref-card figcaption {
  padding: .85rem 1rem 1rem;
  text-align: center;
}
.card-tile .title,
.special-card .title,
.ref-card .title {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* Notiz unter Specials */
.specials-note {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 1rem;
  font-style: italic;
}

/* Referenzen-Aktion (Button Mitte) */
.refs-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* =========================
   Footer
   ========================= */
footer {
  padding: var(--pad-lg) 0;
  border-top: 1px solid var(--border);
  color: #374151;
  font-size: .95rem;
}

/* =========================
   A11y / Bewegungsreduktion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================
   Breakpoints
   ========================= */
@media (min-width: 768px) {
  header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .nav { gap: .75rem; }
  main { padding-block: calc(var(--pad-lg) + .25rem); }

  /* Business-Details Grid (falls genutzt) */
  .grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  /* Auswahl-Buttons nebeneinander */
  .choice-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  /* Kachel-Bilder etwas höher */
  .card-tile img,
  .special-card img,
  .ref-card img { height: 320px; }
}

@media (min-width: 1024px) {
  :root { --max-w: 1100px; }
}

/* =========================
   Dark Mode (optional)
   ========================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f1a;
    --surface: #0f172a;
    --fg: #e5e7eb;
    --muted: #9ca3af;
    --border: rgba(255,255,255,.12);
    --shadow-1: 0 1px 3px rgba(0,0,0,.5);
    --shadow-2: 0 12px 32px rgba(0,0,0,.6);
  }
  .info-box { background: rgba(255,255,255,.04); }
  .choice-buttons .choice-btn { background: rgba(255,255,255,.04); }
  .choice-buttons .choice-btn:hover { background: rgba(255,255,255,.06); }
}