:root { --red: #F32430; ; --darkred:#b5040e; --ink:#111; --line:#eee; }

* { box-sizing:border-box; }
html, body { margin:0; }
body { font-family:Arial, Helvetica, sans-serif; color:var(--ink); background:#fff; }

/* ===== Shared Header (index, about, contact) ===== */
.site-header {
  position: relative;
  border-bottom: 2px solid var(--line);
  padding: 1rem 2rem .5rem;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;            /* center the logo+nav GROUP */
  gap: 170px;
}
.logo img {
  height: 70px;
  display: block;
}

nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  margin: 0 .75rem;
}
nav a:hover { color: var(--red); }

/* Language switcher sits on the right edge while the center group stays centered */
.site-header .lang-switch {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.lang-switch select {
  padding: .25rem .5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
  background: #fff;
}

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

/* ===== Index (home) specific ===== */
.hero {
  position: relative;
  overflow: hidden;
  /* remove vertical padding so content size doesn't change section height */
  padding: 0 2rem;

  /* fixed responsive height for the hero area */
  min-height: clamp(377px, 55vh, 377px);

  text-align: center;
  background: linear-gradient(180deg,#ffffff 0%,#f2f2f2 100%);
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 25%;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background: rgba(0,0,0,0.4); adjust opacity (0.4 = 40% dark overlay) */
  z-index: 1;
}
/* the milky panel with title + subtitle + button */
.hero .hero-box{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);  /* dead-center the box */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;

  /* tweak these freely – won't affect hero height anymore */
  padding: 3.5rem 2rem;
  /* padding: 4rem 3rem; outline: 1px dashed red; */
  border-radius: 12px;

  /* make more/less transparent by adjusting the last number (alpha) */
  background: rgba(255,255,255,.45);  /* 0 = transparent, 1 = opaque */
  backdrop-filter: blur(2px);
}
.hero .hero-box h1{ color:#111; margin:0; }
.hero .hero-box p { color:#111; margin:0; }
.hero h1,
.hero .btn {
  position: relative;
  z-index: 2; /* keep text above overlay */
}

.btn {
  display: inline-block;
  background: var(--red);    
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
}
.btn:hover { background: var(--darkred); } 

.section { padding: 3rem 2rem; }
.section .grid { max-width: 1400px; margin: 0 auto; }  /* center the card grid */
/* @media (max-width: 600px){
  .section { padding: 2.5rem 1.25rem; }         
} */
.section h2 { font-size: 2rem; margin: 0 0 1.5rem; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.card { 
  border:1px solid var(--line); 
  border-radius:12px; 
  background:#fff; 
  transition:box-shadow .2s ease, transform .05s ease; 
  text-decoration:none; 
  color:inherit; }
.card:focus, .card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-1px);
  /*background: #f7f7f7; */
  background: var(--red);
  color: #fff;
}
.card h3 { margin:.2rem 0 .1rem; font-size:1rem; }
.card { display:flex; flex-direction:column; }
.card .content { padding:1rem .75rem .25rem; text-align:center; }
.card .thumb {
  height: 130px;
  padding: .5rem .5rem 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .thumb img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 600px){
  .card { min-height: 200px; }
  .card .thumb { height: 120px; }
}

/* ===== About / Contact content ===== */
main { max-width: 900px; margin: 0 auto; padding: 2rem; line-height: 1.6; }
h1 { font-size: 2rem; margin-top: 0; }

/* ===== Contact page ===== */
.contact-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
  line-height: 1.6;
}
.contact-main h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}
.contact-image img {
  max-width: 280px;
  height: auto;
  display: inline-block;
}


/* ===== About page ===== */
.about-hero {
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  padding: 3.5rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  z-index: 2;
}

/* About banner image between title/subtitle and description */
.about-banner {
  width: 100%;
  text-align: center; 
  margin: 0;
}
.about-banner img {
  max-height: 180px;    /* cap vertical size */
  width: auto;          /* keep natural aspect ratio */
  height: auto;         /* scale proportionally */
  display: inline-block;
}

.about-box {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.about-box h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
.about-box .sub { font-size: 1.125rem; color:#333; margin: 0; }

.about-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.25rem 2rem 3rem;
  line-height: 1.7;
}
.about-intro p { font-size: 1.1rem; margin: 0 0 1.75rem; color:#222; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
.about-card {
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem;
  background:#fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
.about-card h3 { margin:.2rem 0 .4rem; font-size:1.05rem; }
.about-card p { margin:0; color:#444; }

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


/* Footer */
footer { text-align:center; padding:2rem; border-top:1px solid var(--line); font-size:.9rem; color:#666; }

@media (max-width: 600px) {
  .logo img { height: 56px; }
  nav a { margin: 0 .5rem; }
  .site-header .lang-switch { right: 1rem; }
}

/* ===== Shop page header (center links + language as one unit) ===== */

/* spacing preset for the | separator */
:root { --sep-gap: 2rem; }  /* adjust 1.5–3rem to taste */

.shop-page .overlay{
  position: sticky;     /* or 'relative' if you don't want it to stick */
  top: 0;               /* only used when sticky */
  z-index: 10000;       /* ensure it's above the shop */
  margin: 0;
  padding: 0;
  width: 100%;
  background: rgba(250,250,250,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(2px);
}

.shop-page .overlay-inner{
  max-width: 100%;
  margin: 0 auto;
  padding: 2px 24px;
  display: flex;
  justify-content: center;      /* center the whole group */
}

.shop-page .overlay-group{
  display: flex;
  align-items: center;
  gap: 1.5rem;                  /* spacing between items */
}

/* Themen dropdown — strong, scoped selectors so it can't escape flex layout */
.shop-page .overlay .dropdown { position: relative; }

.shop-page .overlay .dropbtn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  font: inherit;
  color: inherit;
  font-weight: 700;
  line-height: 1;
}

/* Hidden by default (important beats any accidental display styles) */
.shop-page .overlay .dropdown-content {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  z-index: 2000;         /* above header */
  white-space: nowrap;   /* keep one item per line neatly */
}

/* Show on hover (desktop) and when JS toggles .open (touch) */
.shop-page .overlay .dropdown:hover > .dropdown-content,
.shop-page .overlay .dropdown.open > .dropdown-content {
  display: block !important;
}

.shop-page .overlay .dropdown-content a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #222;
}

.shop-page .overlay .dropdown-content a:hover { background: #f3f3f3; }
.shop-page .overlay .dropdown-content a.missing { color: #aaa; pointer-events: none; }

/* language group + the centered separator */
.shop-page .overlay-group .lang{
  display:flex;
  align-items:center;
  gap:.5rem;            /* spacing between “Language” and the select */
  position:relative;
}

/* render the | with equal gap on both sides */
.shop-page .overlay-group .lang::before{
  content:"|";
  display:inline-block;
  margin:0 var(--sep-gap);  /* same gap left & right of the bar */
  opacity:.6;               /* subtle; tweak or remove */
}

.shop-page .overlay a{
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.shop-page .overlay a:hover{ color: var(--red); }

/* remove any legacy spacer usage */
.shop-page .spacer{ display:none; }

@media (max-width: 640px){
  .shop-page .overlay-inner{ padding: 8px 12px; }
  .shop-page .overlay-group{ gap: 1rem; flex-wrap: wrap; justify-content: center; }
  .shop-page .overlay-group .lang{ margin-left: 1rem; }
}

/* ensure no gap above header */
html, body { margin-top: 0; }

/* --- keep the overlay definitively above the Spreadshop canvas --- */
#shop { position: relative; z-index: 1; }
#shop iframe,
#shop .sprd-container,
#shop .sprd-shop {
  position: relative;
  z-index: 1;
}

/* Normalize header item spacing/hit-area so it looks even */
.shop-page .overlay-group > a,
.shop-page .overlay-group > .dropdown > .dropbtn {
  display: inline-block;
  padding: 4px 10px; /* same as the dropbtn */
  line-height: 1.1;          /* keeps text centered nicely */
}

/* Optional: since items now have padding, you can slightly reduce the gap */
.shop-page .overlay-group {
  gap: 1.25rem; /* was 1.5rem; tweak to taste */
}
