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

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text-muted: #6e6e73;
  --accent: #0071e3;
  --border: #d2d2d7;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius-large: 32px;
  --nav-height: 64px;
  --max-width: 1100px;
  --transition-fast: 0.2s ease-out;
}

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(210, 210, 215, 0.6);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.nav-logo span {
  color: var(--accent);
}

/* Desktop-Menü */

.nav-menu {
  display: flex;
  list-style: none;
  gap: 18px;
}

.nav-menu a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

/* Tutorials-Dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle span.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition-fast);
}

.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 210, 215, 0.7);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 150;
}

.nav-dropdown-menu a {
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown.open .chevron {
  transform: rotate(-135deg) translateY(1px);
}

/* Burger */

.burger {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.burger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobile-Overlay */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(100%);
  transition: transform var(--transition-fast);
  z-index: 200;
}

.nav-overlay.active {
  transform: translateX(0);
}

/* X-Button im Overlay */

.nav-overlay-header {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.nav-overlay-close {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.nav-overlay-inner {
  padding: 0 24px 24px 24px;
}

.nav-overlay-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-overlay-list a {
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

/* Buttons */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 20px 50px rgba(0, 113, 227, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 113, 227, 0.35);
}

.btn-ghost:hover {
  background: rgba(0, 113, 227, 0.05);
}

/* Hero, Sektionen, Tutorial-Layout und Footer identisch wie zuvor */
.hero {
  padding: 80px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.hero-card {
  background: radial-gradient(circle at top, #ffffff, #f5f5f7);
  border-radius: var(--radius-large);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 210, 215, 0.8);
}

.hero-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.06);
  font-size: 12px;
  color: var(--accent);
}

.section {
  padding: 32px 0 72px;
}

.section-header {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 20px 18px;
  border: 1px solid rgba(210, 210, 215, 0.7);
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 113, 227, 0.5);
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-link {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.page-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfbfd, #ffffff);
}

.page-hero-title {
  font-size: 40px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.page-main {
  padding: 32px 0 72px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: flex-start;
}

.page-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  font-size: 14px;
  color: var(--text-muted);
}

.page-sidebar h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.page-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-sidebar li a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
}

.page-sidebar li a:hover {
  color: var(--text);
}

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

.page-content h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.page-content section {
  margin-bottom: 28px;
}

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .nav-menu {
    display: none;
  }

  .burger {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 56px;
  }

  .hero-title {
    font-size: 40px;
  }
}

/* SELBST GEMACHT */

p {
  margin-top: 0;
  margin-bottom: 1em;
}

pre code {
  display: block;
  background-color: #f4f4f4;
  color: #222;
  padding: 10px;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  margin: 10px 0; /* Extra Abstand zu Paragraphen */
}

.inline-code {
  background-color: #eee; /* grau */
  padding: 0 3px;
  border-radius: 3px;
  font-family: monospace;
}

footer {
  font-family: poppins, sans-serif;
  color: #6e6e73;
  text-decoration: none;
  a {
    color: #6e6e73;
    text-decoration: none;
  }
  a hover {
    color: #6e6e73;
  }
}
