/* ============================================================
   hochzeitsfoto-apps.de — „Paper & Botanicals"
   Editorial-Design: warmes Papier, Fraunces (self-hosted, DSGVO),
   Terracotta-Akzente, redaktionelle Tabellen. Stand 08/2026.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbf7f0;
  --card: #fffefb;
  --ink: #2c2014;
  --ink-soft: #5c4f3f;
  --muted: #8a7c68;
  --terra: #a85b3a;
  --terra-deep: #8c4527;
  --blush: #f6ebe0;
  --sage: #6f7a60;
  --hair: #e8dcc8;
  --gold: #d9c9a8;
  --shadow: 0 1px 2px rgba(75, 55, 30, 0.06), 0 8px 28px rgba(75, 55, 30, 0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font: 400 17px/1.7 "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  position: relative;
}

/* feine Papier-Körnung */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.3rem; }

/* ---------- Typografie ---------- */

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 600;
  font-variation-settings: "opsz" 100;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0.9rem 0 1rem;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terra);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  font-variation-settings: "opsz" 60;
  line-height: 1.2;
  margin: 3rem 0 0.9rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}
p { margin: 0.75rem 0; }
.lead {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46em;
}
.small { font-size: 0.85rem; color: var(--muted); }

a { color: var(--terra-deep); text-decoration-color: var(--gold); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--terra); text-decoration-color: var(--terra); }

ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
li::marker { color: var(--terra); }

/* ---------- Kopf ---------- */

header.site { padding: 3.2rem 0 0.5rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.stand {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
  border: 1.5px solid var(--terra);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  background: var(--card);
  transform: rotate(-1.2deg);
  box-shadow: var(--shadow);
}

.ornament {
  display: block;
  width: 130px;
  margin: 1.6rem 0 0.4rem;
  color: var(--gold);
}
.ornament.center { margin-left: auto; margin-right: auto; }

/* Einstiegs-Animation (nur beim Laden, dezent) */
@media (prefers-reduced-motion: no-preference) {
  header.site > * , .answer, .note {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  header.site > *:nth-child(2) { animation-delay: 0.06s; }
  header.site > *:nth-child(3) { animation-delay: 0.12s; }
  header.site > *:nth-child(4) { animation-delay: 0.18s; }
  .note { animation-delay: 0.24s; }
  .answer { animation-delay: 0.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Boxen ---------- */

.note {
  background: var(--blush);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--terra);
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.6rem 0;
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
}

.answer, .kern, .reco {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow);
  position: relative;
}
.answer h2, .kern h3, .reco strong:first-child { margin-top: 0; }
.answer::after, .kern::after {
  content: "❧";
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  font-size: 1.3rem;
  color: var(--gold);
}
.answer p { margin: 0.55rem 0; }
.answer p strong, .reco strong { color: var(--terra-deep); }

.kern { border-left: 3px solid var(--terra); }
.reco { background: var(--blush); }

/* ---------- Tabellen ---------- */

.tblwrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 1.4rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}
th, td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hair);
}
th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f6f0e4;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td, table tr:hover td { background: rgba(217, 201, 168, 0.12); }

.tblwrap th:first-child, .tblwrap td:first-child {
  position: sticky;
  left: 0;
  background: var(--card);
  box-shadow: 3px 0 6px -3px rgba(75, 55, 30, 0.15);
  min-width: 8.5rem;
}
.tblwrap th:first-child { background: #f6f0e4; }

tr.us td { background: var(--blush); }
tr.us td:first-child {
  background: var(--blush);
  border-left: 3px solid var(--terra);
  font-weight: 600;
}
.us-tag {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--terra);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  margin-top: 0.25rem;
}

/* Duell-Tabelle: erste Spalte = Kriterium */
table.duel td:first-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 9.5rem;
}

/* ---------- Duell-Seiten ---------- */

.vs-head { text-align: center; padding: 3rem 0 0.5rem; }
.vs-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 600;
  font-variation-settings: "opsz" 100;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0.8rem 0;
  text-wrap: balance;
}
.vs-badge {
  display: inline-block;
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--terra);
  letter-spacing: 0.02em;
}
.vs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.4rem 0; }
.vs-col {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow);
}
.vs-col h2, .vs-col h3 { margin-top: 0; font-size: 1.15rem; }
@media (max-width: 640px) { .vs-cols { grid-template-columns: 1fr; } }

/* Duell-Linkliste auf der Startseite */
.duel-list { columns: 2; column-gap: 2.4rem; padding-left: 1.25rem; }
@media (max-width: 640px) { .duel-list { columns: 1; } }

/* ---------- Fußzeile ---------- */

footer {
  margin: 4.5rem 0 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
}
footer .ornament { margin: 0 auto 1rem; }

::selection { background: var(--gold); color: var(--ink); }
