/* ===========================================================
   HOSENSTALL – Dein Jeansoutlet
   Token-System (Farben aus dem Original-Logo entnommen):
   Navy Deep     #0A3A55   Hintergrund dunkel / Hero / Kontakt
   Logo Blue     #0072A6   Original-Blau aus dem Firmenlogo
   Canvas        #F5F0E4   Hintergrund hell
   Gold          #E4DCA6   Reißverschluss-/Knopfgold aus dem Logo
   Gold Dark     #A6924C   Akzent / Stitch-Farbe
   Ink           #171A1F   Text dunkel
   Stitch Cream  #EAE0C8   heller Akzent
   Display-Font: 'Big Shoulders Display' (condensed, industriell)
   Body-Font:    'IBM Plex Sans'
   Utility-Font: 'IBM Plex Mono' (Etiketten / Tag-Optik)
   =========================================================== */

/* --- Schriften lokal eingebunden (KEINE Verbindung zu Google) ---
   DSGVO: dynamisches Laden von fonts.googleapis.com überträgt die
   Besucher-IP an Google (vgl. LG München I, 3 O 17493/20). Daher
   liegen die Schriftdateien im Ordner fonts/ auf dem eigenen Server.

   Es werden zwei Formate angeboten: Der Browser nimmt automatisch das
   erste, das er findet. Liegt eine .woff2 im Ordner, wird die genutzt
   (kleiner, schneller); sonst die .ttf. Es genügt also EIN Format je
   Schnitt - einfach ablegen, was vorhanden ist.

   Fehlen die Dateien ganz, greift der font-family-Fallback und die
   Seite nutzt eine ähnliche Systemschrift. Nichts bricht. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/big-shoulders-display-700.woff2') format('woff2'),
       url('../fonts/big-shoulders-display-700.ttf')   format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('../fonts/big-shoulders-display-800.woff2') format('woff2'),
       url('../fonts/big-shoulders-display-800.ttf')   format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-400.woff2') format('woff2'),
       url('../fonts/ibm-plex-sans-400.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../fonts/ibm-plex-sans-600.woff2') format('woff2'),
       url('../fonts/ibm-plex-sans-600.ttf')   format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2'),
       url('../fonts/ibm-plex-mono-500.ttf')   format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo-deep: #0A3A55;
  --indigo-mid: #0072A6;
  --canvas: #F5F0E4;
  --copper: #A6924C;
  --gold: #E4DCA6;
  --ink: #171A1F;
  --stitch-cream: #EAE0C8;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'IBM Plex Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, .display {
  font-family: 'Big Shoulders Display', 'Haettenschweiler', 'Arial Narrow', Impact, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 0.95;
}

.mono {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--copper);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--indigo-deep);
  border-bottom: 1px solid rgba(234,224,200,0.15);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-mini {
  color: var(--stitch-cream);
  font-size: 22px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-toggle {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--stitch-cream);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color .15s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--copper);
}

.nav-toggle-label {
  display: none;
  color: var(--stitch-cream);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--indigo-deep);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 8px 24px 20px;
    gap: 16px;
  }
  .nav-toggle:checked ~ .main-nav {
    max-height: 400px;
  }
  .nav-toggle-label { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--indigo-deep);
  color: var(--stitch-cream);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}

/* subtle denim-weave texture via layered gradients */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.12) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

/* Signature element: Original-Firmenlogo (aus der alten Seite, 90° gedreht) */
.badge-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-logo {
  width: clamp(260px, 34vw, 420px);
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.hero-tagline {
  font-size: clamp(18px, 2.4vw, 24px);
  max-width: 46ch;
  margin: 0;
}

.hero-meta {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 14px;
  color: rgba(234,224,200,0.75);
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover { background: #9c5518; }

.btn-ghost {
  border: 1px solid rgba(234,224,200,0.5);
  color: var(--stitch-cream);
}
.btn-ghost:hover { background: rgba(234,224,200,0.08); }

/* ---------- Reißverschluss (klebend am Content-Bereich) -----------------
   Nachbau des Zippers aus dem Original-Logo. Dort gemessen:
   Zahnbreite 12px, Lücke 12px -> Periode 24px, also exakt 50/50.
   Aufbau: obere Zahnreihe + unteres Gegenstück, um eine halbe Periode
   versetzt, sodass die Zähne ineinandergreifen. Dazwischen das dunkle
   Band. Die Zähne haben einen vertikalen Verlauf (hell -> gold -> dunkel),
   damit sie plastisch wirken statt wie flache Balken.

   Verhalten: Beide Leisten sitzen in .zip-zone (Über uns bis Galerie).
   Der obere klebt unter der Navigation, sobald er dort ankommt; der
   untere klebt am Fensterrand, solange Inhalt darunter folgt. Am Ende
   der Zone lösen sich beide und scrollen normal mit - der Kontakt-
   bereich schiebt den unteren Zipper dann nach oben aus dem Bild.     */
.zip-zone {
  position: relative;
}

.zipper {
  --zip-period: 24px;
  --zip-tooth: 12px;
  --zip-teeth: 13px;
  --zip-height: 30px;
  position: sticky;
  height: var(--zip-height);
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
  background: #06212F;
}

/* obere Leiste: klebt direkt unter dem Kopfbereich (64px hoch) */
.zipper--top {
  top: 64px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* untere Leiste: klebt am unteren Fensterrand, bis die Zone endet */
.zipper--bottom {
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.35);
}

/* obere Zahnreihe */
.zipper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--zip-teeth);
  background: linear-gradient(to bottom,
    #FFF8DC 0%,
    var(--gold) 45%,
    var(--copper) 100%);
  -webkit-mask-image: repeating-linear-gradient(to right,
    #000 0, #000 var(--zip-tooth),
    transparent var(--zip-tooth), transparent var(--zip-period));
  mask-image: repeating-linear-gradient(to right,
    #000 0, #000 var(--zip-tooth),
    transparent var(--zip-tooth), transparent var(--zip-period));
}

/* untere Zahnreihe, um eine halbe Periode versetzt */
.zipper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--zip-teeth);
  background: linear-gradient(to top,
    #FFF8DC 0%,
    var(--gold) 45%,
    var(--copper) 100%);
  -webkit-mask-image: repeating-linear-gradient(to right,
    transparent 0, transparent var(--zip-tooth),
    #000 var(--zip-tooth), #000 var(--zip-period));
  mask-image: repeating-linear-gradient(to right,
    transparent 0, transparent var(--zip-tooth),
    #000 var(--zip-tooth), #000 var(--zip-period));
}

/* ---------- Stitch divider (structural motif) ---------- */
/* ---------- Steppnaht als Trenner ----------
   Doppelnaht wie am Jeansbein: zwei Stichreihen, gegeneinander
   versetzt, mit leichter Schraegstellung der Stiche und einer
   dunklen Einstichkante darunter. Die Reihen liegen 7px
   auseinander; der Versatz von 9px sorgt dafuer, dass sich die
   Stiche wie bei einer echten Naht abwechseln. */
.stitch-divider {
  border: none;
  max-width: var(--max);
  margin: 0 auto;
  height: 16px;
  position: relative;
  overflow: hidden;
  background: none;
}

/* obere Stichreihe */
.stitch-divider::before,
.stitch-divider::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    72deg,
    var(--copper) 0px,
    var(--copper) 9px,
    transparent 9px,
    transparent 18px
  );
  /* dunkle Kante = Eindruck des Einstichs ins Gewebe */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.28));
  opacity: 0.85;
}

.stitch-divider::before {
  top: 4px;
}

/* untere Reihe: halber Stich versetzt, minimal blasser */
.stitch-divider::after {
  top: 11px;
  background-position: 9px 0;
  opacity: 0.6;
}

/* Naht auf dunklem Grund (Hero-/Kontaktkante) heller fuehren */
.hero + .stitch-divider::before,
.hero + .stitch-divider::after {
  background-image: repeating-linear-gradient(
    72deg,
    var(--gold) 0px,
    var(--gold) 9px,
    transparent 9px,
    transparent 18px
  );
}

/* ---------- Sections ---------- */
section {
  padding: 76px 0;
}

.eyebrow {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
  display: block;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 22px;
}

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-grid p {
  font-size: 17px;
  max-width: 56ch;
}

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Marken chips ---------- */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.brand-chip {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--stitch-cream);
  border: 1px solid rgba(23,26,31,0.15);
  border-radius: 2px;
  padding: 9px 16px;
  position: relative;
}
.brand-chip::before {
  content: "";
  position: absolute;
  left: -1px; top: 50%;
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Galerie / Foto-Slots ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  border: 2px dashed rgba(23,26,31,0.25);
  background:
    repeating-linear-gradient(135deg, rgba(53,80,122,0.08) 0 10px, transparent 10px 20px),
    var(--stitch-cream);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  position: relative;
}

.photo-slot span {
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  background: rgba(23,26,31,0.85);
  color: var(--canvas);
  padding: 5px 9px;
  border-radius: 2px;
}

/* Replace a .photo-slot div with e.g.:
   <div class="photo-slot" style="background-image:url('../images/laden-1.jpg')"></div>
   and remove the <span> caption once a real photo is in place. */

.photo {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(23,26,31,0.15);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Kontakt ---------- */
.contact-section {
  background: var(--indigo-deep);
  color: var(--stitch-cream);
}
.contact-section .eyebrow { color: var(--copper); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 14px;
}
.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(234,224,200,0.15);
}
.hours-table td:last-child { text-align: right; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(234,224,200,0.15);
  font-size: 15px;
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--copper); }

.social-intro {
  margin: 22px 0 10px;
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(234,224,200,0.75);
}

.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid rgba(234,224,200,0.4);
  border-radius: 3px;
  text-decoration: none;
  color: var(--stitch-cream);
  font-family: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background .15s ease, border-color .15s ease;
}
.social-row a:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--ink);
}
.social-row svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #141B27;
  color: rgba(234,224,200,0.6);
  padding: 28px 0;
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer a {
  color: rgba(234,224,200,0.8);
  text-decoration: none;
}
.site-footer a:hover { color: var(--copper); }
.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Legal pages (impressum/datenschutz) ---------- */
.legal-page main {
  padding: 64px 0 90px;
}
.legal-page h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 28px;
}
.legal-page h2 {
  font-size: 20px;
  margin: 34px 0 10px;
  text-transform: none;
  letter-spacing: 0;
}
.legal-page p, .legal-page li {
  font-size: 15.5px;
  max-width: 68ch;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}