/* /var/www/webshop/shop/static/css/style.css */
@charset "UTF-8";
@import url("/static/fonts/inter.6c931256e164.css");

/* ==========================================================
   SCHARRSHOP BASE CSS – Modern / Clean / A11Y / Responsive
   Ziele:
   - Mobilfreundlich, responsive (Desktop/Tablet/Mobile)
   - Barrierefrei (Focus, Kontrast, Touch Targets, Reduced Motion)
   - SEO-freundlich (stabile Layouts, weniger CLS)
   - Scope-safe: Seiten steuern ihr Spacing selbst
   - Hauptfarbe bleibt: #2E4F20
========================================================== */

/* ------------------------------
   RESET / BASE (global, sicher)
------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #fff;
  overflow-x: clip;
  line-height: 1.5;
}

img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; height: auto; }

input, button, select, textarea { font: inherit; }
button { color: inherit; }

a { color: inherit; }
a:where(:not([class])){
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

::selection{ background: rgba(46,79,32,0.2); }

/* Consistent focus (global, a11y) */
:focus-visible{
  outline: 2px solid var(--scharr-green);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Screenreader-only */
.visually-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ------------------------------
   GLOBAL VARIABLES
------------------------------ */
:root{
  --scharr-green: #2E4F20;
  --scharr-green-dark: #1F3A16;
  --scharr-orange: #ff9900;

  --max-width: 1200px;
  --transition: .25s ease;

  --border: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --muted-2: #6b7280;

  --bg-soft: #f6f7f8;
  --bg-soft-2: #f3f4f6;

  /* Schatten bewusst sparsam */
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-panel: 0 14px 36px rgba(0, 0, 0, 0.12);

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* A11y: konsistenter Focus Ring */
  --focus-ring: 0 0 0 3px rgba(46, 79, 32, 0.18);
}

/* ------------------------------
   CONTAINER (SCOPE-SAFE)
------------------------------ */
.scharrbase-container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0; /* Seiten steuern ihr Spacing selbst */
}

/* Inner Padding NUR für Header/Footer/Nav */
.scharrbase-header-inner,
.scharrnav-list,
.scharr-footer-top,
.scharr-footer-main{
  padding-left: 18px;
  padding-right: 18px;
}

@media (max-width: 768px){
  .scharrbase-header-inner,
  .scharrnav-list,
  .scharr-footer-top,
  .scharr-footer-main{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ------------------------------
   SKIP LINK (A11y)
------------------------------ */
.scharrutil-skip-link{
  position: absolute;
  top: -48px;
  left: 0;
  padding: 10px 14px;
  background: var(--scharr-green);
  color: #fff;
  z-index: 5000;
  transition: top .2s ease;
  border-radius: 0 0 10px 0;
  text-decoration: none;
  font-weight: 500;
}
.scharrutil-skip-link:focus-visible{ top: 0; }

.scharrbase-backtotop{
  position: fixed;
  right: 16px;
  bottom: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #111111;
  box-shadow: 0 10px 22px -18px rgba(16,24,40,0.45);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
  z-index: 55;
  backdrop-filter: blur(8px);
}

.scharrbase-backtotop:hover{
  background: #ffffff;
  border-color: #c7ccd4;
}

.scharrbase-backtotop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scharrbase-backtotop__icon{
  width: 12px;
  height: 8px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("/media/icons/category-filter-arrow-down.svg");
  transform: rotate(180deg);
}

.scharrbase-backtotop__label{
  white-space: nowrap;
}

@media (max-width: 560px){
  .scharrbase-backtotop{
    right: 12px;
    bottom: 78px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding-inline: 0;
  }

  .scharrbase-backtotop__label{
    display: none;
  }
}

