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

:root {
  --bg: #f0efed;
  --surface: #ffffff;
  --border: #e5e5e2;
  --text: #0a0a0a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --accent-orange: #f97316;
  --accent-green: #22c55e;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --max-width: 1120px;
}

body {
  background: radial-gradient(ellipse at top right, #feffff, #E4E6EA);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── HEADER ── */
header {
  background: #F1F2F4;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
}

.logo-text strong {
  font-weight: 800;
  color: var(--text);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #c8c8c4;
  border-radius: 20px;
  padding: 3px;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: -3px;
}

.lang-active {
  background: #111;
  color: #fff;
  padding: 3px 9px;
  border-radius: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-inactive {
  color: var(--text-muted);
  padding: 3px 9px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lang-inactive:hover { color: var(--text); }

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
  line-height: 1;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── MAIN ── */
main {
  padding-top: 64px;
  padding-bottom: 80px;
}

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  align-items: start;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero-left {
  max-width: 460px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  hyphens: auto;
  hyphenate-limit-chars: 8 3 5;
}

.hero-italic {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-orange);
  margin-bottom: 28px;
}

.hero-body {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── SUBSCRIBE CARD ── */
.subscribe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 7px 12px 15px 5px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.subscribe-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.subscribe-kw-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.kw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.subscribe-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.subscribe-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.subscribe-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.subscribe-input-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid #d0d0cc;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-display);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.subscribe-input-row input[type="email"]::placeholder { color: var(--text-muted); }
.subscribe-input-row input[type="email"]:focus { border-color: #aaa; }

.subscribe-btn {
  background: #111;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.subscribe-btn:hover { background: #333; }

.subscribe-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.subscribe-topics-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.subscribe-lists {
  margin-top: 8px;
  margin-bottom: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.list-row:last-child { border-bottom: none; }

.list-row input[type="checkbox"] { display: none; }

.list-row-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.list-row-indicator::after {
  content: '';
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.list-row:has(input:checked) .list-row-indicator {
  background: var(--list-color);
  border-color: var(--list-color);
}

.list-row:has(input:checked) .list-row-indicator::after {
  display: block;
}

.list-row-text {
  flex: 1;
  min-width: 0;
}

.list-row-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.list-row:has(input:not(:checked)) .list-row-name {
  font-weight: 400;
}

.list-row-desc {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-row-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── NEWSLETTER SECTION ── */
.nl-section {
  margin-top: 80px;
}

.section-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-header-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.section-header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-header-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.15s;
}

.section-header-link:hover { color: var(--text-secondary); }

.section-heading {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 16px;
  line-height: 1.1;
}

.section-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 28px;
}

/* ── NEWSLETTER CARDS GRID ── */
.nl-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.nl-cards-grid--archive {
  grid-template-columns: repeat(4, 1fr);
}

.nl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.15s;
  cursor: pointer;
}

.nl-card:hover { border-color: #bbb; }

.nl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.nl-card-week {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.nl-card-dot {
  display: none;
}

.nl-card-list {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--list-color, var(--text-muted));
  background: color-mix(in srgb, var(--list-color, #999) 13%, transparent);
  padding: 2px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.nl-card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 10px;
}

.nl-card-highlights {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* ── ARCHIVE ROW ── */
.archive-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.archive-count {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.archive-link {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}

.archive-link:hover { color: var(--text-secondary); }

/* ── SUGGEST SECTION ── */
.suggest-section {
  margin-top: 48px;
}

.suggest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suggest-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.suggest-plus {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
  line-height: 1;
}

.suggest-text { flex: 1; }

.suggest-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.suggest-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.suggest-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.suggest-form input[type="text"],
.suggest-form textarea {
  padding: 11px 14px;
  border: 1px solid #d0d0cc;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}

.suggest-form input[type="text"]:focus,
.suggest-form textarea:focus { border-color: #aaa; }

.suggest-form input[type="text"]::placeholder,
.suggest-form textarea::placeholder { color: var(--text-muted); }

.suggest-btn {
  background: #111;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  white-space: nowrap;
  transition: background 0.15s;
}

.suggest-btn:hover { background: #333; }

/* ── CHANNEL LIST SECTION ── */
.channels-section {
  margin-top: 56px;
}

.channels-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: space-between;
}

.channels-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.channels-heading {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.channels-total {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: auto;
}

.channel-accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
}

.channel-accordion-row {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.1s;
}

.channel-accordion-row::-webkit-details-marker { display: none; }
.channel-accordion-row:hover { background: #fafaf9; }

.channel-accordion-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--list-color, var(--accent-orange));
  flex-shrink: 0;
}

.channel-accordion-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.channel-accordion-count {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-left: auto;
  margin-right: 12px;
}

.channel-accordion-arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
  line-height: 1;
}

details[open] .channel-accordion-arrow {
  transform: rotate(90deg);
}

/* Handle-Pills im Akkordeon (Startseite) */
.channel-handles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px 16px 42px;
  border-top: 1px solid var(--border);
}

.channel-handle-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  transition: border-color 0.15s, color 0.15s;
}

.channel-handle-pill:hover {
  color: var(--text);
  border-color: #bbb;
  text-decoration: none;
}

.channels-more-link {
  margin-top: 16px;
  text-align: right;
}

.channels-more-link a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-decoration: none;
}

.channels-more-link a:hover { color: var(--text); }

/* Kanäle-Seite (/channels) */
.page-header {
  margin-bottom: 48px;
  padding-top: 8px;
}

.page-heading {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 6px;
}

.page-subheading {
  font-size: 15px;
  color: var(--text-muted);
}

.channels-group {
  margin-bottom: 40px;
}

.channels-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.channels-group-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--list-color, var(--text-muted));
  flex-shrink: 0;
}

.channels-group-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.channels-group-count {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-left: auto;
}

.channels-full-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.channels-full-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.channels-full-item:last-child { border-bottom: none; }

.channels-full-header {
  margin-bottom: 4px;
}

.channels-full-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.channels-full-handle:hover { color: var(--accent-orange); text-decoration: none; }

.channels-full-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── LEGAL PAGES ── */
.legal-content {
  max-width: 680px;
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 8px 0 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-section a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover { color: var(--accent-orange); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-inner {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

/* ── ERROR ── */
.error-msg {
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
}

/* ── STATUS PAGES ── */
.status-page {
  text-align: center;
  padding: 80px 0;
}

.status-page h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.status-page p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.status-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  text-decoration: none;
}

.btn:hover { background: #333; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: transparent; border-color: #aaa; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-h1 { font-size: 48px; }
  .hero-italic { font-size: 48px; }
  .hero-body { max-width: 560px; }

  .nl-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nl-cards-grid--archive {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }

  .nav-links { display: none; }
  .hamburger { display: block; }

  main { padding-top: 40px; padding-bottom: 60px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-h1 { font-size: 42px; }
  .hero-italic { font-size: 42px; }
  .hero-body { max-width: 100%; }

  .subscribe-input-row { flex-direction: column; }
  .subscribe-btn { width: 100%; }

  .section-heading { font-size: 34px; }

  .nl-cards-grid,
  .nl-cards-grid--archive {
    grid-template-columns: 1fr;
  }

  .archive-row {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .archive-count { text-align: center; }

  .archive-link {
    display: block;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    font-size: 14px;
  }

  .suggest-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .suggest-btn { width: 100%; text-align: center; }

  .channels-header { flex-wrap: wrap; gap: 4px; }
  .channels-badge { width: 100%; margin-bottom: 4px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 0;
  }
}
