/* ZwiebelTech.com – gemeinsames Grundgerüst für alle Seiten (Startseite, App-Unterseiten, Rechtstexte).
   Stil: Neobrutalismus – dicke Konturen, harte Offset-Schatten, keine Verläufe/Blur.
   Kein Build-Schritt, reines CSS. */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #f2ede1;
  --ink: #111111;
  --card: #fffdf7;
  --muted: #4b4740;
  --dim: #857f72;
  --line: var(--ink);

  --orange: #ff6b35;
  --blue: #2f6fed;
  --green: #2fbf71;
  --yellow: #ffd23f;
  --pink: #ff5d9e;
  --red: #ef4444;

  --liste-1: #ff6b35;
  --liste-2: #ffd23f;
  --liste-3: #8a9a7e;

  --trip-1: #2f6fed;
  --trip-2: #2fbf71;
  --trip-3: #ef4444;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --shadow-hover: 8px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(#00000012 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Space Mono", "Courier New", monospace;
  line-height: 1.6;
}

h1, h2, h3, .display { font-family: "Archivo Black", sans-serif; font-weight: 400; }

a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */

.site-nav { border-bottom: 3px solid var(--ink); background: var(--bg); position: sticky; top: 0; z-index: 40; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; display: block; }
.brand b, .brand { font-family: "Archivo Black", sans-serif; font-size: 1.05rem; color: var(--ink); }

.nav-links { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  display: inline-block; white-space: nowrap;
  text-decoration: none; font-weight: 700; font-size: 0.82rem;
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--card); color: var(--ink);
  transition: background .15s ease, transform .1s ease;
}
.nav-links a:hover { background: var(--yellow); }
.nav-links a.current { background: var(--ink); color: var(--bg); }

@media (max-width: 640px) {
  .site-nav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; row-gap: 10px; }
}

/* ---------- Footer ---------- */

section { padding: 56px 0; }
section.tight { padding: 24px 0 40px; }

.site-footer { border-top: 3px solid var(--ink); padding: 28px 0; font-size: 0.82rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
  font-weight: 700; font-family: "Space Mono", monospace; font-size: 0.95rem;
  text-decoration: none; color: var(--ink); background: var(--card);
  cursor: pointer; transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--yellow); }
.btn-ghost { background: var(--card); }

/* ---------- Cards ---------- */

.card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}

/* ---------- Store badges ---------- */

.store-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 4px; }

.store-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 3px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--card); box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none; font-size: 0.82rem;
  cursor: default; position: relative;
}
.store-badge .glyph { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.store-badge .glyph svg { width: 100%; height: 100%; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .txt .top { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--dim); }
.store-badge .txt .bottom { font-size: 0.9rem; font-weight: 700; font-family: "Archivo Black", sans-serif; }
.store-badge .soon {
  margin-inline-start: 4px; font-size: 0.64rem; padding: 3px 8px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); white-space: nowrap;
}

/* ---------- Legal pages ---------- */

.legal-header { padding: 44px 0 26px; text-align: center; }
.legal-header h1 { margin: 0 0 8px; font-size: 1.8rem; }
.legal-header p { margin: 0; color: var(--muted); font-weight: 700; }

.legal-card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 30px 34px; margin-bottom: 56px;
}
.legal-card h2 { font-family: "Space Mono", monospace; font-weight: 700; font-size: 1rem; margin: 26px 0 8px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 6px; color: var(--muted); }
.legal-card ul { margin: 0 0 6px; padding-inline-start: 20px; color: var(--muted); }
.legal-card li { margin-bottom: 4px; }
.legal-card .placeholder { color: #b5502f; font-weight: 700; background: var(--yellow); display: inline-block; padding: 1px 6px; border: 2px solid var(--ink); border-radius: 4px; }

.legal-disclaimer { margin-top: 26px; font-size: 0.8rem; color: var(--dim); }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin: 26px 0 6px;
  color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 700;
}
.back-link:hover { text-decoration: underline; }

/* ---------- misc ---------- */

.eyebrow, .sticker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  padding: 7px 16px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--pink); box-shadow: var(--shadow-sm); transform: rotate(-2deg);
}
.eyebrow { background: var(--card); transform: none; box-shadow: none; padding: 6px 14px; }

.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.section-title h2 { font-size: 1.9rem; margin: 0; }
.section-title .num {
  width: 42px; height: 42px; border: 3px solid var(--ink); border-radius: 10px;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif; box-shadow: var(--shadow-sm); flex: none;
}

/* ---------- Phone mockup ---------- */

.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: center; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.showcase .copy h2 { margin: 10px 0 12px; font-size: 1.7rem; }
.showcase .copy p { color: var(--muted); max-width: 460px; }
@media (max-width: 760px) { .showcase .copy p { margin-inline: auto; } }
.showcase .note { margin-top: 14px; font-size: 0.78rem; color: var(--dim); }

.phone-mock {
  position: relative; width: 260px; height: 540px; margin: 0 auto; padding: 10px;
  border-radius: 34px; background: var(--card);
  border: 3px solid var(--ink); box-shadow: var(--shadow-lg); flex: none;
}
.phone-mock .notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 16px; border-radius: 10px; background: var(--ink); z-index: 2;
}
.phone-mock .screen {
  position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; border: 2px solid var(--ink);
}

.phone-mock .screen img.real-shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block;
}

.mock-liste-screen .mbody, .mock-trip-screen .mbody { flex: 1; min-height: 0; overflow: hidden; }

.mock-tabbar {
  flex: none; height: 54px; display: flex; align-items: center; justify-content: space-around;
  background: #fff; border-top: 2px solid var(--ink);
}
.mock-tabbar .tab { width: 20px; height: 20px; border-radius: 6px; background: #ddd8c8; border: 2px solid var(--ink); }
.mock-tabbar .tab.active { background: var(--accent-1, var(--orange)); }

.mock-liste-screen { background: #fdf8ec; }
.mock-liste-screen .mhead {
  background: var(--accent-1, var(--orange)); border-bottom: 2px solid var(--ink);
  padding: 22px 16px 14px; text-align: center; color: var(--ink);
  font-weight: 700; font-size: 0.95rem; font-family: "Archivo Black", sans-serif;
}
.mock-liste-screen .mcat {
  padding: 12px 14px 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.3px;
  color: var(--muted); text-transform: uppercase;
}
.mock-liste-row {
  display: flex; align-items: center; gap: 10px; margin: 6px 12px; padding: 9px 12px;
  background: #fff; border: 2px solid var(--ink); border-radius: 10px;
}
.mock-liste-row .cb {
  width: 18px; height: 18px; border-radius: 5px; flex: none; border: 2px solid var(--ink);
  background: var(--accent-2, var(--yellow)); display: flex; align-items: center; justify-content: center;
}
.mock-liste-row .cb.empty { background: #fff; }
.mock-liste-row .cb svg { width: 11px; height: 11px; color: var(--ink); }
.mock-liste-row .bar { height: 8px; border-radius: 5px; background: #ece6d4; flex: 1; }
.mock-liste-row.done .bar { opacity: 0.5; }

.mock-trip-screen { background: #eef2f8; }
.mock-trip-screen .mhead {
  background: #fff; border-bottom: 2px solid var(--ink);
  padding: 18px 16px 12px; text-align: center; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); font-family: "Archivo Black", sans-serif;
}
.mock-trip-map {
  position: relative; height: 190px; margin: 12px 14px 0; border-radius: 12px;
  border: 2px solid var(--ink); background: #fff; overflow: hidden;
}
.mock-trip-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mock-trip-legs { padding: 10px 12px; display: grid; gap: 6px; }
.mock-trip-leg {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 2px solid var(--ink); border-radius: 10px; padding: 6px 10px;
}
.mock-trip-leg .sw { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 2px solid var(--ink); }
.mock-trip-leg .meta { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mock-trip-leg .meta .l1 { font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.mock-trip-leg .meta .l2 { font-size: 0.66rem; color: var(--dim); }
.mock-trip-leg .pct { font-size: 0.72rem; font-weight: 700; }

/* ---------- App sub-pages (Liste / TripDuel) ---------- */

body.theme-liste { --accent-1: var(--liste-1); --accent-2: var(--liste-2); --accent-3: var(--liste-3); }
body.theme-tripduel { --accent-1: var(--trip-1); --accent-2: var(--trip-2); --accent-3: var(--trip-3); }

.app-hero { padding: 60px 0 40px; }
.app-hero .top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.app-hero img.icon { width: 92px; height: 92px; border-radius: 20px; border: 3px solid var(--ink); box-shadow: var(--shadow); }
.app-hero h1 { margin: 0 0 8px; font-size: 2.2rem; }
.app-hero .status-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; font-weight: 700;
  padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
  margin-bottom: 10px;
}
.app-hero .status-pill .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-1); }
.app-hero p.lead { max-width: 620px; margin: 20px 0 0; color: var(--muted); font-size: 1.02rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-md);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.feature-card .ico {
  width: 36px; height: 36px; border-radius: 9px; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-1, var(--yellow)); color: var(--ink); margin-bottom: 12px;
}
.feature-card .ico svg { width: 18px; height: 18px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1rem; font-family: "Archivo Black", sans-serif; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.legal-box {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-md);
  padding: 20px 24px; box-shadow: var(--shadow-sm);
}
.legal-box p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.legal-box .links { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-box .links a {
  font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--ink);
  padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg);
}
.legal-box .links a:hover { background: var(--yellow); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card);
}

.placeholder-note {
  font-size: 0.85rem; font-style: italic; color: var(--muted) !important;
  border: 2px solid var(--ink); background: var(--yellow); border-radius: 8px; padding: 8px 12px;
  display: inline-block;
}

/* ---------- Apps grid (Startseite) ---------- */

.apps-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
@media (max-width: 760px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  display: block; transition: transform .15s ease, box-shadow .15s ease;
}
.app-card:nth-child(1) { transform: rotate(-1deg); }
.app-card:nth-child(2) { transform: rotate(1deg); }
.app-card:hover { transform: translate(-3px,-3px) rotate(0deg); box-shadow: 10px 10px 0 var(--ink); }
.app-card .top-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-card img.icon { width: 56px; height: 56px; border-radius: 14px; border: 3px solid var(--ink); }
.app-card h3 { margin: 0; font-size: 1.3rem; }
.app-card .tagline { font-size: 0.92rem; margin: 0 0 16px; color: var(--muted); }
.app-card .pill-row { margin-bottom: 16px; }
.app-card .go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.app-card .go svg { width: 16px; height: 16px; }

/* ---------- Warum ZwiebelTech (Ringe / Schichten) ---------- */

.why-grid { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

.rings-art { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.rings-art img { width: 100%; height: 100%; }
.rings-art .tag {
  position: absolute; font-size: 0.68rem; font-weight: 700; white-space: nowrap;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px;
  box-shadow: var(--shadow-sm);
}
.rings-art .tag.t1 { top: -10px; left: -30px; transform: rotate(-4deg); }
.rings-art .tag.t2 { right: -46px; top: 78px; transform: rotate(3deg); }
.rings-art .tag.t3 { bottom: -14px; left: 20px; transform: rotate(-2deg); }

.why-copy h2 { font-size: 1.9rem; margin: 12px 0 14px; }
.why-copy p { color: var(--muted); max-width: 560px; }

/* ---------- About ---------- */

.about-box {
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 34px; display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
@media (max-width: 700px) { .about-box { grid-template-columns: 1fr; text-align: center; } }
.about-box .avatar {
  width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--ink);
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center; font-family: "Archivo Black", sans-serif; font-size: 1.6rem;
  box-shadow: var(--shadow-sm); flex: none; margin: 0 auto;
}
.about-box p { margin: 0; font-size: 0.95rem; }
