/* ==========================================================================
   TABAK-HAUS – STYLESHEET
   Aufbau:
   1. Grundwerte (Farben, Schriften)   5. Hero (Startbereich)
   2. Grundlayout                      6. Inhaltsbereiche
   3. Buttons                          7. Kontakt
   4. Kopfzeile und Menü               8. Footer, Rechtstexte, Animationen
   Es werden keine externen Schriften oder Dateien geladen (Datenschutz).
   ========================================================================== */


/* ---------- 1. GRUNDWERTE ----------
   Hier ändern Sie Farben und Schriften an einer einzigen Stelle. */
:root {
  --color-primary:      #821c27;  /* Bordeaux: Hauptfarbe, Buttons, Überschriften */
  --color-primary-dark: #5f131c;  /* dunkleres Bordeaux: Hover und Footer */
  --color-text:         #202020;  /* Anthrazit: normaler Text */
  --color-text-muted:   #5f5b58;  /* Grau: Nebentexte */
  --color-bg-tinted:    #f7f5f2;  /* warmes Off-White: Hintergründe */
  --color-white:        #ffffff;
  --color-line:         #e3ded8;  /* feine Trennlinien */
  --color-error:        #b3261e;  /* Fehlermeldungen im Formular */

  --font-headline: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-smooth: cubic-bezier(.2, .7, .2, 1);  /* weiche Animationskurve */
  --header-height: 68px;
}


/* ---------- 2. GRUNDLAYOUT ---------- */
* { box-sizing: border-box; margin: 0; }

html {
  scroll-behavior: smooth;                         /* sanftes Scrollen bei Ankerlinks */
  scroll-padding-top: calc(var(--header-height) + 8px); /* Platz für die feste Kopfzeile */
}

body {
  font: 17px/1.65 var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--color-primary); }

h1, h2, h3 {
  font-family: var(--font-headline);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
}

/* Begrenzt den Inhalt auf eine angenehme Breite und zentriert ihn */
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Jeder Inhaltsabschnitt: gleicher Abstand oben und unten */
.section { padding: 84px 0; }
.section--tinted { background: var(--color-bg-tinted); }  /* abwechselnder Hintergrund */

.section h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: 14px; }
.section__lead { color: var(--color-text-muted); max-width: 56ch; margin-bottom: 44px; }

/* Für Tastatur-Nutzer: springt direkt zum Inhalt, erst beim Fokus sichtbar */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 20;
  background: var(--color-primary); color: var(--color-white); padding: 10px 16px;
}
.skip-link:focus { left: 8px; }

/* Sichtbarer Fokusrahmen (Barrierefreiheit) */
a:focus-visible, .button:focus-visible, .menu-toggle:focus-visible {
  outline: 3px solid var(--color-primary); outline-offset: 3px;
}


/* ---------- 3. BUTTONS ----------
   .button            = gefüllter Bordeaux-Button
   .button--outline   = nur Rahmen
   .button--small     = kleinere Variante */
.button {
  display: inline-block; cursor: pointer;
  padding: 13px 26px; font-size: 1rem; font-weight: 600; text-decoration: none;
  color: var(--color-white) !important;
  background: var(--color-primary); border: 2px solid var(--color-primary); border-radius: 3px;
  transition: background .25s, color .25s;
}
.button:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.button--outline { background: transparent; color: var(--color-primary) !important; }
.button--outline:hover { background: var(--color-primary); color: var(--color-white) !important; }
.button--small { padding: 9px 20px; font-size: .93rem; }


/* ---------- 4. KOPFZEILE UND MENÜ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;            /* bleibt beim Scrollen oben */
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--color-line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); } /* per script.js */
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-height);
}

.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-headline); font-size: 1.3rem; letter-spacing: .14em;
  text-decoration: none; color: var(--color-text);
}
.logo-mark { width: 34px; height: 30px; color: var(--color-primary); }

/* Navigationslinks mit Unterstreichung, die beim Hover einfährt */
.main-nav a {
  position: relative; margin-left: 26px; padding: 6px 0;
  font-size: .95rem; color: var(--color-text); text-decoration: none;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--color-primary);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-smooth);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.call-button, .menu-toggle { display: none; }  /* wird unten je nach Bildschirmbreite eingeblendet */

/* Handy und kleines Tablet: Navigation wird zum ausklappbaren Menü */
@media (max-width: 859px) {
  .logo { font-size: 1.1rem; letter-spacing: .1em; }

  /* Rechtsseiten haben kein Menü: dort wird die Navigation ausgeblendet */
  .site-header:not(.site-header--with-menu) .main-nav { display: none; }

  .site-header--with-menu .call-button { display: inline-block; }

  /* Hamburger-Symbol aus drei Strichen */
  .site-header--with-menu .menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    padding: 12px; margin-right: -12px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--color-text);
    transition: transform .35s var(--ease-smooth), opacity .2s;
  }
  /* Geöffnet: Striche werden zum X */
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Das Menü selbst: liegt unter der Kopfzeile, standardmäßig unsichtbar */
  .site-header--with-menu .main-nav {
    position: fixed; inset: var(--header-height) 0 auto 0;
    display: flex; flex-direction: column; padding: 8px 22px 24px;
    background: var(--color-white); border-bottom: 1px solid var(--color-line);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .35s var(--ease-smooth), visibility .3s;
  }
  .site-header--with-menu .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-header--with-menu .main-nav a {
    margin: 0; padding: 16px 0; font-family: var(--font-headline); font-size: 1.5rem;
    border-bottom: 1px solid var(--color-line);
  }
  .site-header--with-menu .main-nav a::after { display: none; }
}
/* Desktop: Anrufen-Button sichtbar */
@media (min-width: 860px) { .site-header--with-menu .call-button { display: inline-block; } }


/* ---------- 5. HERO (STARTBEREICH) ----------
   Links Text, rechts das illustrierte Schaufenster. */
.hero { --hero-top: 56px; background: var(--color-bg-tinted); padding: var(--hero-top) 0 0; overflow: hidden; }
.hero .container { display: grid; gap: 40px; align-items: end; }
.hero__text { padding-bottom: 28px; }
.hero h1 { font-size: clamp(2.6rem, 8.5vw, 5.4rem); color: var(--color-primary); max-width: 11ch; margin-bottom: 22px; }
.hero__intro { max-width: 44ch; margin-bottom: 30px; font-size: 1.12rem; color: var(--color-text-muted); }
.hero .button { margin: 0 10px 12px 0; }

/* Schaufenster: gestreifte Markise + bordeauxfarbenes Fenster */
.shopfront { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.shopfront__awning {
  height: 64px;
  background: repeating-linear-gradient(90deg, var(--color-primary) 0 40px, var(--color-white) 40px 80px);
  border: 1px solid var(--color-primary); border-bottom: 0;
  box-shadow: 0 14px 0 -4px rgba(0, 0, 0, .08);
}
.shopfront__window {
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  padding: 34px 30px 30px;
  background: var(--color-primary); color: var(--color-white);
  /* Maximalhöhe = Bildschirmhöhe minus Kopfzeile, Hero-Abstand, Markise und etwas Luft.
     Mindestens 240px, höchstens 420px. Ist der Inhalt höher, scrollt nur die Leistungsliste. */
  max-height: clamp(240px, calc(100svh - var(--header-height) - var(--hero-top) - 64px - 24px), 420px);
}
/* Logo bleibt oben stehen und wird nie gequetscht */
.shopfront__window .logo-mark { flex-shrink: 0; width: 92px; height: 81px; color: var(--color-white); }
/* Nur die Leistungsliste scrollt, der Scrollbalken erscheint nur hier im Kasten.
   min-height: 0 erlaubt der Liste, innerhalb des Flex-Containers zu schrumpfen. */
.shopfront__window ul {
  flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  list-style: none; padding: 0; border-top: 1px solid rgba(255, 255, 255, .35);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .5) transparent;   /* dezenter Balken */
}
.shopfront__window ul::-webkit-scrollbar { width: 6px; }
.shopfront__window ul::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .5); border-radius: 3px; }
.shopfront__window li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; font-family: var(--font-headline); font-size: 1.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.shopfront__window small { font: .78rem var(--font-body); opacity: .8; }

/* Desktop: zwei Spalten. Die Burg ist genauso hoch wie die Textspalte links.
   contain: size sorgt dafür, dass die Burg selbst keine eigene Höhe verlangt,
   sondern die Höhe der Textspalte übernimmt. Die Leistungsliste scrollt, wenn der Platz nicht reicht. */
@media (min-width: 860px) {
  .hero { --hero-top: 84px; }
  .hero .container { grid-template-columns: 1.25fr .9fr; align-items: stretch; }
  .shopfront { display: flex; flex-direction: column; align-self: stretch; contain: size; }
  .shopfront__awning { flex-shrink: 0; }
  .shopfront__window { flex: 1; min-height: 0; max-height: none; }
}


/* ---------- 6. INHALTSBEREICHE ---------- */

/* Leistungen: Liste mit Linien statt Karten, zwei Spalten ab Tablet-Breite */
.service-list { display: grid; gap: 0 64px; padding: 0; list-style: none; border-top: 2px solid var(--color-text); }
@media (min-width: 760px) { .service-list { grid-template-columns: 1fr 1fr; } }
.service-list li {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 18px;
  padding: 26px 0 26px 14px; border-bottom: 1px solid var(--color-line);
  transition: background .3s, padding .35s var(--ease-smooth);
}
/* Bordeaux-Strich links, wächst beim Hover von oben nach unten */
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--color-primary);
  transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease-smooth);
}
.service-list li:hover { background: var(--color-bg-tinted); padding-left: 22px; }
.service-list li:hover::before { transform: scaleY(1); }
.service-list svg { width: 44px; height: 44px; fill: none; stroke: var(--color-primary); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-list h3 { font-size: 1.45rem; margin-bottom: 4px; }
.service-list p { max-width: 40ch; font-size: .97rem; color: var(--color-text-muted); }

/* Über uns: Text links, Schild rechts */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.about h2 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: var(--color-primary); }
.about p { max-width: 50ch; font-size: 1.12rem; }
.about__fact { margin-top: 28px; padding: 4px 0 4px 22px; border-left: 3px solid var(--color-primary); font-size: .97rem !important; color: var(--color-text-muted); }
.about__sign { position: relative; padding: 40px 34px; background: var(--color-white); border: 1px solid var(--color-line); }
.about__sign::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--color-primary); pointer-events: none; } /* doppelter Schild-Rahmen */
.about__sign .logo-mark { width: 60px; height: 53px; margin-bottom: 20px; }
.about__sign p { font-family: var(--font-headline); font-size: 1.5rem; line-height: 1.3; }

/* Standorte: zwei gleichwertige Bereiche nebeneinander (auf dem Handy untereinander) */
.locations { display: grid; gap: 28px; }
@media (min-width: 760px) { .locations { grid-template-columns: 1fr 1fr; gap: 36px; } }
.location {
  display: flex; flex-direction: column;            /* Buttons rutschen in beiden Filialen nach unten, gleiche Höhe */
  padding: 36px 34px 34px;
  background: var(--color-bg-tinted); border-top: 3px solid var(--color-primary);
}
.location h3 { margin-bottom: 14px; font-size: 1.8rem; }
.location address { font-style: normal; color: var(--color-text-muted); }
/* Telefonnummer groß in der Headline-Schrift: wichtigste Information der Filiale */
.location__phone { display: inline-block; align-self: flex-start; margin: 18px 0 6px; font-family: var(--font-headline); font-size: 1.9rem; color: var(--color-primary); text-decoration: none; }
.location__phone:hover { text-decoration: underline; }
.location table { width: 100%; margin: 14px 0 28px; border-collapse: collapse; }
.location td { padding: 9px 0; border-bottom: 1px solid var(--color-line); font-size: .97rem; }
.location td:last-child { text-align: right; }
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }  /* margin-top:auto = ganz unten */
.location-note { margin-top: 28px; font-size: .88rem; color: var(--color-text-muted); }


/* ---------- 7. KONTAKT ----------
   Links Text und Verweis zu den Standorten, rechts die E-Mail-Adresse. */
.contact { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.1fr .9fr; gap: 80px; } }
.contact .section__lead { margin-bottom: 26px; }
.contact__mail { padding: 30px 0 30px 28px; border-left: 3px solid var(--color-primary); }
.contact__label { display: block; margin-bottom: 4px; font-size: .93rem; font-weight: 600; color: var(--color-text-muted); }
.contact__address { font-family: var(--font-headline); font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--color-primary); text-decoration: none; overflow-wrap: anywhere; }
.contact__address:hover { text-decoration: underline; }


/* ---------- 8. FOOTER, RECHTSTEXTE, ANIMATIONEN ---------- */
.site-footer { padding: 56px 0 32px; background: var(--color-primary-dark); color: #e5dcda; font-size: .93rem; }
.site-footer a { color: var(--color-white); margin-right: 18px; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .logo { margin-bottom: 12px; color: var(--color-white); }
.site-footer .logo-mark { color: var(--color-white); }
.site-footer h3 { margin-bottom: 10px; font: 600 .85rem var(--font-body); letter-spacing: .04em; color: var(--color-white); }
.footer-grid { display: grid; gap: 30px; margin-bottom: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-links a { display: block; margin: 0 0 6px; }
.footer-copy { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; }

/* Impressum und Datenschutz */
.legal-page h1 { margin-bottom: 12px; font-size: clamp(2rem, 5vw, 3rem); color: var(--color-primary); }
.legal-page h3 { margin-top: 24px; }
.legal-page p { max-width: 70ch; }
.placeholder { background: none; padding: 0; }   /* Platzhalter, z. B. für die USt-IdNr. */

/* Animationen – nur für Besucher, die keine reduzierte Bewegung eingestellt haben */
@media (prefers-reduced-motion: no-preference) {
  /* Einmalige Ladeanimation im Hero: Markise fährt herunter, Fenster und Text blenden ein */
  .shopfront__awning { animation: awning-drop 1s var(--ease-smooth) both; }
  .shopfront__window { animation: fade-up 1s .25s var(--ease-smooth) both; }
  .hero__text > * { animation: fade-up .9s var(--ease-smooth) both; }
  .hero__text > :nth-child(2) { animation-delay: .15s; }
  .hero__text > :nth-child(3) { animation-delay: .3s; }
  @keyframes awning-drop { from { transform: translateY(-100%); opacity: 0; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(20px); } }

  /* Scroll-Einblendung: .reveal startet unsichtbar, script.js setzt .is-visible */
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}


/* ---------- STANDORT-BEREICHE (Postfiliale / Paketshop) ---------- */
.badge { display: inline-block; margin-bottom: 14px; padding: 4px 12px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-white); background: var(--color-primary); }
.badge--alt { background: var(--color-text); }
.site-block { display: grid; gap: 36px; align-items: start; }
.site-block h2 { color: var(--color-primary); }
.site-block > div > h3 { margin: 8px 0 10px; font-size: 1.3rem; }
.check-list { margin: 0 0 22px; padding: 0; list-style: none; }
.check-list li { padding: 9px 0 9px 28px; border-bottom: 1px solid var(--color-line); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 1.1em; width: 7px; height: 12px; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: translateY(-50%) rotate(45deg); }
.partner-note { max-width: 56ch; font-size: .88rem; color: var(--color-text-muted); }
.location__district { margin: -6px 0 12px; font-weight: 600; color: var(--color-primary); }
.site-block .location { background: var(--color-white); }
.footer-copy + .footer-copy { margin-top: 8px; }

.site-block .check-list + h3 { margin-top: 22px; }
.site-block .partner-note + .partner-note { margin-top: 10px; }
.service-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* dritte Leistung füllt die Zeile */
.site-block .location__actions { margin-top: 24px; }
