/* =========================================
   Scherer 3D – Global Styles
   ========================================= */

/* =========================================
   Design Tokens
   ========================================= */
:root{
  --accent: #735cd6;
  --accent-2: #00c6ff;

  --text: #222;
  --text-muted: #555;
  --bg: #fafafa;

  --card: #fff;
  --border: #eee;

  --shadow: 0 2px 10px rgba(0,0,0,.04);
  --radius: 16px;

  --topbar-h: 64px;
}

@media (prefers-color-scheme: dark){
  :root{
    --text: #eee;
    --text-muted: #aaa;
    --bg: #1e1e1e;
    --card: #161618;
    --border: #262626;
    --shadow: 0 2px 10px rgba(0,0,0,.30);
  }
}

/* =========================================
   Baseline
   ========================================= */
*{ box-sizing:border-box; }
html, body{ height:100%; scroll-behavior:smooth; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{ color:inherit; }

:focus-visible{
  outline: 3px solid rgba(115,92,214,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================================
   Layout
   ========================================= */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px;
}

.page{ padding:14px 0 30px; }

.muted{
  color:var(--text-muted);
  font-size:.9rem;
}

.muted-small{
  color:var(--text-muted);
  font-size:.92rem;
}

h1{
  margin:0 0 12px 0;
  line-height:1.15;
  font-size:clamp(1.6rem, 5vw, 2.4rem);
}

h2{
  margin:0 0 10px 0;
  line-height:1.2;
  font-size:clamp(1.2rem, 3.6vw, 1.7rem);
}

h3{
  margin:0 0 8px 0;
  line-height:1.25;
  font-size:1.05rem;
}

.row{
  display:flex;
  align-items:center;
  gap:10px;
}

.between{ justify-content:space-between; }

/* =========================================
   Topbar
   ========================================= */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:#5f6b9c;
  border-bottom:1px solid var(--border);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  font-size:clamp(1.2rem, 4vw, 2rem);
}

.logo{
  height:40px;
  width:auto;
  object-fit:contain;
  border-radius:10px;
}

.brand-text{ color:#fff; }

.nav-links{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Mobile menu */
.menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.22);
  background:transparent;
  color:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}

@media (max-width:860px){
  .menu-toggle{ display:inline-flex; }

  .nav-links{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    padding:12px 20px 16px;
    background:#5f6b9c;
    border-bottom:1px solid var(--border);
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }

  .nav-links.open{ display:flex; }
}

/* =========================================
   Buttons
   ========================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  border:1px solid var(--border);
  background:var(--card);
  border-radius:999px;
  padding:8px 14px;

  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration:none;
  font-weight:700;
  color:var(--text);
  user-select:none;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(0,0,0,.06);
}

.btn:active{
  transform:translateY(0);
  box-shadow:none;
}

.btn.primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  border-color:transparent;
}

/* Buttons in topbar */
.topbar .btn{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  box-shadow:none;
}

.topbar .btn:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.26);
  transform:none;
}

/* =========================================
   Badges
   ========================================= */
.badge,
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:800;
  background:rgba(115,92,214,0.10);
  border:1px solid rgba(115,92,214,0.18);
  color:var(--text);
}

.pill{
  padding:6px 12px;
  font-size:.9rem;
}

/* =========================================
   Forms / Inputs
   ========================================= */
input, select, button, textarea{ font:inherit; }

input[type="search"],
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select{
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  padding:0 12px;
  box-shadow:0 2px 10px rgba(0,0,0,.03);
}

textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-family:inherit;
  resize:vertical;
}

.qty{
  width:90px;
  text-align:center;
}

/* =========================================
   Cart Count
   ========================================= */
.cart-link{ position:relative; }

.cart-count{
  margin-left:6px;
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:#fff;
  color:#111;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.85rem;
  font-weight:900;
  padding:0 6px;
}

/* =========================================
   Generic Cards / Grid
   ========================================= */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.card--link{
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card--link:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.08);
  border-color:rgba(115,92,214,0.25);
}

.card-body{ padding:12px; }

.card-title{
  margin:0 0 6px;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:12px;
}

@media (max-width:980px){
  .grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:560px){
  .grid{
    grid-template-columns:1fr;
    gap:10px;
  }
}

/* =========================================
   Product / Category Images
   ========================================= */
.card-img-product,
.card-img-category{
  width:100%;
  height:170px;
  object-fit:contain;
  object-position:center;
  background:rgba(0,0,0,.06);
  display:block;
}

.card-img-fallback{
  width:100%;
  height:170px;
  background:rgba(0,0,0,.06);
}

@media (max-width:560px){
  .card-img-product,
  .card-img-category,
  .card-img-fallback{
    height:150px;
  }
}

/* =========================================
   Home / Welcome
   ========================================= */
.section{ padding:18px 0; }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.section__title{ margin:0; }

.hero{
  padding:18px 0 10px;
}

.hero__inner{
  background:rgba(255,255,255,.70);
  border:1px solid rgba(0,0,0,.06);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:0 12px 28px rgba(0,0,0,.06);
  backdrop-filter:blur(10px);
  padding:16px;
}

@media (prefers-color-scheme: dark){
  .hero__inner{
    background:rgba(22,22,24,.72);
    border-color:rgba(255,255,255,.08);
    box-shadow:0 12px 28px rgba(0,0,0,.35);
  }
}

.txt-gradient{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero__title{
  margin:10px 0 10px;
  line-height:1.12;
}

.hero__lead{
  margin:0 0 14px;
  max-width:62ch;
}

.hero__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:12px 0 16px;
}

.hero__trust{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

@media (max-width:900px){
  .hero__trust{ grid-template-columns:1fr; }
}

.trust-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(0,0,0,.06);
}

@media (prefers-color-scheme: dark){
  .trust-card{
    background:rgba(22,22,24,.72);
    border-color:rgba(255,255,255,.08);
  }
}

.trust-card .icon{
  font-size:20px;
  line-height:1;
  margin-top:2px;
}

.trust-card p{ margin:4px 0 0; }

/* Hero text generic */
.hero h1{
  font-size:32px;
  margin-bottom:10px;
}

.hero p{
  font-size:18px;
  color:var(--text-muted);
}

/* =========================================
   Actions / CTA
   ========================================= */
.card-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

@media (max-width:560px){
  .card-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .card-actions .btn{
    width:100%;
    justify-content:center;
  }
}

.cta__inner{
  text-align:center;
  padding:18px 16px;
  background:linear-gradient(135deg, rgba(115,92,214,.10), rgba(0,198,255,.10));
  border:1px solid rgba(115,92,214,.18);
  border-radius:calc(var(--radius) + 6px);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.cta__actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

@media (max-width:520px){
  .btn-block-mobile{
    width:100%;
    justify-content:center;
  }

  .hero__actions{ gap:8px; }

  .section__head .btn{
    width:100%;
    justify-content:center;
  }
}

/* =========================================
   SEO / Trust Blocks
   ========================================= */
.seo-block{
  max-width:900px;
  margin:60px auto;
  padding:20px;
  text-align:center;
}

.trust-bar{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  padding:20px;
  border-top:1px solid var(--border);
  background:var(--card);
  font-size:14px;
}

/* =========================================
   Footer
   ========================================= */
.footer{
  margin-top:40px;
  padding:30px 20px;
  background:#111;
  color:#eee;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  max-width:1200px;
  margin:0 auto;
}

.footer-col h4{
  margin:0 0 10px;
  font-size:16px;
}

.footer-text{
  margin:0;
  color:#bbb;
  line-height:1.5;
  font-size:14px;
}

.footer a{
  color:#ccc;
  text-decoration:none;
  display:block;
  margin:6px 0;
}

.footer a:hover{
  color:#fff;
  text-decoration:underline;
}

.footer-bottom{
  text-align:center;
  margin-top:25px;
  font-size:14px;
  color:#aaa;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:16px;
}

@media (max-width:700px){
  .footer-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
}

/* =========================================
   Footer Social
   ========================================= */
.footer-social{
  border-top:1px solid var(--border);
  background:var(--card);
  padding:18px 0;
}

.footer-social-inner{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.footer-social-label{
  color:var(--text-muted);
  font-weight:600;
}

.footer-social-icons{
  display:flex;
  gap:10px;
  align-items:center;
}

.social{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text-muted);
  text-decoration:none;
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.social:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(115,92,214,.25);
}

.social:focus-visible{
  outline:3px solid rgba(115,92,214,.35);
  outline-offset:3px;
}

.social--facebook:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
}

.social--instagram:hover{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.social--twitter:hover{
  color:var(--text);
  border-color:var(--text-muted);
  background:transparent;
}

@media (prefers-color-scheme: dark){
  .social--twitter:hover{
    color:#fff;
    border-color:#777;
  }
}

/* =========================================
   Contact / Anfrage Form
   ========================================= */
.form-card{
  padding:20px;
  border-radius:var(--radius);
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.form-row{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}

.form-row .full{
  grid-column:1 / -1;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label{
  font-weight:700;
  font-size:.9rem;
}

.field input,
.field textarea{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--text);
  font-family:inherit;
  font-size:.95rem;
  transition:border-color .15s ease, box-shadow .15s ease;
}

.field textarea{
  min-height:140px;
  resize:vertical;
}

.field input:focus,
.field textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(115,92,214,.15);
  outline:none;
}

.legal{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:.9rem;
}

.legal input{
  margin-top:4px;
}

.legal a{
  text-decoration:underline;
}

.alert{
  padding:14px 16px;
  border-radius:12px;
  margin-bottom:16px;
  font-size:.95rem;
}

.alert.success{
  background:rgba(16,185,129,.12);
  border:1px solid rgba(16,185,129,.3);
  color:#047857;
}

.alert.error{
  background:rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.35);
  color:#b91c1c;
}

.form-card .row{
  margin-top:12px;
}

@media (max-width:720px){
  .form-row{ grid-template-columns:1fr; }
}

/* =========================================
   Product Description
   ========================================= */
.product-description{
  color:var(--text);
  line-height:1.6;
}

.product-description p{
  margin:0 0 12px;
}

.product-description ul,
.product-description ol{
  margin:0 0 12px 20px;
  padding:0;
}

.product-description li{
  margin:4px 0;
}

/* =========================================
   Legal Pages
   ========================================= */
.legal-page{
  display:grid;
  gap:16px;
}

.legal-hero{
  overflow:hidden;
}

.legal-hero__inner{
  padding:20px 18px;
  background:linear-gradient(135deg, rgba(115,92,214,.10), rgba(0,198,255,.10));
  border-radius:calc(var(--radius) + 2px);
}

.legal-hero h1{
  margin:10px 0 8px;
}

.legal-content{
  padding:20px 18px;
}

.legal-section + .legal-section{
  border-top:1px solid var(--border);
  margin-top:20px;
  padding-top:20px;
}

.legal-page h2{
  margin:0 0 10px;
  font-size:clamp(1.15rem, 2.4vw, 1.45rem);
}

.legal-page h3{
  margin:0 0 8px;
}

.legal-page p,
.legal-page li,
.legal-page address{
  line-height:1.7;
  color:var(--text);
}

.legal-page ul,
.legal-page ol{
  margin:0;
  padding-left:20px;
}

.legal-page address{
  font-style:normal;
}

.legal-page a{
  color:var(--accent);
  text-decoration:none;
}

.legal-page a:hover{
  text-decoration:underline;
}

.toc{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:20px;
}

.toc strong{
  display:block;
  margin-bottom:8px;
}

.toc ol{
  margin:0;
  padding-left:20px;
  display:grid;
  gap:6px;
}

.toc a{
  color:var(--accent);
  text-decoration:none;
}

.toc a:hover{
  text-decoration:underline;
}

@media (max-width:640px){
  .legal-hero__inner,
  .legal-content{
    padding:16px 14px;
  }

  .toc{
    padding:12px 14px;
  }
}

/* =========================================
   Cookie Table
   ========================================= */
.table-wrap{
  overflow:auto;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--card);
}

.cookie-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

.cookie-table th,
.cookie-table td{
  border-bottom:1px solid var(--border);
  padding:10px 12px;
  text-align:left;
  vertical-align:top;
}

.cookie-table th{
  background:rgba(115,92,214,.08);
  font-weight:700;
}

.cookie-table tr:last-child td{
  border-bottom:none;
}

/* =========================================
   Misc
   ========================================= */
.color-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  border:1px solid #d1d5db;
  display:inline-block;
}

/* =========================================
   Side Info Box (links oben, wegklickbar)
   ========================================= */
.side-info-box{
  position:fixed;
  left:12px;
  top:calc(var(--topbar-h) + 12px);
  z-index:9999;

  width:280px;
  max-width:calc(100vw - 24px);

  background:var(--card);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);

  transform:translateX(-120%);
  opacity:0;
  pointer-events:none;
  transition:transform .28s ease, opacity .28s ease;
}

.side-info-box.active{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}

.side-info-content{
  padding:16px 14px 14px;
}

.side-info-content h3{
  margin:0 24px 8px 0;
  font-size:1rem;
}

.side-info-content p{
  margin:0 0 12px;
  color:var(--text-muted);
  line-height:1.45;
  font-size:.92rem;
}

.side-info-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.side-info-close{
  position:absolute;
  top:8px;
  right:8px;
  border:none;
  background:transparent;
  color:var(--text-muted);
  cursor:pointer;
  font-size:16px;
  line-height:1;
  padding:4px;
}

.side-info-close:hover{
  color:var(--text);
}

@media (max-width:600px){
  .side-info-box{
    left:10px;
    right:10px;
    top:auto;
    bottom:10px;
    width:auto;
  }
}