/* ============================================================================
   PPPTools Library — Public Website
   Modernes Redesign 2026 · Markenfarbe Orange (harmoniert mit der Online-Hilfe)
   ========================================================================== */

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

:root {
  /* Brand */
  --orange:       #E07820;
  --orange-2:     #F59E42;
  --orange-deep:  #C4641A;
  --coral:        #F0653E;
  --grad:         linear-gradient(135deg, #E07820 0%, #F0653E 100%);
  --grad-soft:    linear-gradient(135deg, #FFF4E8 0%, #FFEFE8 100%);

  /* Neutrals */
  --ink:          #16130F;
  --ink-2:        #463f37;
  --muted:        #8a8178;
  --line:         #ece7e1;
  --line-2:       #f4f0eb;
  --bg:           #fbf9f6;
  --surface:      #ffffff;
  --surface-2:    #fdfbf8;

  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 1px 2px rgba(60,40,20,.05), 0 2px 8px rgba(60,40,20,.04);
  --shadow:       0 4px 16px rgba(70,45,20,.07), 0 12px 32px rgba(70,45,20,.06);
  --shadow-lg:    0 12px 28px rgba(70,45,20,.12), 0 30px 60px rgba(70,45,20,.10);
  --ring:         0 0 0 4px rgba(224,120,32,.15);

  --header-h:     64px;
  --max:          1140px;
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--orange-deep); text-decoration: none; transition: color .15s; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; }
::selection { background: rgba(224,120,32,.22); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange-deep); background: var(--grad-soft);
  border: 1px solid var(--line); padding: 6px 13px; border-radius: 100px;
}
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Header (glass, sticky) ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(251,249,246,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(236,231,225,.8);
  display: flex; align-items: center;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: .8rem;
  box-shadow: 0 4px 10px rgba(224,120,32,.35);
}
.brand .sub { font-weight: 500; color: var(--muted); font-size: .82rem; padding-left: 2px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink-2); padding: 8px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(224,120,32,.08); color: var(--ink); }
.nav a.active { color: var(--orange-deep); background: rgba(224,120,32,.10); }
.nav a.cta { background: var(--ink); color: #fff; margin-left: 6px; }
.nav a.cta:hover { background: var(--orange-deep); }
.nav a.ext::after { content: "↗"; font-size: .78em; opacity: .65; margin-left: 3px; }
.nav a.lang-switch { margin-left: 8px; border: 1px solid var(--border); border-radius: 6px;
  font-size: .78rem; padding: 3px 8px; color: var(--muted); }
.hamburger { display: none; background: none; border: 0; cursor: pointer; font-size: 1.5rem; color: var(--ink); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -2;
  background:
    radial-gradient(45% 55% at 78% 18%, rgba(240,101,62,.30), transparent 60%),
    radial-gradient(40% 50% at 18% 12%, rgba(224,120,32,.26), transparent 62%),
    radial-gradient(50% 60% at 60% 80%, rgba(245,158,66,.18), transparent 60%);
  filter: blur(8px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(120,90,60,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 800; margin: 22px 0 20px; max-width: 14ch;
}
.hero p.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font-size: .96rem; font-weight: 650;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(224,120,32,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224,120,32,.42); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; transform: translateY(-2px); background: #000; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 10px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 76px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.025em; font-weight: 800; line-height: 1.1; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ── Stat band ──────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat { background: var(--surface); padding: 30px 24px; text-align: center; }
.stat .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* ── Bento / feature grid ───────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(224,120,32,.4); }
.card.span2 { grid-column: span 2; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.45rem; background: var(--grad-soft); border: 1px solid var(--line); margin-bottom: 16px;
}
.card h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 7px; }
.card p { color: var(--ink-2); font-size: .94rem; }

/* ── Browse ─────────────────────────────────────────────────────────────── */
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.03em; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 10px; font-size: 1.02rem; }

.filters {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 20;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.filters .fld { display: flex; flex-direction: column; gap: 5px; }
.filters label { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.filters input, .filters select {
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem;
  background: var(--surface); color: var(--ink); font-family: inherit; min-width: 150px; transition: border-color .15s, box-shadow .15s;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--orange); box-shadow: var(--ring); }
.filters .grow { flex: 1; min-width: 220px; }
.filters .grow input { width: 100%; }

.item-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(224,120,32,.45); }
.tile:hover { color: inherit; }
.tile .thumb {
  aspect-ratio: 16/10;
  background-color: var(--surface-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;          /* ganzes Bild sichtbar, nicht beschnitten */
  background-origin: content-box;    /* Rand (padding) bleibt frei */
  padding: 12px;
  display: grid; place-items: center; font-size: 2.6rem; border-bottom: 1px solid var(--line); position: relative;
}
.tile .thumb .tier-pill {
  position: absolute; top: 10px; right: 10px;
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 100px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.tile .body { padding: 16px 17px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tile .ttl { font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.tile .meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600;
  padding: 3px 9px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .73rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 6px; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 10px; }

/* ── Item detail ────────────────────────────────────────────────────────── */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; padding-top: 16px; }
.detail .preview {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 300px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); padding: 18px;
}
.detail .preview img { max-width: 100%; max-height: 460px; height: auto; object-fit: contain; }
.detail h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); letter-spacing: -.025em; font-weight: 800; margin-bottom: 12px; }
.detail .desc { color: var(--ink-2); margin: 18px 0; font-size: 1.05rem; }
.kv { width: 100%; border-collapse: collapse; margin: 20px 0; }
.kv th, .kv td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.kv th { color: var(--muted); font-weight: 600; width: 130px; }
.breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange-deep); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.tier-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: stretch; }
.tier {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tier.featured {
  border-color: transparent; box-shadow: var(--shadow-lg); position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 2px solid transparent;
}
.tier.featured::before {
  content: "Empfohlen"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 100px;
  box-shadow: 0 4px 12px rgba(224,120,32,.4);
}
.tier h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.tier .price { font-size: 1.9rem; font-weight: 800; margin: 12px 0 4px; letter-spacing: -.03em; }
.tier .price small { font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier ul { list-style: none; margin: 18px 0; flex: 1; }
.tier li { padding: 6px 0 6px 26px; position: relative; font-size: .92rem; color: var(--ink-2); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }
.tier li.no { color: var(--muted); }
.tier li.no::before { content: "–"; color: var(--muted); }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 48px 40px; max-width: 580px; margin: 0 auto; box-shadow: var(--shadow); text-align: center;
}
.contact-card .ico-big {
  width: 72px; height: 72px; border-radius: 20px; background: var(--grad-soft); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 18px;
}
.contact-card .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 10px 0; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band {
  background: var(--ink); border-radius: 28px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .85;
  background: radial-gradient(60% 120% at 50% -10%, rgba(240,101,62,.45), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { color: rgba(255,255,255,.72); margin: 12px auto 26px; max-width: 460px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: auto; background: #14110d; color: #b6ada2; padding: 56px 0 30px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand .sub { color: #8a8076; }
.site-footer .blurb { color: #8a8076; max-width: 280px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer a { color: #b6ada2; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--orange-2); }
.site-footer .copy { border-top: 1px solid rgba(255,255,255,.08); margin-top: 34px; padding-top: 20px; color: #6f665d; font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.span2 { grid-column: span 2; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero { padding: 60px 0 56px; }
  .bento, .stats { grid-template-columns: 1fr; }
  .card.span2 { grid-column: span 1; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 12px; right: 12px;
    flex-direction: column; background: var(--surface); padding: 10px; gap: 4px;
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav a.cta { margin-left: 0; text-align: center; justify-content: center; }
  .hamburger { display: block; }
}
