/* ==========================================================================
   WUNSCHKARTE STUDIO - Contemporary German Papeterie & Card Showcase
   Design System: Warm Editorial, Tactile Paper & Contemporary Typography
   ========================================================================== */

:root {
  --bg-main: #fbf9f5;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f4efe6;
  --bg-terracotta-soft: #fbf0ea;
  
  --text-main: #1f1d1a;
  --text-muted: #6e675f;
  --text-light: #9c9489;
  
  --accent-terracotta: #c85a32;
  --accent-terracotta-hover: #b04b25;
  --accent-gold: #967d4f;
  --accent-pine: #2d4a3e;
  
  --border-light: #eae4d8;
  --border-focus: #c85a32;
  
  --shadow-sm: 0 2px 8px rgba(31, 29, 26, 0.04);
  --shadow-md: 0 10px 30px rgba(31, 29, 26, 0.06);
  --shadow-lg: 0 20px 45px rgba(31, 29, 26, 0.09);
  --shadow-card: 0 12px 28px -6px rgba(45, 35, 25, 0.08), 0 4px 12px -2px rgba(45, 35, 25, 0.04);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background paper grain / subtle texture simulation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--border-light) 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, .serif-font {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-light);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent-terracotta);
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(200, 90, 50, 0.25);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200, 90, 50, 0.35);
}

/* Hero Section */
.hero-section {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-terracotta-soft);
  color: var(--accent-terracotta);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(200, 90, 50, 0.2);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-terracotta);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* Filter Controls */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 30px;
  padding: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-light);
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Card Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.card-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200, 90, 50, 0.3);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f4ee;
  overflow: hidden;
  cursor: pointer;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-item:hover .card-img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  letter-spacing: 0.02em;
}

.card-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.card-item:hover .card-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text-main);
}

.card-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}

.card-spec {
  color: var(--text-light);
}

.card-price-tag {
  color: var(--accent-terracotta);
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-order-card {
  margin-top: 14px;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-terracotta-soft);
  color: var(--accent-terracotta);
  border: 1px solid rgba(200, 90, 50, 0.25);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-order-card:hover {
  background: var(--accent-terracotta);
  color: #ffffff;
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 90, 50, 0.2);
}

/* Brand Values Section */
.values-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 80px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.section-tag {
  color: var(--accent-terracotta);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.value-card {
  padding: 32px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.value-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact / Inquiries Section */
.contact-section {
  margin-bottom: 80px;
}

.contact-box {
  background: linear-gradient(135deg, #fefdfb 0%, #f4efe5 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.contact-box::after {
  content: '✉';
  position: absolute;
  right: -30px;
  bottom: -40px;
  font-size: 180px;
  opacity: 0.03;
  color: var(--text-main);
  pointer-events: none;
}

.contact-email-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 10px 14px 10px 20px;
  border-radius: var(--radius-full);
  margin: 30px 0 20px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.contact-email-address {
  font-weight: 600;
  color: var(--text-main);
  font-size: 1rem;
  word-break: break-all;
}

.btn-copy {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--border-light);
}

/* Urheberrecht & Copyright Notice Box */
.copyright-notice-box {
  margin-bottom: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-terracotta);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.notice-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #191715;
  color: #a49e95;
  padding: 60px 0 40px;
  font-size: 0.875rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #f7f4ee;
  margin-bottom: 8px;
}

.footer-brand p {
  color: #8c857b;
  max-width: 380px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cfc8be;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
  color: #726b62;
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 16, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: row;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-subtle);
  transform: rotate(90deg);
}

.modal-image-col {
  width: 55%;
  background: #f7f4ee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.modal-image-col img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.modal-info-col {
  width: 45%;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f1d1a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Order Form Section
   ========================================================================== */
.order-section {
  padding: 50px 0 70px;
}

.order-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.order-header-text {
  text-align: center;
  margin-bottom: 36px;
}

.order-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  outline: none;
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  background: #ffffff;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(200, 90, 50, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.order-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-terracotta-soft);
  border: 1px solid rgba(200, 90, 50, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 10px;
  gap: 20px;
}

.order-price-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.price-summary-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.btn-submit-order {
  padding: 14px 28px;
  font-size: 1rem;
  white-space: nowrap;
}

.order-guarantee-badge {
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  padding-top: 8px;
}

/* Order Success Modal */
.modal-order-success {
  max-width: 580px;
  flex-direction: column;
  padding: 40px;
  text-align: center;
}

.order-success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.order-success-steps-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .modal-dialog {
    flex-direction: column;
  }
  .modal-image-col, .modal-info-col {
    width: 100%;
  }
  .modal-image-col {
    padding: 20px;
  }
  .modal-info-col {
    padding: 24px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .order-action-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-submit-order {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-wrapper {
    height: 64px;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  .hero-section {
    padding: 40px 0 30px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .order-box {
    padding: 28px 20px;
  }
  .contact-email-bar {
    flex-direction: column;
    padding: 16px;
    width: 100%;
  }
}
