:root{
  --bg0:#07070a;
  --bg1:#0b0b14;

  --line:rgba(255,255,255,.10);
  --line-soft:rgba(255,255,255,.08);
  --line-softer:rgba(255,255,255,.06);

  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.03);

  --shadow: 0 18px 70px rgba(0,0,0,.60);
  --shadow2: 0 30px 95px rgba(0,0,0,.68);

  --gold: rgba(215,201,166,1);

  --ig: rgba(225,48,108,1);
  --fb: rgba(24,119,242,1);
  --wa: rgba(37,211,102,1);

  --ease-fast: .15s ease;
  --ease-med: .18s ease;
}

/* =========================================================
   Base
   ========================================================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }

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

  background:
    radial-gradient(1100px 700px at 20% 8%, rgba(215,201,166,.12), transparent 60%),
    radial-gradient(900px 600px at 86% 18%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed;

  display:flex;
  flex-direction:column;
  min-height:100%;
}

@media (max-width: 768px){
  body{ background-attachment: scroll; }
}

a{ color:inherit; text-decoration:none; }
img{ display:block; }
.container{ width:min(1120px, 92vw); margin:0 auto; }

p{ margin:0 0 12px; }
h1,h2,h3{ margin:0 0 10px; line-height:1.15; }

::selection{ background: rgba(215,201,166,.25); }

/* Accessibility */
.skiplink{
  position:absolute;
  left:-9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.70);
  color: var(--text);
  z-index: 999;
}
.skiplink:focus{ left: 12px; }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* =========================================================
   Header (index + subpages)
   ========================================================= */
.header{
  background: rgba(0,0,0,.65);
  border-bottom: 1px solid var(--line-softer);
}

.header__inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand__logo{
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 30px 65px rgba(0,0,0,.80));
}

/* Social (nur index.html nutzt das) */
.header__social{
  position:absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align:center;
}
.social__label{
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.iconstrip{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}

.iconbtn{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.06);
  transition: transform var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast), color var(--ease-fast);
}
.iconbtn svg{ width:24px; height:24px; fill: currentColor; }
.iconbtn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.50);
}
.iconbtn.ig:hover{ border-color: rgba(225,48,108,.55); background: rgba(225,48,108,.10); color: var(--ig); }
.iconbtn.fb:hover{ border-color: rgba(24,119,242,.55); background: rgba(24,119,242,.10); color: var(--fb); }
.iconbtn.wa:hover{ border-color: rgba(37,211,102,.55); background: rgba(37,211,102,.10); color: var(--wa); }
.iconbtn.mail:hover{ border-color: rgba(215,201,166,.55); background: rgba(215,201,166,.10); color: var(--gold);
}
@media (max-width: 720px){
  .header__inner{
    flex-direction: column;
    gap: 12px;
    padding: 10px 0 12px;
  }
  .header__social{
    position: static;
    transform: none;
  }
  .social__label{
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  .brand__logo{
    width: 190px;
    height: 190px;
  }
}

/* =========================================================
   Main / Intro
   ========================================================= */
.main{
  flex:1;
  padding: 18px 0 28px;
}

.intro{
  text-align:center;
  padding: 18px 0 10px;
}
.intro__title{
  margin: 10px 0 10px;
  font-size: clamp(1.75rem, 2.7vw, 2.8rem);
  letter-spacing: -0.02em;
}
.intro__lead{
  margin:0 auto;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

/* Compatibility (falls eine Seite noch hero/h1/lead nutzt) */
.hero{ padding: 18px 0 10px; }
.h1{
  margin: 10px 0 10px;
  font-size: clamp(1.75rem, 2.7vw, 2.8rem);
  letter-spacing: -0.02em;
  text-align:center;
}
.lead{
  margin: 0 auto;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
  text-align:center;
}

/* =========================================================
   Cards / Grid helpers
   ========================================================= */
.card{
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
}
.pad{ padding: 16px; }

.note{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: .98rem;
}

.grid-3{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items:stretch;
}

.cardlink{
  display:block;
  cursor:pointer;
  transition:
    transform var(--ease-fast),
    border-color var(--ease-fast),
    box-shadow var(--ease-fast),
    background var(--ease-fast);
}

.cardlink:hover{
  transform: translateY(-3px);
  border-color: rgba(215,201,166,.45);
  box-shadow: var(--shadow2);
}

/* AKTIVE KACHEL (z. B. Dekorationen.html) */
.cardlink--active{
  border-color: rgba(215,201,166,.85);
  box-shadow: 0 26px 70px rgba(215,201,166,.25);
  background:
    linear-gradient(180deg,
      rgba(215,201,166,.12),
      rgba(255,255,255,.03)
    );
  pointer-events:none; /* verhindert Klick auf aktuelle Seite */
}

.cardlink--active .tile__link{
  color: var(--gold);
  font-weight: 900;
}

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

/* =========================================================
   Hub tiles (index.html)
   ========================================================= */
.hub{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items:stretch;
}
@media (max-width: 980px){
  .hub{ grid-template-columns: 1fr; }
}

.tile{
  position:relative;
  overflow:hidden;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--card), var(--card2));
  box-shadow: var(--shadow);
  min-height: 360px;
  display:flex;
  flex-direction:column;
  transition: transform var(--ease-med), border-color var(--ease-med), box-shadow var(--ease-med);
}

.tile__media{
  height: 52%;
  background:
    radial-gradient(700px 250px at 28% 22%, rgba(215,201,166,.20), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.tile__body{ padding: 16px 16px 18px; }
.tile__title{
  margin: 10px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}
.tile__text{
  margin:0;
  color: var(--muted);
  line-height: 1.65;
}
.tile__link{
  display:inline-block;
  margin-top: 14px;
  font-weight: 900;
  letter-spacing: .02em;
}

.tile::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 15%, rgba(215,201,166,.18), transparent 58%);
  opacity: .35;
  transform: rotate(10deg);
  transition: opacity var(--ease-med);
  pointer-events:none;
}
.tile:hover{
  transform: translateY(-5px);
  border-color: rgba(215,201,166,.60);
  box-shadow: var(--shadow2);
}
.tile:hover::after{ opacity: .75; }

/* optional spacing first tile */
.hub > .tile:first-child{ margin-right: 48px; }
@media (max-width: 900px){
  .hub > .tile:first-child{ margin-right: 0; }
}

/* Tile images (assets/* relative to this CSS file) */
.tile--3d .tile__media{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55)),
    url("2-sm.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tile--about .tile__media{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.55)),
    url("ueber-uns.jpg");
  background-size: cover;
  background-position: 65% 0%;
  background-repeat: no-repeat;
}

.tile--booksCover .tile__media{
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.45)),
    url("buecher.jpg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0,0,0,0.15);
}

/* =========================================================
   Markets (index + reuse on buecher)
   ========================================================= */
.markets{ margin-top: 14px; }

.markets__card{
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  padding: 16px;
}
.markets__head{
  text-align:center;
  margin-bottom: 10px;
}
.markets__title{
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.markets__hint{
  margin:0;
  color: var(--muted);
  font-size: .93rem;
}

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

/* default marketplace button */
.market{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);

  /* HELLERER GRAUTON */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.20),
    rgba(255,255,255,.12)
  );

  transition: transform var(--ease-fast),
              border-color var(--ease-fast),
              background var(--ease-fast),
              box-shadow var(--ease-fast);
}
.market:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(0,0,0,.50);
}

.market__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 180px;
  height: 46px;
}

/* prevents huge amazon svg/img */
.market__logo{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

/* =========================================================
   Footer
   ========================================================= */
footer{
  background-color: #050505;
  padding: 14px 24px 18px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.9;
}

.footer-links{
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.footer-links a{
  color: #fff;
  text-decoration: none;
  position: relative;
  padding-bottom: 1px;
}

.footer-links a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.2s ease;
}
.footer-links a:hover::after{ width: 100%; }

/* =========================================================
   Bücherseite – Thumbnails + Bestellbereich
   ========================================================= */
.bookcard{ display:block; }

.book-gallery{
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}

.thumb{
  position: relative;
  display: inline-block;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.015);
  cursor: pointer;

  box-shadow:
    0 10px 26px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.04);

  transition: transform var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.thumb img{
  display: block;
  height: 144px;
  width: auto;
  object-fit: contain;
  background: rgba(0,0,0,0.18);
}

.book-gallery .thumb:first-child{ margin-left: -6px; }

.thumb:hover{
  transform: translateY(-2px);
  border-color: rgba(215,201,166,.35);
  box-shadow:
    0 14px 32px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.thumb__hint{
  position:absolute;
  right:8px;
  bottom:8px;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  color: var(--text);
  font-size:20px;
  font-weight:700;
  line-height:1;
  pointer-events:none;
}

.buyline{
  margin-top: 16px;
  margin-bottom: 8px;
}
.buyline__label{
  font-weight: 800;
  letter-spacing: .02em;
}

.bookcard .markets__icons{
  justify-content: flex-start;
  margin-top: 10px;
}

.bookcard .market{
  padding: 11px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.15));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.bookcard .market__icon{
  width: 144px;
  height: 36px;
}

.bookcard .market:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.18));
  border-color: rgba(215,201,166,.28);
}

@media (max-width: 520px){
  .thumb img{ height: 128px; }
  .book-gallery .thumb:first-child{ margin-left: -4px; }
}

/* =========================================================
   Dekorationen – Produktkacheln (4 Stück, +20% größer)
   ========================================================= */
.product-gallery{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items:start;

  /* ausgemittelt über die Breite der Hauptkacheln */
  width: 100%;
  margin-left:auto;
  margin-right:auto;
}

.product{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.product .thumb{
  width: 100%;
  border-radius: 18px;                 /* etwas größer/premium */
}

.product .thumb img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;                 /* quadratisch */
  object-fit: cover;
  background: rgba(0,0,0,0.18);
}

/* + Badge minimal größer (wirkt wie +20%) */
.product .thumb__hint{
  width: 32px;
  height: 32px;
  font-size: 22px;
  right:10px;
  bottom:10px;
  border-radius: 50%;
}

.product__meta{
  font-size: .95rem;
  line-height: 1.55;
  color: var(--muted);
}

.product__title{
  display:block;
  color: var(--text);
  font-weight: 900;
  font-size: 1.02rem;
  margin-bottom: 2px;
}

/* Responsive: 4 -> 2 -> 1 */
@media (max-width: 1100px){
  .product-gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .product-gallery{ grid-template-columns: 1fr; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox{
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(10,10,14,.92);
  padding: 14px;
  max-width: min(96vw, 1100px);
  box-shadow: 0 26px 90px rgba(0,0,0,.75);
}
.lightbox::backdrop{ background: rgba(0,0,0,.72); }

.lightbox__img{
  display:block;
  max-width: 46vw;
  max-height: 70vh;
  width:auto;
  height:auto;
  margin: 0 auto;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}

@media (max-width: 720px){
  .lightbox__img{
    max-width: 82vw;
    max-height: 70vh;
  }
}

.lightbox__close{
  appearance:none;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.06);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  cursor:pointer;
  font-size: 24px;
  line-height: 1;
  display:grid;
  place-items:center;
  margin-left:auto;
  margin-bottom: 10px;
  transition: border-color var(--ease-fast), transform var(--ease-fast), background var(--ease-fast);
}
.lightbox__close:hover{
  border-color: rgba(215,201,166,.55);
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
}

/* =========================================================
   Bestellformular-Kachel
   ========================================================= */
.order-tile{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height: 180px;
}

.order-tile__link{
  display:block;
  width:100%;
  padding:28px 20px;
  font-size:1.15rem;
  font-weight:900;
  letter-spacing:.02em;
  color:var(--gold);
}

/* =========================================================
   Integrierte Mini-Kachel (im Produkte-Bereich)
   ========================================================= */
.products__head{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom: 12px;
}

/* kleine, integrierte Kachel */
.mini-tile{
  display:inline-flex;
  align-items:center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(215,201,166,.35);

  background:
    radial-gradient(600px 220px at 25% 20%, rgba(215,201,166,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));

  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--gold);

  transition: transform var(--ease-fast), border-color var(--ease-fast), box-shadow var(--ease-fast), background var(--ease-fast);
}
.mini-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(215,201,166,.65);
  box-shadow: 0 22px 60px rgba(0,0,0,.62);
  background:
    radial-gradient(600px 220px at 25% 20%, rgba(215,201,166,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
}

/* =========================================================
   FIX: Anrede-Select (app.html) – Text immer schwarz
   ========================================================= */
/* Grundlage: wir übernehmen die Input-Styles */
#ship_salutation,
#bill_salutation{
  background: rgba(255,255,255,.06); /* gleicher BG wie Inputs */
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;

  color: rgba(255,255,255,.55);      /* gleiche Farbe wie Placeholder */
}

/* Hover / Focus – identisch zu Inputs */
#ship_salutation:hover,
#ship_salutation:focus,
#bill_salutation:hover,
#bill_salutation:focus{
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  border-color: rgba(215,201,166,.45);
  outline: none;
}

/* Dropdown-Liste (geöffnet) */
#ship_salutation option,
#bill_salutation option{
  background-color: #fff;
  color: #000;
}

/* Ausgewählte Option in Liste */
#ship_salutation option:checked,
#bill_salutation option:checked{
  background-color: #eaeaea;
  color: #000;
}

/* =========================================================
   Mobile Fix (Best practice):
   1) iOS/Safari: vermeidet helle Streifen durch fixed backgrounds
   2) reduziert Gradient-Banding in Cards, ohne Desktop zu verändern
   ========================================================= */

@media (max-width: 768px){

  /* Wichtig gegen weiße/helle Streifen (iOS/Safari + fixed backgrounds) */
  body{
    background-attachment: scroll; /* statt fixed */
  }

  /* Falls irgendwo "weiß" durchscheint: html/body sauber dunkel setzen */
  html, body{
    background-color: var(--bg0);
  }

  /* Nur die echten Card-Flächen stabilisieren (keine thumbs/lightbox anfassen) */
  .card,
  .tile,
  .markets__card{
    background-image: none !important;              /* killt den transparenten Verlauf */
    background-color: rgba(12,12,18,0.92) !important; /* ruhige Fläche */
  }

  /* Glow-Overlay etwas leiser */
  .tile::after{
    opacity: .18;
  }
}
/* Mobile: Tile-Bilder nicht hart croppen */
@media (max-width: 768px){

  /* mehr Platz für den Bildbereich */
  .tile{
    min-height: 420px;   /* vorher 360px */
  }

  .tile__media{
    height: 60%;                 /* vorher 52% */
    background-position: center; /* sauber zentrieren */
    background-repeat: no-repeat;
    background-size: contain;    /* wichtig: verhindert Cropping */
  }
}
/* =========================================================
   Mobile: Lightbox stabil (kein "Wackeln" beim Swipen)
   - ersetzt instabiles vh durch svh (iOS Adressleiste)
   - verhindert Scroll/Bounce im Dialog
   ========================================================= */
@media (max-width: 720px){

  /* Dialog/Lightbox im Viewport fest verankern */
  .lightbox[open],
  .lightbox{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-height: 92svh;          /* stabiler als vh auf iOS */
    overflow: hidden;           /* kein inneres "ruckeln" */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Bildhöhe stabilisieren (statt 70vh -> 70svh) */
  .lightbox__img{
    max-height: 70svh;
  }
}
@media (max-width: 720px){
  html:has(.lightbox[open]),
  body:has(.lightbox[open]){
    overflow: hidden;
    height: 100%;
    touch-action: none;
  }
}

