/* Local self-hosted Inter (latin) */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#ffffff; --text:#0b1020; --muted:#5b6475; --border:#e5e7eb;
  --green:#22c55e; --blue:#1f6fff; --blue-hover:#165be6;
  --consent-offset:0px; /* dynamisch per JS */
}

*{ box-sizing:border-box }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif; }
img{ max-width:100%; display:block }
.container{ width:min(1100px,92vw); margin:0 auto; }

.site-header{ border-bottom:1px solid var(--border); background:#fff; }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding:12px 0; }
/* Brand in header (non-fixed) with pulsating dot */
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  color:var(--text);
  text-decoration:none;
}

/* Pulsing dot effect */
.brand .dot{
  position:relative;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--blue);
  display:inline-block;
  transform-origin:center;
  animation:pulse 1.6s cubic-bezier(.4,0,.2,1) infinite;
}

/* Slight glowing halo via pseudo-element for more "special" look */
.brand .dot::after{
  content:'';
  position:absolute;
  width:32px;
  height:32px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle at center, rgba(31,111,255,0.18) 0%, rgba(31,111,255,0.06) 40%, transparent 60%);
  opacity:0.9;
  filter:blur(6px);
}

/* Brand text styling */
.brand-text{ font-weight:800; font-size:14px; letter-spacing:.2px; color:var(--text); text-transform:lowercase; }

/* Pulse keyframes */
@keyframes pulse{
  0%{ transform:scale(1); box-shadow:0 0 0 0 rgba(31,111,255,0.36); }
  70%{ transform:scale(1.35); box-shadow:0 0 0 14px rgba(31,111,255,0); }
  100%{ transform:scale(1); box-shadow:0 0 0 0 rgba(31,111,255,0); }
}

.hero{ display:grid; grid-template-columns:380px 1fr; gap:36px; padding:36px 0; }
.hero-media img{ border:1px solid var(--border); border-radius:8px; }
.hero-caption{ color:var(--muted); font-size:12px; margin-top:8px }

/* Masthead (wide header image with profile chip) */
.masthead{ padding:10px 0 0; }
.masthead-box{
  position:relative;
  height:220px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background: center / cover no-repeat;
  /* Swap the URL to your preferred wide header image */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 60%, rgba(255,255,255,.22) 100%),
    url('/assets/images/header999.png');
  box-shadow:0 12px 30px rgba(0,0,0,.08);
}
.masthead-profile{
  position:absolute;
  left:16px; bottom:16px;
  display:inline-flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.90); backdrop-filter:blur(6px);
  border:1px solid var(--border);
  padding:10px 12px; border-radius:999px;
}
.masthead .avatar{
  width:56px; height:56px; border-radius:999px; object-fit:cover;
  border:1px solid var(--border);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.masthead .name{ font-weight:800; font-size:16px; letter-spacing:.2px; margin-left:2px; }

/* Responsive tweaks for masthead */
@media (max-width:680px){
  .masthead-box{ height:180px; }
  .masthead .avatar{ width:44px; height:44px; }
  .masthead-profile{ left:12px; bottom:12px; padding:8px 10px; gap:10px; }
  .masthead .name{ font-size:15px; }
}

h1{ font-size:34px; line-height:1.2; margin:6px 0 14px; font-weight:800; }
h2{ font-size:22px; margin:0 0 10px; font-weight:800; }
.checklist{ list-style:none; margin:0 0 18px; padding:0; display:grid; gap:12px; }
.checklist li{ display:flex; gap:12px; align-items:flex-start; }
.checklist .check{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:4px; font-size:14px; font-weight:700; color:#fff; background:var(--green); flex:0 0 22px; }

.key-benefits {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.key-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
}
.key-benefits .ico {
  font-size: 18px;
}

/* Trust block (replaces bullets on home) */
.trust-block { max-width:820px; margin-top:14px; }
.trust-lead { font-size:15px; line-height:1.55; color:var(--text); margin:0 0 10px; }
.trust-badge {
  display:inline-block;
  background:#fff6f0;
  border:1px solid rgba(255,120,80,0.10);
  color:#b23a2a;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:13px;
  box-shadow:0 6px 18px rgba(178,58,42,0.04);
}

.btn{ --padY:14px; --padX:22px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:var(--padY) var(--padX); border-radius:8px; border:0; text-decoration:none; cursor:pointer; font-weight:800; letter-spacing:.2px; }
.btn-lg{ --padY:16px; --padX:26px; font-size:18px }
.btn-xs{ --padY:8px; --padX:12px; font-size:13px }
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-hover); }
.btn-ghost{ background:#fff; border:1px solid var(--border); color:#0b1020; }
.linklike{ background:none; border:0; padding:0; color:var(--blue); text-decoration:underline; cursor:pointer; font:inherit; }

.cta-wrap{ margin-top:18px; }
.subline{ margin-top:10px; font-weight:600; }
.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px }
.badge{ display:inline-flex; align-items:center; gap:8px; background:#f5f7fb; border:1px solid var(--border); color:#111827; padding:6px 10px; border-radius:16px; font-size:12.5px; font-weight:600 }
.badge-ghost{ background:#fff }

/* CTA note: clear, readable, placed close to CTA (visible on mobile) */
.cta-note{
  margin-top:8px;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}
/* when we show both languages (EN then DE) keep small visual separation */
.cta-note .de { display:block; margin-top:4px; font-weight:600; color:var(--muted); font-size:13px; }
/* Sticky CTA note: slightly more compact and centered */
.sticky-cta .cta-note{ font-size:13px; color:var(--text); margin-left:8px; margin-right:8px; }

/* CTA meta wrapper (compact legal/benefit lines shown near CTAs) */
.cta-meta{ margin-top:8px; max-width:520px; }
.cta-meta .cta-note{ margin:0; font-weight:700; font-size:14px; color:var(--text); }
.cta-meta .cta-legal{ margin-top:6px; color:var(--muted); font-size:12px; line-height:1.3; }

/* Links in badges: non-blue, no underline; subtle hover and clear focus */
.badge a{
  color: inherit;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.badge a:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
  border-radius:12px;
}
.badge-ghost a:hover{
  color: var(--blue);
  text-decoration: underline;
}
.muted{ color:var(--muted) }
.small{ font-size:14px }
.tiny{ font-size:12px }

.split{ display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:8px 0 30px; }
.card{ border:1px solid var(--border); border-radius:12px; padding:16px; background:#fff; }
.grid-list{ list-style:none; padding:0; margin:6px 0 0; display:grid; gap:8px; }
.xlist{ list-style:none; padding:0; margin:10px 0 0; display:grid; gap:6px; }

.legal{ padding:30px 0 60px }

/* Footer */
.site-footer{ border-top:1px solid var(--border); background:#fff; margin-top:24px; }
.site-footer .container{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0; flex-wrap:wrap; }
.footer-links{ display:flex; flex-wrap:wrap; gap:12px; }
.footer-links a, .footer-links .linklike{ color:var(--muted); text-decoration:none; font-size:13px; font-weight:600; }
.footer-links a:hover, .footer-links .linklike:hover{ color:var(--text); text-decoration:underline; }
.footer-note{ flex-basis:100%; margin-top:4px; color:var(--muted); line-height:1.45; max-width:100%; }
.footer-iframe{ width:100%; border:0; height:120px; display:block; }

/* Sticky CTA – standardmäßig aus; JS blendet sie (mobil) ein */
.sticky-cta{
  position:fixed; left:0; right:0;
  bottom: calc(var(--consent-offset) + env(safe-area-inset-bottom));
  display:none; gap:12px; align-items:center; justify-content:center;
  background:rgba(255,255,255,.92); backdrop-filter:blur(6px);
  border-top:1px solid var(--border); padding:10px; z-index:40;
}
.sticky-cta.show{ display:flex; }

/* Product teaser card (image + text) */
.product-teaser{
  display:grid;
  grid-template-columns: clamp(160px, 42vw, 280px) 1fr;
  gap:16px;
  align-items:center;
}
.product-teaser > a{
  display:block;
  max-width:100%;
}
/* Allow text column to shrink/wrap inside grid to avoid clipping on mobile */
.product-teaser > div{
  min-width: 0;
}
.product-teaser img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
  border:1px solid var(--border);
}

/* Products section separation and header */
.products{
  padding:12px 0 30px;
  border-top:1px solid var(--border);
  margin-top:16px;
}
.products .section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; margin-bottom:10px;
}
.products .section-head h2{ margin:0; }
.products .products-note{ margin-top:10px; }

/* Top align product teaser content */
.product-teaser{
  align-items: flex-start;
}

/* HOT badge */
.product-hot{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.product-hot .hot-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(90deg,#fff6f6,#fffaf0);
  border:1px solid rgba(255,90,90,0.12);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  color:#b42323;
  position:relative;
}
.product-hot .flame{ transform-origin:center bottom; animation:flame-flicker 900ms infinite; }
.product-hot .hot-text{ font-size:13px; letter-spacing:.4px; color:#b42323; }

/* Flicker animation */
@keyframes flame-flicker{
  0%{ transform:translateY(0) scale(1); opacity:1; }
  40%{ transform:translateY(-2px) scale(1.06); opacity:.95; }
  70%{ transform:translateY(0) scale(1); opacity:1; }
  100%{ transform:translateY(0) scale(1); opacity:1; }
}

/* Optional subtle glow */
.product-hot .hot-badge::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(255,90,90,0.06);
  z-index:-1;
  animation:hot-pulse 1500ms infinite;
}
@keyframes hot-pulse{
  0%{ box-shadow:0 8px 24px rgba(255,90,90,0.06); }
  50%{ box-shadow:0 12px 32px rgba(255,90,90,0.08); }
  100%{ box-shadow:0 8px 24px rgba(255,90,90,0.06); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .product-hot .flame, .product-hot .hot-badge::after, .new-badge::after{ animation: none; }
}

/* Responsive: stack image above text on narrow screens to avoid clipping */
@media (max-width:800px){
  .product-teaser{
    grid-template-columns:1fr;
  }
}

@media (max-width:980px){
  .hero{ grid-template-columns:1fr; gap:16px; }
}

/* ===== Compact Bottom Consent Bar ===== */
.consent-bar{
  position:fixed; left:0; right:0; bottom:0; background:#fff;
  border-top:1px solid var(--border); box-shadow:0 -6px 24px rgba(0,0,0,.08);
  transform:translateY(100%); transition:transform .35s ease; z-index:60;
  font-size:13px; padding-bottom:calc(8px + env(safe-area-inset-bottom));
}
.consent-bar.show{ transform:translateY(0); }
.consent-inner{ width:min(1100px,92vw); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; }
.consent-text{ display:flex; flex-direction:column; gap:2px; }
.consent-buttons{ display:flex; gap:8px; flex-wrap:wrap; }
.consent-buttons .btn{ border-radius:7px; }

/* Drop-Up Panel */
.consent-panel{
  position:fixed; left:12px; right:12px;
  bottom: calc(var(--consent-offset) + 8px + env(safe-area-inset-bottom));
  width:auto; max-width:720px; margin:0 auto; background:#fff; border:1px solid var(--border); border-radius:12px;
  box-shadow:0 12px 30px rgba(0,0,0,.12); padding:12px; display:none; z-index:61;
}
.consent-panel.open{ display:block; }
.toggle{ display:inline-flex; align-items:center; gap:8px; margin-right:14px; font-weight:600 }
.consent-actions{ display:inline-flex; gap:8px; margin-top:8px }

@media (max-width:680px){
  .consent-inner{ flex-direction:column; align-items:stretch; }
  .consent-buttons{ justify-content:space-between; }
  .consent-text{ width:100%; }
}

/* NEW badge */
.new-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:linear-gradient(90deg,#f0fff7,#f0fffb);
  border:1px solid rgba(34,197,94,0.18);
  padding:6px 10px;
  border-radius:999px;
  font-weight:800;
  color:#166534; /* dark green */
  position:relative;
}
.new-badge .new-text{
  font-size:13px;
  letter-spacing:.4px;
  color:#166534;
}
.new-badge::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  box-shadow:0 8px 24px rgba(34,197,94,0.08);
  z-index:-1;
  animation:new-pulse 1600ms infinite;
}
@keyframes new-pulse{
  0%{ box-shadow:0 8px 24px rgba(34,197,94,0.06); }
  50%{ box-shadow:0 12px 32px rgba(34,197,94,0.10); }
  100%{ box-shadow:0 8px 24px rgba(34,197,94,0.06); }
}
