/* www.kindler-fotodesign.de - Bereichsseite Kindler Fotodesign
   Dunkles, minimal-typografisches System. Keine externen Fonts, keine Skripte.
   Gleiche Designsprache wie www.bkindler.de, auf zwei Karten reduziert. */

:root {
  --bg: #101312;
  --surface: #171b1a;
  --surface-hover: #1c2120;
  --border: #262c2a;
  --border-strong: #35403d;
  --text: #ececea;
  --text-muted: #9aa39f;
  --accent: #72c5a3;
  --radius: 14px;
  --font-sans: ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Hero --- */

.hero {
  padding: 5.5rem 0 3.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero p {
  margin-top: 1.1rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.06rem;
}

/* --- Karten-Grid --- */

.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4.5rem;
}

/* Zwei-Karten-Variante: nebeneinander, mittig, etwas kräftiger */
.areas-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 52rem;
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

/* In der Zwei-Karten-Variante bekommen die Karten mehr Ruhe und Höhe. */
.areas-2 .card {
  padding: 2rem 1.9rem 1.7rem;
  min-height: 12.5rem;
}

a.card:hover {
  text-decoration: none;
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

a.card:active { transform: translateY(0) scale(0.99); }

.card h2 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.areas-2 .card h2 { font-size: 1.4rem; }

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex-grow: 1;
}

.areas-2 .card p { font-size: 0.98rem; }

.card-domain {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

a.card:hover .card-domain { color: var(--accent); }

.card-arrow {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.areas-2 .card-arrow { top: 1.8rem; right: 1.8rem; }

a.card:hover .card-arrow {
  color: var(--accent);
  transform: translate(3px, -3px);
}

/* --- Footer --- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.6rem 0 2rem;
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer nav { display: flex; gap: 1.4rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }

/* --- Dokumentseiten (Impressum / Datenschutz) --- */

.doc {
  padding: 4rem 0 4.5rem;
  max-width: 44rem;
}

.doc h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}

.doc h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.2rem 0 0.6rem;
}

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.4rem;
}

.doc p { margin: 0.6rem 0; color: var(--text); }
.doc p.muted, .doc .stand { color: var(--text-muted); }
.doc ul { margin: 0.6rem 0 0.6rem 1.2rem; }
.doc li { margin: 0.3rem 0; }

.doc .stand { margin-top: 2.4rem; font-size: 0.85rem; }

.backlink {
  display: inline-block;
  margin-top: 3.2rem;
  font-size: 0.9rem;
}

/* --- Einstiegs-Animation --- */

@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .card {
    animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero p { animation-delay: 60ms; }
  .card { animation-delay: calc(120ms + var(--i, 0) * 55ms); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 2.5rem; }
  .areas, .areas-2 { grid-template-columns: 1fr; }
  .areas-2 .card { min-height: 0; }
  .site-footer .shell { flex-direction: column; }
}
