/* ============================================
   ubuntu-pics.de – Stylesheet v2
   Eigene Formensprache, Orange + Aubergine
   Kein Desktop-UI-Imitat
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --orange: #E95420;
  --orange-light: #F47421;
  --orange-glow: rgba(233,84,32,0.15);
  --aubergine: #2C001E;
  --aubergine-mid: #3D0030;
  --aubergine-light: #5E2750;
  --text: #E8E0DC;
  --text-muted: #B8A8A0;
  --border: rgba(255,255,255,0.07);
  --card-bg: rgba(255,255,255,0.03);
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --nav-h: 56px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--aubergine);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(94,39,80,0.5) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(61,0,48,0.7) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(30,0,20,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
}

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

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.brand-icon-fallback {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--orange), var(--aubergine-light));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.brand-name span { color: var(--orange); }

.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topnav a {
  font-size: 13px;
  color: #C0B0A8;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.topnav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.topnav a.active { color: var(--orange); }

.lang-sw {
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
}

.lang-sw a {
  font-family: var(--mono);
  font-size: 11px;
  color: #C8B8B0;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.15s;
}

.lang-sw a:hover,
.lang-sw a.active {
  background: var(--orange-glow);
  color: var(--orange);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(28,0,18,0.97);
  backdrop-filter: blur(14px);
  z-index: 999;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 14px;
  color: #C0B0A8;
  text-decoration: none;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.mobile-menu a:hover { color: var(--orange); }

/* ── MAIN ── */
.main-content {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h) - 60px);
}

/* ── CONTAINER ── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── SECTION ── */
.section { padding: 56px 0; }

/* ── HERO ── */
.hero {
  padding: 72px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: #FF8860;
  background: var(--orange-glow);
  border: 1px solid rgba(233,84,32,0.25);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 300;
  color: white;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--orange);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 4px 20px rgba(233,84,32,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ── LEGACY COMPAT (alte HTML-Dateien nutzen btn-secondary) ── */
.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.15); }

/* ── SECTION HEADER ── */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 500;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  background: var(--orange-glow);
  border-color: rgba(233,84,32,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.card-icon { font-size: 1.6rem; margin-bottom: 14px; display: block; }
.card h3 { font-size: 0.97rem; font-weight: 500; color: white; margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

/* ── TERMINAL ── */
.terminal {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
}

.terminal-bar {
  background: rgba(255,255,255,0.04);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* neutrale dots, kein macOS/Ubuntu-Imitat */
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
}

/* Legacy compat für terminal-dot Klasse in alten HTML-Dateien */
.terminal-dot { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.terminal-dot.red, .terminal-dot.yellow, .terminal-dot.green { background: rgba(255,255,255,0.12); }

.terminal-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
}

.terminal-body {
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #A8D8A8;
  line-height: 1.9;
}

.terminal-body .prompt { color: var(--orange); }
.terminal-body .comment { color: #7A8A7A; }

/* ── AUFKLAPPBAR ── */
.einfach-box {
  margin: 16px 0;
  border: 1px solid rgba(233,84,32,0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.einfach-box summary {
  background: rgba(233,84,32,0.07);
  padding: 11px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--orange);
  font-family: var(--mono);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: background 0.15s;
}

.einfach-box summary:hover { background: rgba(233,84,32,0.12); }

.einfach-box summary::before {
  content: '▶';
  font-size: 9px;
  transition: transform 0.2s;
}

.einfach-box[open] summary::before { transform: rotate(90deg); }

.einfach-box .einfach-content {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  line-height: 1.75;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 6px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(233,84,32,0.25); }

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  color: white;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card-bg);
  transition: background 0.15s;
}

.faq-item summary:hover { background: rgba(255,255,255,0.05); }

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  line-height: 1.8;
}

.faq-answer a { color: var(--orange); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── ARTICLE ── */
.article-body { max-width: 780px; margin: 0 auto; }

.article-body h2 {
  font-size: 1.35rem;
  font-weight: 500;
  color: white;
  margin: 44px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--orange-light);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 16px; }

.article-body a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.article-body a:hover {
  border-bottom-color: rgba(255,255,255,0.45);
}

.article-body ul,
.article-body ol { margin: 0 0 16px 22px; color: var(--text); }

.article-body li { margin-bottom: 6px; }

.article-body code {
  font-family: var(--mono);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86em;
  color: var(--orange-light);
}

.article-body pre {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 18px 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text);
}

/* ── SCREENSHOT ── */
.screenshot-wrap {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.screenshot-wrap img { width: 100%; height: auto; display: block; }

.screenshot-caption {
  background: rgba(0,0,0,0.4);
  padding: 9px 16px;
  font-family: var(--mono);
  font-size: 0.79rem;
  color: var(--text-muted);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 52px 24px 36px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.page-header h1 strong { font-weight: 600; color: var(--orange); }
.page-header .lead { font-size: 0.98rem; color: var(--text-muted); max-width: 640px; }

/* ── META ── */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 16px 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.meta-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: rgba(255,255,255,0.18); }

/* ── FOOTER ── */
.site-footer {
  background: rgba(0,0,0,0.25);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-disclaimer {
  font-size: 0.79rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-text { font-size: 0.81rem; color: var(--text-muted); }
.footer-text a { color: var(--orange); text-decoration: none; }
.footer-text a:hover { text-decoration: underline; }

.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

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

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

/* ── UTILITY ── */
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--mono); }
.tinted { background: rgba(0,0,0,0.18); }
.mt-0 { margin-top: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .topnav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 48px 20px 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
