/* === Variables & Reset === */
:root {
  --paper: #F5F0E8;
  --ink: #1A1A1A;
  --accent: #C8102E;
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Source Serif 4', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --sidebar-width: 280px;
  --max-width: 1120px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* === Masthead === */
.masthead {
  text-align: center;
  padding: 2rem 1.5rem 0.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.masthead-rule {
  height: 0;
}

.masthead-rule--top {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-top: 4px;
  margin-bottom: 1rem;
}

.masthead-rule--bottom {
  border-top: 1px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-top: 4px;
  margin-top: 0.5rem;
}

.masthead-edition {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #666;
  margin-bottom: 0.25rem;
}

.masthead-title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.masthead-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #555;
  margin-top: 0.5rem;
}

/* === Social Links === */
.masthead-social--top {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--accent);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* === Main Tabs (Blog / Tutorials) === */
.main-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
}

.main-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-weight: 400;
}

.main-tab:hover {
  color: var(--ink);
}

.main-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* === Start Page === */
.home-lead {
  max-width: 760px;
  margin: 1rem auto 3rem;
  text-align: center;
  padding: 0 0.5rem;
}

.home-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #666;
  margin-bottom: 1rem;
}

.home-headline {
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.home-deck {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: #2a2a2a;
  max-width: 640px;
  margin: 0 auto 1rem;
}

.home-signature {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #888;
  margin-top: 0.5rem;
}

.home-rubriken {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin-bottom: 3rem;
}

.home-rubrik-card {
  text-align: left;
  background: transparent;
  border: none;
  border-right: 1px solid var(--ink);
  padding: 1.6rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s;
}

.home-rubrik-card:last-child {
  border-right: none;
}

.home-rubrik-card:hover {
  background: rgba(200, 16, 46, 0.04);
}

.home-rubrik-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
}

.home-rubrik-title {
  font-family: var(--font-headline);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.home-rubrik-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333;
  flex: 1;
}

.home-rubrik-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.8rem;
  border-top: 1px solid #ddd;
}

.home-rubrik-arrow {
  color: var(--accent);
  font-size: 1rem;
  transition: transform 0.15s;
}

.home-rubrik-card:hover .home-rubrik-arrow {
  transform: translateX(3px);
}

.home-section-header {
  border-top: 2px solid var(--ink);
  padding-top: 0.8rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.home-section-title {
  font-family: var(--font-headline);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

.home-section-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #666;
  margin: 0;
}

.home-free {
  margin-bottom: 3rem;
}

.home-free-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.home-free-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 2px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, transform 0.15s;
}

.home-free-card:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.home-free-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-free-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.home-free-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #bbb;
  font-weight: 600;
}

.home-free-card:hover .home-free-eyebrow {
  color: #f4c4c4;
}

.home-free-title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-free-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ccc;
  margin-top: 0.2rem;
}

.home-free-card:hover .home-free-meta {
  color: #fff;
}

.home-latest {
  margin-bottom: 3rem;
}

.home-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.home-latest-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s;
}

.home-latest-card:hover {
  transform: translateY(-2px);
}

.home-latest-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0.25rem;
}

.home-latest-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #777;
}

.home-latest-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

.home-latest-card:hover .home-latest-title {
  color: var(--accent);
}

.home-latest-more {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.home-latest-more:hover {
  text-decoration: underline;
}

.home-newsletter {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 1.4rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.home-newsletter-text {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.home-newsletter-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.home-newsletter-btn:hover {
  background: #a00d25;
}

@media (max-width: 780px) {
  .home-rubriken {
    grid-template-columns: 1fr;
  }
  .home-rubrik-card {
    border-right: none;
    border-bottom: 1px solid var(--ink);
  }
  .home-rubrik-card:last-child {
    border-bottom: none;
  }
  .home-free-band,
  .home-latest-grid {
    grid-template-columns: 1fr;
  }
  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .home-newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === Projekte Page === */
.projekte-lead {
  max-width: 760px;
  margin: 1rem auto 2.5rem;
  text-align: center;
  padding: 0 0.5rem;
}

.projekte-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #666;
  margin-bottom: 1rem;
}

.projekte-headline {
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.projekte-deck {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: #2a2a2a;
  max-width: 640px;
  margin: 0 auto;
}

.projekte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  margin-bottom: 2.5rem;
}

.projekt-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 2rem 1.4rem;
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
}

.projekt-card:last-child {
  border-bottom: none;
}

.projekt-card:hover {
  background: rgba(200, 16, 46, 0.04);
}

.projekt-card-number {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.projekt-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projekt-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.projekt-card-name {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

.projekt-card-domain {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 0.4rem;
}

.projekt-card-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2a2a2a;
  margin: 0;
}

.projekt-card-link {
  align-self: flex-start;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.15s, letter-spacing 0.15s;
}

.projekt-card-link span {
  display: inline-block;
  transition: transform 0.15s;
}

.projekt-card:hover .projekt-card-link span {
  transform: translateX(3px);
}

.projekte-footer-note {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 0.5rem 2rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
  border-top: 1px solid #ddd;
}

.projekte-footer-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

@media (max-width: 780px) {
  .projekt-card {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1.5rem 1rem;
  }
  .projekt-card-number {
    font-size: 2.4rem;
  }
}

/* === Blog Grid === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.blog-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.blog-card-title {
  display: none;
}

/* Blog-Card-Variante für TLDR-Cards (Text statt Bild) */
.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.blog-grid .blog-card:has(.blog-card-date) {
  /* TLDR-Cards: zeigen Datum/Titel/Teaser als Text */
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e5ddd1;
  flex-direction: column;
  justify-content: flex-start;
}
.blog-grid .blog-card .blog-card-date + .blog-card-title {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.blog-card-teaser {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* === TLDR Post (Einzel-Seite) === */
.tldr-post .tldr-item {
  border-top: 1px solid #e5ddd1;
  padding: 1.5rem 0 1.25rem;
}
.tldr-post .tldr-item:first-of-type {
  border-top: 3px solid var(--ink);
}
.tldr-item-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.tldr-item-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin: 0 0 0.75rem;
}
.tldr-item-source a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.tldr-item-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: #1a1a1a;
  margin: 0 0 0.6rem;
}
.tldr-item-relevance {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: #f5f0e4;
  border-left: 3px solid var(--accent);
  border-radius: 2px;
}

/* === 2-Column Layout === */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  align-items: start;
}

.layout.blog-layout {
  grid-template-columns: 1fr;
}

.layout.blog-layout .sidebar {
  display: none;
}

/* === Downloads === */
.dl-subtabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #ddd;
}

.dl-subtab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.dl-subtab:hover {
  color: var(--ink);
}

.dl-subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dl-category {
  margin-bottom: 2rem;
}

.dl-category-title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

.dl-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.6rem;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dl-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dl-item-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.3;
}

.dl-item-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.4rem;
  border: 1px solid #bbb;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

/* === Sidebar === */
.sidebar {
  position: sticky;
  top: 20px;
}

.progress-section {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  display: block;
  width: 100%;
}

/* === Globe Loader === */
.globe-loader {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}

.globe-loader__globe,
.globe-loader__whirl svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe-loader__whirl {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.globe-loader__whirl-inner {
  animation: globe-spin 2.6s linear infinite;
  transform-origin: 50% 50%;
}

.globe-loader__whirl-outer {
  animation: globe-spin-rev 5.2s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes globe-spin     { to { transform: rotate(360deg);  } }
@keyframes globe-spin-rev { to { transform: rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  .globe-loader__whirl-inner,
  .globe-loader__whirl-outer { animation: none; }
}

#progress-label {
  font-weight: 600;
  color: var(--ink);
}

.progress-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 1.25rem;
}

/* === Sidebar Tree Navigation === */
.sidebar-tree {
  margin-bottom: 1.5rem;
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

/* Group wrapper (e.g. "Claude" containing Chat, CoWork, Code) */
.tree-group {
  margin-bottom: 0.75rem;
}

.tree-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  font-weight: 600;
}

.tree-group-title:hover {
  color: var(--accent);
}

.tree-group-title .tree-block-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  transition: transform 0.2s;
  color: #999;
}

.tree-group.open .tree-group-title .tree-block-arrow {
  transform: rotate(90deg);
}

.tree-group-children {
  display: none;
  padding-left: 0.5rem;
}

.tree-group.open .tree-group-children {
  display: block;
}

/* Sub-block inside a group */
.tree-subblock {
  margin-bottom: 0.25rem;
}

.tree-subblock .tree-block-title {
  font-size: 0.65rem;
  padding: 0.3rem 0;
  font-weight: 500;
}

.tree-block {
  margin-bottom: 0.75rem;
}

.tree-block-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  font-weight: 600;
}

.tree-block-title:hover {
  color: var(--accent);
}

.tree-block-icon {
  font-size: 0.85rem;
}

.tree-block-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  transition: transform 0.2s;
  color: #999;
}

.tree-block.open .tree-block-arrow {
  transform: rotate(90deg);
}

.tree-tutorials {
  display: none;
  padding-left: 0.25rem;
}

.tree-block.open .tree-tutorials {
  display: block;
}

.tree-tutorial {
  display: block;
  padding: 0.35rem 0 0.35rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  cursor: pointer;
  border-left: 2px solid #ddd;
  transition: border-color 0.2s, color 0.2s;
}

.tree-tutorial:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.tree-tutorial.active {
  border-left-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.tree-tutorial.completed::before {
  content: "\2713 ";
  color: #888;
}

/* === Sidebar ToC (Steps of current tutorial) === */
.sidebar-toc {
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
}

.sidebar-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin-bottom: 0.5rem;
}

.toc-link {
  display: block;
  padding: 0.3rem 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted #ddd;
  transition: color 0.2s;
}

.toc-link:hover {
  color: var(--accent);
}

.toc-link.done {
  color: #888;
  text-decoration: line-through;
}

/* === Breadcrumb === */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 1rem;
}

.breadcrumb-sep {
  margin: 0 0.4rem;
  color: #ccc;
}

.breadcrumb-current {
  color: var(--accent);
}

/* === Main Content === */
.main-content {
  min-width: 0;
}

.tutorial-title {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.tutorial-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tutorial-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ccc;
}

/* === Step Cards (Accordion) === */
.step-card {
  border: 1px solid #bbb;
  margin-bottom: 1.25rem;
  background: #fff;
  transition: box-shadow 0.2s;
}

.step-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.step-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1.25rem;
  user-select: none;
  gap: 0.75rem;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.step-number.done {
  background: var(--accent);
  color: #fff;
}

.step-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  flex: 1;
}

.accordion-icon {
  font-size: 1.1rem;
  color: #999;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.step-card.open .accordion-icon {
  transform: rotate(180deg);
}

.step-body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #eee;
}

.step-card.open .step-body {
  display: block;
}

.step-body p {
  margin-bottom: 0.75rem;
}

.step-body h4 {
  font-family: var(--font-headline);
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
}

.step-body ul, .step-body ol {
  margin: 0.5rem 0 0.75rem 1.5rem;
}

.step-body li {
  margin-bottom: 0.3rem;
}

.step-body pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
}

.step-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0,0,0,0.06);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

.step-body pre code {
  background: none;
  padding: 0;
}

.step-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(200,16,46,0.03);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Screenshot === */
.screenshot-container {
  margin: 1.25rem 0;
}

.screenshot-img {
  width: 100%;
  border: 1px solid #ccc;
  display: block;
}

.screenshot-placeholder {
  background: #e8e4dc;
  border: 2px dashed #bbb;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #777;
  line-height: 1.5;
}

.screenshot-placeholder::before {
  content: "📸";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* === Download Button === */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.download-btn:hover {
  background: var(--accent);
  color: #fff;
}

.download-btn::before {
  content: "↓";
  font-size: 1rem;
  font-weight: 700;
}

/* === Tip Box (Pull Quote) === */
.tip-box {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(200,16,46,0.04);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tip-box::before {
  content: "Tipp";
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* === Author Note (Hinweis für Lucca) ===
   Inhalt bleibt in tutorials.js erhalten, wird aber nicht mehr gerendert.
   Zum Wiederaktivieren: display: none entfernen. */
.author-note {
  display: none;
}

/* === Done Toggle === */
.done-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #ccc;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.done-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #ccc;
}

.print-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.print-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #999;
  margin-top: 1rem;
}

.footer-legal {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #999;
  margin-top: 0.4rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.footer-legal a {
  color: #ccc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.footer-legal a:hover {
  color: var(--paper);
  border-bottom-color: var(--accent);
}

.footer-legal span {
  color: #666;
}

/* === Legal Pages (Impressum, Datenschutz) === */
.legal-page {
  max-width: 720px;
  margin: 1rem auto 2rem;
  padding: 0 0.5rem;
  font-family: var(--font-body);
  color: var(--ink);
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #666;
  margin-bottom: 0.8rem;
}

.legal-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #888;
  margin: 0 0 2rem;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0d8cc;
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  color: #2a2a2a;
}

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

.legal-section ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.legal-section ul li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.4rem;
  color: #2a2a2a;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

.legal-section a:hover {
  background: rgba(200, 16, 46, 0.08);
}

.legal-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f0ebdf;
  padding: 1px 5px;
  border-radius: 2px;
}

.legal-back {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legal-back a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* === Responsive === */
@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .progress-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
  }

  .globe-loader {
    width: 80px;
    height: 80px;
  }

  .progress-caption {
    margin: 0;
  }

  .masthead {
    padding: 1.5rem 1rem 0.5rem;
  }

  .tutorial-title {
    font-size: 1.6rem;
  }

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

  .main-tab {
    padding: 0.7rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* === Print Styles === */
@media print {
  .sidebar,
  .print-btn,
  .footer {
    display: none !important;
  }

  body {
    background: white;
    font-size: 12pt;
    color: black;
  }

  .masthead {
    padding: 0.5cm 0;
  }

  .layout {
    display: block;
    padding: 0;
  }

  .step-card {
    border: 1px solid #999;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .step-body {
    display: block !important;
  }

  .done-toggle {
    display: none;
  }

  .tip-box {
    border-left: 3px solid #666;
    background: #f5f5f5;
  }

  .screenshot-placeholder {
    border: 1px solid #999;
    background: #f0f0f0;
  }

  .download-btn {
    border: 1px solid #999;
    color: black;
  }

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

/* === Newsletter Gate === */

/* Overlay */
.gate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}
.gate-overlay.visible {
  display: flex;
}

/* Modal */
.gate-modal {
  background: var(--paper);
  border: 2px solid var(--ink);
  max-width: 460px;
  width: 90%;
  padding: 2.5rem 2.5rem 2rem;
  position: relative;
  text-align: center;
}
.gate-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.2s;
}
.gate-close:hover {
  opacity: 1;
}
.gate-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.gate-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  line-height: 1.3;
}
.gate-text {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.75rem;
}
.gate-form {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
}
.gate-form input[type="email"] {
  flex: 1;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--ink);
  border-right: none;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.gate-form input[type="email"]::placeholder {
  color: #999;
}
.gate-form input[type="email"]:focus {
  border-color: var(--accent);
}
.gate-form button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.gate-form button:hover {
  background: #333;
}
.gate-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #aaa;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gate-divider::before,
.gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}
.gate-unlock-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.gate-unlock-btn:hover {
  background: #a00d24;
}
.gate-hint {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: #aaa;
  margin: 1.25rem 0 0;
  line-height: 1.5;
}

/* Locked sidebar items */
.tree-tutorial.locked {
  opacity: 0.5;
  cursor: pointer;
}
.tree-tutorial.locked:hover {
  opacity: 0.7;
}
.lock-icon {
  font-size: 0.75em;
}

/* Locked download items */
.dl-item-locked {
  opacity: 0.45;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
  transition: opacity 0.2s;
}
.dl-item-locked:hover {
  opacity: 0.65;
}

/* Gate teaser in main content */
.gate-teaser {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px dashed #ccc;
  margin: 2rem 0;
}
.gate-teaser-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.gate-teaser h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}
.gate-teaser p {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: #555;
  margin: 0 0 1.5rem;
}
.gate-teaser-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.gate-teaser-btn:hover {
  background: #a00d24;
}
