/* ════════════════════════════════════════════════
   Die Schattenschneiderin — Main Site Styles
   ════════════════════════════════════════════════ */

:root {
  /* ── Basis-Farben ── */
  --bg:            #080810;
  --gold:          #c9a84c;
  --gold-light:    #e8c87a;
  --gold-dim:      #7a6030;
  --parchment:     #d4b896;
  --parchment-dark:#a08060;
  --text:          #c8b8a2;
  --text-dim:      #7a6a58;
  --border:        rgba(201,168,76,0.18);
  /* ── Komponentenfarben (theme-fähig) ── */
  --bg-nav:             rgba(8,8,16,0.92);
  --bg-section-alt:     rgba(255,255,255,0.018);
  --bg-card:            rgba(255,255,255,0.025);
  --bg-img-placeholder: rgba(0,0,0,0.3);
  --bg-input:           rgba(8,8,16,0.8);
  --bg-select-option:   #0f0f1a;
  --btn-bg:             #1e140a;
  --btn-bg-end:         #140d06;
  --btn-bg-hover:       #2e2010;
  --btn-bg-hover-end:   #1a1008;
  --shadow-card:        rgba(0,0,0,0.5);
  /* ── Fonts & Layout ── */
  --font-title:    'Cinzel Decorative', serif;
  --font-heading:  'Cinzel', serif;
  --font-body:     'IM Fell English', serif;
  --nav-h:         70px;
  /* ── Additional Pattern Variables ── */
  --bg-alt:         rgba(255,255,255,0.03);
  --text-muted:     var(--text-dim);
  --text-heading:   var(--text);
  --accent:         var(--gold);
  --accent-success: #2e7d32;
  --accent-buy:     #1976d2;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Shared: Fog (from game.css pattern) ── */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fog-1 {
  background: radial-gradient(ellipse 200% 80% at 20% 110%,
    rgba(45,27,105,0.22) 0%, transparent 60%);
  animation: fogDrift1 18s ease-in-out infinite;
  opacity: 0.5;
}

.fog-2 {
  background: radial-gradient(ellipse 200% 80% at 80% 110%,
    rgba(13,13,26,0.4) 0%, transparent 60%);
  animation: fogDrift2 24s ease-in-out infinite;
  opacity: 0.45;
}

@keyframes fogDrift1 {
  0%,100% { transform: translateX(-3%); }
  50%     { transform: translateX(3%);  }
}

@keyframes fogDrift2 {
  0%,100% { transform: translateX(4%);  }
  50%     { transform: translateX(-4%); }
}

/* ── Navigation ── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.nav-brand {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--gold-dim);
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

/* ── Shared decorative elements ── */
.brand-mark {
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.8em;
}

.divider {
  color: var(--gold-dim);
  font-size: 1.1rem;
  letter-spacing: 0.5em;
}

.site-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold-light);
  animation: titleGlow 3s ease-in-out infinite;
  letter-spacing: 0.04em;
}

.hero-persona {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--gold);
  letter-spacing: 0.12em;
}

.site-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  color: var(--parchment-dark);
  text-transform: uppercase;
}

@keyframes titleGlow {
  0%,100% { text-shadow: 0 0 30px rgba(201,168,76,0.3); }
  50%     { text-shadow: 0 0 60px rgba(201,168,76,0.55); }
}

/* ── Button ── */
.btn-medieval {
  display: inline-block;
  background: linear-gradient(180deg, var(--btn-bg) 0%, var(--btn-bg-end) 100%);
  border: 1px solid var(--gold-dim);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.8rem 2.5rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  outline: none;
}

.btn-medieval::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201,168,76,0.18);
  pointer-events: none;
}

.btn-medieval:hover {
  background: linear-gradient(180deg, var(--btn-bg-hover) 0%, var(--btn-bg-hover-end) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.25), 0 0 60px rgba(201,168,76,0.1);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  max-width: 720px;
}

.hero-text {
  color: var(--gold-light);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.9;
}

.hero-text em { color: var(--gold-light); }

/* ── Category Sections ── */
.cat-section {
  padding: 6rem 2rem;
  border-bottom: 1px solid rgba(201,168,76,0.08);
  position: relative;
  z-index: 1;
}

.cat-section.alt {
  background: var(--bg-section-alt);
}

.cat-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cat-icon {
  font-size: 2rem;
  color: var(--gold-dim);
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.3));
}

.cat-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,168,76,0.25);
}

.cat-divider {
  color: var(--gold-dim);
  font-size: 1rem;
  letter-spacing: 0.5em;
}

.cat-desc {
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  max-width: 620px;
  line-height: 1.9;
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
}

.placeholder-card {
  border: 1px dashed rgba(201,168,76,0.2);
  padding: 2.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-dim);
}

.placeholder-icon {
  font-size: 1.8rem;
  opacity: 0.4;
}

.placeholder-card p {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Product Cards ── */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 8px 28px var(--shadow-card);
}

.product-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-img-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__image {
  transform: scale(1.04);
}

.product-card__placeholder {
  font-size: 2.8rem;
  opacity: 0.18;
  user-select: none;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}

.product-card__desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  flex: 1;
}

.product-card__cta {
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  margin-top: 0.4rem;
  align-self: flex-start;
  letter-spacing: 0.06em;
}

/* ── Inquiry Form ── */
.inquiry-form,
.inquiry-success {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(201,168,76,0.025);
  padding: 2.5rem 3rem;
  position: relative;
}

.inquiry-form::before,
.inquiry-form::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,168,76,0.07);
  pointer-events: none;
}

.inquiry-ornament {
  color: var(--gold-dim);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
}

.inquiry-intro {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.7;
}

.inquiry-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
}

.inquiry-field--full {
  grid-column: 1 / -1;
}

.inquiry-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--parchment-dark);
}

.req  { color: var(--gold-dim); }
.opt  { color: var(--text-dim); font-size: 0.6rem; text-transform: none; letter-spacing: 0; }

.inquiry-input {
  background: var(--bg-input);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.inquiry-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 12px rgba(201,168,76,0.12);
}

.inquiry-input::placeholder { color: var(--text-dim); font-style: italic; }

.inquiry-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%237a6030'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2rem; }
.inquiry-select option { background: var(--bg-select-option); }

.inquiry-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

.inquiry-error {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #c0392b;
  min-height: 1.2em;
  text-align: center;
}

.inquiry-submit { align-self: center; margin-top: 0.4rem; }

/* Datei-Upload Zone */
.inquiry-file-zone {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.02);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.inquiry-file-zone:hover,
.inquiry-file-zone.drag-over {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.06);
}

.file-zone-icon { font-size: 1.2rem; flex-shrink: 0; }

.file-zone-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.inquiry-file-hidden {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

/* Bild-Vorschau-Grid */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.preview-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--bg-img-placeholder);
}

.preview-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 0.65rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

.preview-remove:hover { background: var(--danger); }

.preview-name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.6);
  font-size: 0.55rem;
  color: #ccc;
  padding: 2px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Success state */
.inquiry-success {
  gap: 1.4rem;
  text-align: center;
}

.inquiry-success-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
}

.inquiry-success-text {
  font-style: italic;
  color: var(--text);
  line-height: 1.9;
  font-size: 0.95rem;
}

.inquiry-success-text em { color: var(--gold); }

.hidden { display: none !important; }

@media (max-width: 600px) {
  .inquiry-form { padding: 2rem 1.4rem; }
  .inquiry-row  { grid-template-columns: 1fr; }
}

/* ── Contact Placeholder ── */
.contact-placeholder {
  border: 1px dashed rgba(201,168,76,0.2);
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 500px;
  width: 100%;
}

.contact-note {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-mail {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--gold-light);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.contact-mail:hover { color: var(--gold); }

/* ── Product Designer Placeholder ── */
.designer-placeholder {
  border: 1px solid rgba(201,168,76,0.15);
  background: rgba(201,168,76,0.03);
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 560px;
  width: 100%;
}

.designer-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  text-transform: uppercase;
}

.designer-placeholder p {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ── Footer ── */
.main-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--gold-dim);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── Logo ── */
.nav-logo {
  width: auto;
  height: 32px;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.nav-brand:hover .nav-logo {
  opacity: 1;
  transform: rotate(12deg) scale(1.08);
}

.hero-logo {
  width: auto;
  height: 199px;
  opacity: 0.88;
  filter: drop-shadow(0 0 18px rgba(201,168,76,0.3));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0);    filter: drop-shadow(0 0 18px rgba(201,168,76,0.3)); }
  50%       { transform: translateY(-6px); filter: drop-shadow(0 6px 24px rgba(201,168,76,0.45)); }
}

[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 4px 14px rgba(100,70,20,0.25));
  animation: logoFloatLight 4s ease-in-out infinite;
}

@keyframes logoFloatLight {
  0%, 100% { transform: translateY(0);    filter: drop-shadow(0 4px 14px rgba(100,70,20,0.25)); }
  50%       { transform: translateY(-6px); filter: drop-shadow(0 8px 20px rgba(100,70,20,0.35)); }
}

/* ── Theme-Toggle-Button ── */
.nav-theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--gold-dim);
  font-size: 1.05rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

.nav-theme-toggle:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

/* ── Scroll fade-in animation ── */
.cat-section { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.cat-section.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .main-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem;
    gap: 0.8rem;
  }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    padding-bottom: 0.5rem;
  }

  .nav-links.open { display: flex; }

  .product-grid { grid-template-columns: 1fr; }

  .contact-placeholder,
  .designer-placeholder { padding: 1.5rem; }
}

/* ════════════════════════════════════════════════
   Light Mode — Pergament-Thema
   Aktiviert durch [data-theme="light"] auf <html>
   ════════════════════════════════════════════════ */

[data-theme="light"] {
  /* Basis */
  --bg:            #f0e8d0;
  --gold:          #7a5c10;
  --gold-light:    #5c4010;
  --gold-dim:      #c9a84c;
  --parchment:     #2a1a08;
  --parchment-dark:#3a2a18;
  --text:          #3a2a18;
  --text-dim:      #7a6040;
  --border:        rgba(100,70,20,0.22);
  /* Komponenten */
  --bg-nav:             rgba(240,232,208,0.95);
  --bg-section-alt:     rgba(0,0,0,0.03);
  --bg-card:            rgba(255,248,230,0.85);
  --bg-img-placeholder: rgba(200,180,140,0.3);
  --bg-input:           rgba(255,252,245,0.9);
  --bg-select-option:   #f0e8d0;
  --btn-bg:             #e8d4a0;
  --btn-bg-end:         #d8c080;
  --btn-bg-hover:       #f0e0b0;
  --btn-bg-hover-end:   #e0cc90;
  --shadow-card:        rgba(100,70,20,0.18);
  /* Modal */
  --bg-modal:           #f5edd5;
  --bg-modal-backdrop:  rgba(200,185,150,0.75);
}

/* Nebelschicht im Hellmodus ausblenden */
[data-theme="light"] .fog-layer { display: none; }

/* Nav-Schatten im Hellmodus etwas stärker für Tiefe */
[data-theme="light"] .main-nav {
  box-shadow: 0 2px 12px rgba(100,70,20,0.15);
}

/* Sektions-Überschriften im Hellmodus */
[data-theme="light"] .cat-title {
  text-shadow: none;
}

/* Titelglow im Hellmodus sanfter */
[data-theme="light"] .site-title {
  animation: none;
  text-shadow: 0 1px 4px rgba(100,70,20,0.2);
}

/* Btn-Rahmen-Innerhalb-Border im Hellmodus */
[data-theme="light"] .btn-medieval::before {
  border-color: rgba(100,70,20,0.12);
}

[data-theme="light"] .btn-medieval:hover {
  box-shadow: 0 0 20px rgba(100,70,20,0.15);
}

/* Formular im Hellmodus */
[data-theme="light"] .inquiry-form,
[data-theme="light"] .inquiry-success {
  background: rgba(255,248,230,0.6);
  border-color: rgba(100,70,20,0.2);
}

[data-theme="light"] .inquiry-form::before,
[data-theme="light"] .inquiry-form::after {
  border-color: rgba(100,70,20,0.06);
}

[data-theme="light"] .inquiry-input {
  color: var(--text);
  border-color: rgba(100,70,20,0.2);
}

[data-theme="light"] .inquiry-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 10px rgba(201,168,76,0.15);
}

[data-theme="light"] .inquiry-input::placeholder {
  color: var(--text-dim);
}

/* Produktkarte Bild-Platzhalter etwas sichtbarer */
[data-theme="light"] .product-card__placeholder {
  opacity: 0.35;
}

/* Vorschau-Thumb */
[data-theme="light"] .preview-name {
  background: rgba(100,70,20,0.6);
}

/* Designer-Canvas Drop-Shadow im Hellmodus */
[data-theme="light"] .designer-canvas {
  filter: drop-shadow(0 4px 14px rgba(100,70,20,0.3));
}

[data-theme="light"] .designer-canvas:hover {
  filter: drop-shadow(0 6px 24px rgba(100,70,20,0.4));
}

/* Focus visible für Barrierefreiheit */
.btn-medieval:focus-visible,
.nav-toggle:focus-visible,
.nav-theme-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

/* ── Spenden-Box ── */
.donation-box {
  gap: 1.4rem;
}

.donation-ornament {
  color: var(--gold-dim);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
}

.donation-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  line-height: 1.9;
  max-width: 480px;
}

.donation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.donation-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1rem 1.5rem;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.25s ease;
  min-width: 120px;
}

.donation-btn:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

.donation-icon {
  font-size: 1.5rem;
}

.donation-amount {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.donation-label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Footer Donate Link ── */
.footer-donate {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-donate:hover {
  color: var(--gold-light);
}

@media (max-width: 600px) {
  .donation-options {
    flex-direction: column;
    align-items: stretch;
  }

  .donation-btn {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    min-width: unset;
  }
}

/* ── Schnittmuster-Section ───────────────────────────────────────────────────── */

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  .pattern-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .pattern-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.pattern-card {
  background: #d4b896; /* Helles Pergamentpapier (statisch für beide Themes) */
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pattern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pattern-card__preview {
  width: 100%;
  height: 180px;
  background: #a08060; /* Dunkleres Pergamentpapier (statisch) */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-dim);
}

.pattern-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pattern-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.pattern-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #2a1f15;
  margin: 0;
  min-height: 2.4em;
  line-height: 1.2;
}

.pattern-card__meta {
  font-size: 0.85rem;
  color: #4a3f35;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pattern-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #5a4030;
}

.pattern-card__price--free {
  color: #2e7d32;
}

.pattern-card__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

.btn-pattern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s ease;
}

.btn-pattern--download {
  background: var(--accent);
  color: #fff;
}

.btn-pattern--download:hover {
  background: #5a4a3a;
}

.btn-pattern--buy {
  background: var(--accent-buy);
  color: #fff;
}

.btn-pattern--buy:hover {
  background: #1565c0;
}
