/* Vorführseite Widget 7.22 auf entwicklung.
   Optik angelehnt an /var/docker/demo/site/styles.css (helles Schema),
   ohne Topbar und ohne app.js. */

:root {
  --base: #F7F5F2;
  --header: #FFFFFF;
  --ink: #17181B;
  --ink2: #3A3D42;
  --muted: #5E6167;
  --muted2: #82868C;
  --line: rgba(23,24,27,.07);
  --line2: rgba(23,24,27,.14);
  --pill: rgba(255,255,255,.82);
  --tile: rgba(255,255,255,.86);
  --soft: #F3F2F0;
  --orange: #F0821A;
  --orange-ink: #E2740E;
  --grad: linear-gradient(135deg, #F0821A, #F9A83C);
  --expo: cubic-bezier(.16,1,.3,1);
  --font: Archivo, system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--base);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-ink); }

/* ---------- Hintergrund: Verlauf, Glow, Raster ---------- */
.page { position: relative; min-height: 100vh; overflow: hidden; background: var(--base); }
.bg { position: absolute; inset: 0; pointer-events: none; }
.bg-light { background: linear-gradient(120deg,#FDF2DE 0%,#FBE3CB 32%,#F9CDB0 58%,#EFEFF1 100%); }
.bg-glow  { background: radial-gradient(60% 55% at 74% 12%, rgba(249,168,110,.55), transparent 70%), radial-gradient(50% 50% at 8% 62%, rgba(253,226,176,.6), transparent 72%); }
.bg-grid  {
  background-image: linear-gradient(to right, rgba(23,24,27,.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,24,27,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 62%);
}

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(20px,4vw,64px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-tile {
  width: 46px; height: 46px; border-radius: 12px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.02em;
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(14px,2.4vw,38px); color: var(--ink2); }
.nav-link { font-size: 15px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px,6vw,76px) clamp(20px,4vw,64px) 0;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px; border-radius: 999px;
  font-family: var(--mono); font-size: 14px;
  background: var(--pill); color: var(--ink2); border: 1px solid var(--line);
  text-align: center;
}
.badge-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--orange); flex: none; }
.headline {
  margin: 26px 0 0; max-width: 16ch; text-align: center;
  font-size: clamp(40px,6vw,80px); line-height: 1; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance; color: var(--ink);
}
.headline-accent {
  display: block;
  background: linear-gradient(90deg,#E2600C,#F3902A 45%,#FBC15C);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  margin: 26px 0 0; max-width: 56ch; text-align: center;
  font-size: 17px; line-height: 1.55; text-wrap: pretty; color: var(--muted);
}

/* Platz des Inline-Widgets (Platzhalter #kufer-assistent) */
/* eigene Ebene über den folgenden Zeilen: das aufgeklappte Panel liegt als Overlay über dem Seiteninhalt */
.ask { position: relative; z-index: 5; width: 100%; max-width: 680px; margin: 38px 0 0; min-height: 66px; }
#kufer-assistent { position: relative; z-index: 1; width: 100%; min-height: 66px; }

.popular {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  margin: 34px 0 0; font-family: var(--mono); font-size: 15px; color: var(--muted);
}
.popular a { border-bottom: 1px solid var(--line2); }

/* ---------- Fachbereiche ---------- */
.fields { position: relative; z-index: 5; padding: clamp(56px,7vw,96px) clamp(20px,4vw,64px) 40px; }
.fields-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--orange-ink); }
.fields h2, .news h2 { margin: 10px 0 0; font-size: clamp(28px,3.4vw,40px); font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.all-link { font-size: 15px; font-weight: 600; border-bottom: 2px solid var(--orange); padding-bottom: 2px; color: var(--ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile {
  padding: 22px; border-radius: 18px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); background: var(--tile);
  transition: border-color 260ms var(--expo), transform 260ms var(--expo);
}
.tile:hover { color: inherit; border-color: var(--orange); transform: translateY(-2px); }
.tile-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--soft); color: var(--ink2);
}
.tile-title { display: block; font-size: 16px; font-weight: 700; text-wrap: pretty; color: var(--ink); }
.tile-count { display: block; font-family: var(--mono); font-size: 12.5px; margin-top: 6px; color: var(--muted2); }

/* ---------- Aktuelles ---------- */
.news { position: relative; z-index: 5; padding: 24px clamp(20px,4vw,64px) 80px; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.news-item { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.news-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted2); }
.news-item h3 { margin: 8px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.news-item p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 5;
  padding: 40px clamp(20px,4vw,64px) 48px;
  background: #17181B; color: #C9CBCF;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #fff; }
.footer-grid p { margin: 0; font-size: 14px; line-height: 1.7; }
.footer-grid a { border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-grid a:hover { color: #F6B26A; }
.footer-note { margin: 32px 0 0; font-family: var(--mono); font-size: 12px; color: #8C8F95; }

/* ---------- Übersicht (index.html) ---------- */
.overview { position: relative; z-index: 10; max-width: 880px; margin: 0 auto; padding: clamp(40px,6vw,76px) clamp(20px,4vw,40px) 80px; }
.overview .headline { max-width: none; text-align: left; font-size: clamp(36px,5vw,60px); }
.overview .lead { text-align: left; margin-left: 0; }
.hint {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 28px 0 0; padding: 14px 18px; border-radius: 14px;
  background: #FDF0DC; color: #8A3F06; border: 1px solid rgba(180,83,9,.18);
  font-size: 15px; line-height: 1.5;
}
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 32px; }
.choice {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -26px rgba(23,24,27,.35);
  transition: border-color 260ms var(--expo), transform 260ms var(--expo);
}
.choice:hover { color: inherit; border-color: var(--orange); transform: translateY(-2px); }
.choice-dot { width: 14px; height: 14px; border-radius: 999px; }
.choice h2 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.choice p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.choice-go { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--orange-ink); }

/* ---------- Responsiv ---------- */
@media (max-width: 760px) {
  .nav-link { display: none; }
  .site-header { gap: 12px; padding: 14px 16px; }
  .hero, .fields, .news, .site-footer { padding-left: 16px; padding-right: 16px; }
  .overview { padding-left: 16px; padding-right: 16px; }
  .badge { font-size: 12.5px; padding: 9px 16px; }
  .lead { font-size: 16px; }
}
@media (max-width: 480px) {
  .popular { font-size: 13.5px; gap: 10px; }
  .brand-name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
