/* ============================================================
   Anna's Lederpuschen — Stylesheet
   Handgefertigte Lederpuschen aus Wanderup
   ============================================================ */

:root {
  /* Farben */
  --paper: #f3ecdd;
  --paper-soft: #eee4cf;
  --card: #fffdf8;
  --ink: #3b2a1f;
  --ink-soft: #6b5744;
  --leather: #8b5a2e;
  --leather-dark: #5c3a1e;
  --thread: #b0432b;
  --thread-soft: #d97a5e;
  --sage: #5f7350;
  --line: #d9cbb0;

  /* Typografie */
  --font-display: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 6px 20px rgba(59, 42, 31, 0.12);
  --max-width: 1080px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--leather-dark); }
a:hover { color: var(--thread); }

:focus-visible {
  outline: 3px solid var(--thread);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--leather-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--thread);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Kopfbereich ---------- */
.site-header {
  background: var(--paper-soft);
  border-bottom: 3px dashed var(--thread-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text .wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--leather-dark);
  display: block;
}

.brand-text .tagline {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Navigation */
.nav-toggle {
  display: none;
  background: var(--leather-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--leather);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  color: var(--leather-dark);
  min-height: 44px;
  line-height: 24px;
}

.primary-nav a:hover {
  background: var(--paper);
  color: var(--thread);
  border-color: var(--thread);
}

.primary-nav a[aria-current="page"] {
  background: var(--leather-dark);
  border-color: var(--leather-dark);
  color: #fff;
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .primary-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 12px;
  }
  .primary-nav.open ul { display: flex; }
  .primary-nav a { text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 16px 20px; gap: 12px; }
  .brand-text .tagline { display: none; }
  .brand-text .wordmark { font-size: 1.35rem; }
  body { font-size: 17px; }
  .hero { padding: 32px 0; }
  section { padding: 32px 0; }
  .stitched-card { padding: 22px; }
  .btn { width: 100%; justify-content: center; }
  .button-row { flex-direction: column; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--card);
  outline: 2px dashed var(--line);
  outline-offset: 6px;
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-eyebrow {
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  min-height: 44px;
  border: 2px solid transparent;
}

.btn-primary { background: var(--thread); color: #fff; }
.btn-primary:hover { background: #96351f; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--leather-dark);
  color: var(--leather-dark);
}
.btn-outline:hover { background: var(--leather-dark); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 48px 0; }

.section-tight { padding: 24px 0 48px; }

.stitched-card {
  background: var(--card);
  border: 2px dashed var(--thread-soft);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* Drei-Wege-Karten */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

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

.way-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.way-card .way-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--paper-soft);
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px;
}

.way-card .way-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.way-card h3 { margin-bottom: 8px; }
.way-card p { margin-bottom: 0; color: var(--ink-soft); }

/* Kontakt-Leiste */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  min-height: 44px;
}
.contact-item:hover { background: var(--line); }

.contact-item .glyph {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.signature {
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--leather-dark);
}

/* ---------- Galerie ---------- */
.gallery-hint {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.gallery-item {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.gallery-caption {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(59, 42, 31, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--thread);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}

/* ---------- Info-Karten (Preise) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

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

.info-card {
  background: var(--card);
  border-left: 5px solid var(--sage);
  border-radius: 4px 12px 12px 4px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: 8px; }
.info-card p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Tabelle ---------- */
.table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  min-width: 480px;
}

thead th {
  background: var(--leather-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  position: sticky;
  top: 0;
}

tbody td {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

tbody tr:nth-child(even) { background: var(--paper-soft); }

td.price { font-weight: 700; color: var(--thread); }

@media (max-width: 560px) {
  .table-wrap { overflow-x: visible; border: none; box-shadow: none; }
  table { min-width: 0; display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody { display: block; }
  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 4px;
    margin-bottom: 12px;
  }
  tbody tr:nth-child(even) { background: var(--card); }
  tbody td {
    border-top: none;
    padding: 0 12px;
    text-align: center;
  }
  tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sage);
    margin-bottom: 4px;
  }
  td.price { font-size: 1.1rem; }
}

/* ---------- Karte / Anfahrt ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--card);
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

.address-card {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.address-block .glyph { font-size: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--leather-dark);
  color: var(--paper);
  padding: 36px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--thread-soft); }

.footer-note {
  font-size: 0.92rem;
  color: #d9c8b3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-note img { width: 26px; height: 26px; }
