/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Variablen ── */
:root {
  --ink:      #18140f;
  --paper:    #f7f3eb;
  --cream:    #ede7d9;
  --rule:     #c8bfae;
  --muted:    #7a6e61;
  --accent1:  #8b3a1e;
  --accent2:  #1e4d8b;
  --accent3:  #2d5a3d;
  --accent4:  #5a3a7a;
}

/* ── Body ── */
body {
  font-family: 'Inconsolata', monospace;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Papier-Textur Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Hero ── */
.hero {
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}

/* Dekorativer linker Balken */
.hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0px, var(--ink) 12px,
    transparent 12px, transparent 20px
  );
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--muted);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}
h1 em { font-style: italic; color: var(--accent1); }

.hero-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-meta {
  text-align: right;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 2.2;
  border-left: 1px solid var(--rule);
  padding-left: 1.5rem;
}
.hero-meta strong {
  display: block;
  font-size: 1.8rem;
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

/* ── Navigation ── */
.nav-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 2rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
}
.nav-strip a {
  color: #a09080;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 1rem;
  border-right: 1px solid #3a3530;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-strip a:first-child { padding-left: 0; }
.nav-strip a:hover,
.nav-strip a.active { color: var(--paper); }

/* ── Main ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Section Header ── */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}
.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
}
.section-head .count {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Tool Grid ── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(24,20,15,0.12);
}
.tool-card::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--card-accent, var(--ink));
}

.tool-card-body { padding: 1.4rem 1.4rem 1rem; flex: 1; }

.tool-number {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--card-accent, var(--muted));
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.tool-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.tool-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

.tool-card-footer {
  padding: 0.8rem 1.4rem;
  border-top: 1px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
}

.tool-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.2rem 0.5rem;
  color: var(--muted);
}

.tool-cta {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent, var(--ink));
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s;
  white-space: nowrap;
}
.tool-card:hover .tool-cta { gap: 0.7rem; }

.tool-card.soon {
  opacity: 0.55;
  pointer-events: none;
}
.tool-card.soon::after {
  content: 'Demnächst';
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 0.2rem 0.5rem;
}

/* ── Info Grid ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-box {
  border: 1px solid var(--rule);
  padding: 1.4rem;
  background: #fff;
}
.info-box h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--cream);
}
.info-box p,
.info-box li {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.8;
}
.info-box ul { padding-left: 1rem; }
.info-box li { margin-bottom: 0.2rem; }

/* ── Details / Dropdown ── */
#hinweise { margin-bottom: 4rem; }

details {
  border: 1px solid var(--rule);
  background: #fff;
}
details[open] {
  border-color: var(--ink);
}

/* summary = die klickbare Titelzeile */
summary {
  list-style: none;             /* entfernt Browser-Dreieck */
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 0.8rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
/* Chrome/Safari brauchen diesen Extra-Reset */
summary::-webkit-details-marker { display: none; }

summary:hover { background: var(--cream); }

/* Pfeil-Icon rechts — dreht sich beim Öffnen */
summary::after {
  content: '▾';
  font-family: 'Inconsolata', monospace;
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(-180deg); }

/* Inhalt innerhalb details */
details .info-grid {
  padding: 1.5rem 1rem;
  margin-bottom: 0;
}

/* ── Quellen ── */
#quellen { margin-bottom: 2rem; }

/* ── Impressum / Rechtliches ── */
.masthead {
  border-bottom: 3px double var(--ink);
  padding: 0.6rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead a { color: var(--accent1); text-decoration: none; }
.masthead a:hover { text-decoration: underline; }

.page-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.page-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.page-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent1); }

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.page-header h1 em { font-style: italic; color: var(--accent1); }

.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.legal-section h2 .section-num {
  font-family: 'Inconsolata', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent1);
  font-style: normal;
}
.legal-section h3 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.6rem;
}
.legal-section p {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.address-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent1);
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 2;
  margin: 1rem 0;
  color: var(--ink);
}

/* details im Impressum: kleinere Monospace-summary */
.legal-section details { margin-bottom: 0.5rem; }
.legal-section summary {
  font-family: 'Inconsolata', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Blaue Info-Box */
.info-note {
  background: #e8f0fb;
  border-left: 3px solid var(--accent2);
  padding: 1rem 1.3rem;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #1a2e4a;
  margin: 1.2rem 0;
}
.info-note strong { font-weight: 600; }

/* details-Inhalt im Impressum hat etwas Padding */
.legal-section details p,
.legal-section details .address-block {
  margin: 0.8rem 1.2rem 1rem;
}

/* ── Footer ── */
footer {
  background: var(--ink);
  color: #a09080;
  padding: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  line-height: 2;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
footer a { color: #c4b49a; text-decoration: none; }
footer a:hover { color: var(--paper); }

/* ── Animationen ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tool-card:nth-child(1) { animation: fadeUp 0.5s 0.15s ease both; }
.tool-card:nth-child(2) { animation: fadeUp 0.5s 0.25s ease both; }
.tool-card:nth-child(3) { animation: fadeUp 0.5s 0.35s ease both; }
.tool-card:nth-child(4) { animation: fadeUp 0.5s 0.45s ease both; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
