/* ==========================================================================
   Reset & Design Tokens
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #A8854A;
  --gold-light: #D4B07A;
  --gold-text: #7E6438;      /* AA-konformer Gold-Ton für Fließtext auf hellem Grund */
  --gold-btn: #8F713F;       /* AA-konformer Gold-Ton für Button-Hintergrund mit weißer Schrift */
  --gold-btn-hover: #7E6438;
  --rose: #9C6B6B;
  --teal: #6B8C8C;
  --lavender: #8C7A8C;
  --cream: #F5EFE6;
  --cream-dark: #EDE4D8;
  --dark: #2A2520;
  --muted: #746A63;
  --burgundy: #6B3A3A;
  --warm-white: #FBF8F4;
  --bg: #F5EFE6;
  --surface: #FBF8F4;
  --surface2: white;
  --text: #2A2520;
  --text-muted: #746A63;
  --border: rgba(168,133,74,0.2);
  --nav-bg: rgba(245,239,230,0.97);
  --card-bg: white;
  --input-bg: #F5EFE6;
  --stat-bg: #F5EFE6;
  --process-bg: white;
  --focus-ring: 2px solid var(--gold);
}

body.dark {
  --bg: #18160F;
  --surface: #1E1B13;
  --surface2: #252018;
  --text: #EDE4D8;
  --text-muted: #9A9080;
  --border: rgba(168,133,74,0.25);
  --nav-bg: rgba(24,22,15,0.97);
  --card-bg: #252018;
  --input-bg: #1E1B13;
  --stat-bg: #252018;
  --process-bg: #252018;
  --cream: #18160F;
  --cream-dark: #252018;
  --dark: #EDE4D8;
  --muted: #9A9080;
  --warm-white: #1E1B13;
  --gold-text: #D4B07A;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold-btn);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  z-index: 1000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  transition: background 0.3s;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
}

.logo span {
  color: var(--text);
  font-weight: 400;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.theme-icon { font-size: 1rem; transition: transform 0.4s; }
body.dark .theme-icon { transform: rotate(180deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 5rem 4rem;
  position: relative;
  overflow: hidden;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245,239,230,0.55);
  transition: background 0.1s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.4rem;
  color: var(--dark);
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-tag {
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-weight: 500;
}

.hero-tag--handmade { background: #EDE4D8; color: #6B3A3A; }
.hero-tag--unique { background: #E8E0D4; color: #4A5C5C; }
.hero-tag--timeless { background: #EAE4DC; color: #5A4A5A; }

.eyecatcher {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #2A2218 0%, #3A3020 100%);
  border: 1px solid rgba(168,133,74,0.5);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.eyecatcher-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
  white-space: nowrap;
}

.eyecatcher-icon {
  font-size: 1.2rem;
  font-style: normal;
}

.eyecatcher-divider {
  color: var(--gold);
  opacity: 0.5;
  font-size: 0.7rem;
}

body.dark .eyecatcher {
  background: linear-gradient(135deg, #1A1508 0%, #2A2010 100%);
  border-color: rgba(168,133,74,0.4);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--gold-btn);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(143,113,63,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid rgba(44,42,38,0.25);
  margin-left: 1rem;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ==========================================================================
   Section basics
   ========================================================================== */
main section, main > div.marquee-wrap {
  padding: 4.5rem 4rem;
}

.marquee-wrap { padding: 1.2rem 0; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Portfolio
   ========================================================================== */
#portfolio { background: var(--warm-white); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: 1px solid var(--border);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card-visual {
  height: 240px;
  background: #141414;
  overflow: hidden;
}

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

.card-info {
  padding: 1.25rem 1.5rem;
}

.card-tag {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Tag colour variants (shared by .card-tag and .process-num) */
.tag-pink { color: #8C5050; }
.tag-teal { color: #4A6B6B; }
.tag-purple { color: #5A4A6B; }
.tag-gold { color: #8C7040; }
.tag-burgundy { color: #6B4040; }
.tag-lavender { color: #6B5A7A; }

/* Lighter tints in dark mode - originals fall below AA contrast on dark cards */
body.dark .tag-pink { color: #AE8484; }
body.dark .tag-teal { color: #809797; }
body.dark .tag-purple { color: #94899F; }
body.dark .tag-gold { color: #AE9B79; }
body.dark .tag-burgundy { color: #9F8383; }
body.dark .tag-lavender { color: #978CA2; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-wrap {
  background: linear-gradient(90deg, #2A2218 0%, #3A3020 50%, #2A2218 100%);
  border-top: 1px solid rgba(168,133,74,0.3);
  border-bottom: 1px solid rgba(168,133,74,0.3);
  overflow: hidden;
  white-space: nowrap;
}

.marquee {
  display: inline-block;
  animation: scroll 22s linear infinite;
}

.marquee span {
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 2.5rem;
  letter-spacing: 1px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-card {
  background: var(--process-bg);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border);
  transition: background 0.3s;
}

.process-img-wrap {
  height: 180px;
  overflow: hidden;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9);
}

.process-card-body {
  padding: 1.2rem 1.2rem 1.4rem;
}

.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.process-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.process-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ==========================================================================
   Placeholder blocks (shared: "Bild folgt" / "Logo folgt")
   ========================================================================== */
.placeholder-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--cream-dark);
}

.about-visual .placeholder-box {
  border: 2px dashed var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 280px;
  height: 200px;
  background: transparent;
}

.placeholder-icon {
  font-size: 2rem;
  opacity: 0.35;
}

.placeholder-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-section {
  background: var(--surface);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  transition: background 0.3s;
}

.about-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #F0E8DC 0%, #EDE0D4 50%, #DDE8E8 100%);
  border-radius: 28px;
  padding: 2rem;
  min-height: 460px;
}

.about-text p {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: var(--stat-bg);
  border-radius: 16px;
  padding: 1rem 0.75rem;
  flex: 1;
  min-width: 90px;
  overflow: hidden;
  transition: background 0.3s;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-section {
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 4rem;
  align-items: start;
  transition: background 0.3s;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .btn-primary {
  align-self: flex-start;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--gold-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--input-bg);
  outline: none;
  transition: border-color 0.2s, background 0.3s, color 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--surface2);
}

.contact-info {
  background: linear-gradient(160deg, #EDE4D8 0%, #F5EFE6 100%);
  border-radius: 24px;
  padding: 2rem;
}

.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s, transform 0.2s, border-color 0.2s;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--cream-dark);
  border: 1.5px solid var(--border);
}

.contact-link:hover { color: var(--gold); border-color: var(--gold); transform: translateX(4px); }

.link-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.link-icon--instagram { background: #D8C8BC; color: #6B4040; }
.link-icon--email { background: #BCD0CC; color: #3A5858; }
.link-icon--etsy { background: #C8C0CC; color: #5A4A6A; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-btn);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(143,113,63,0.4);
}

.toast.show { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #12100A;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

footer span {
  color: var(--gold-light);
}

/* ==========================================================================
   Dark mode overrides for gradient/hardcoded backgrounds
   ========================================================================== */
body.dark #portfolio { background: #1A1812; }
body.dark .contact-link { background: var(--surface2); }
body.dark .contact-info { background: linear-gradient(160deg, #252018 0%, #1E1B13 100%); }
body.dark .about-visual { background: linear-gradient(135deg, #252018 0%, #2A2018 50%, #1E2420 100%); }
body.dark .placeholder-box { background: var(--cream-dark); }
body.dark .about-visual .placeholder-box { background: transparent; }

/* ==========================================================================
   Responsive (mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .hero, .about-section, .contact-section {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .hero { display: block; }
  .hero-inner { max-width: 100%; }
  .portfolio-grid, .process-grid { grid-template-columns: 1fr 1fr; }
  .hero-text h1 { font-size: 2.5rem; }
  main section, main > div.marquee-wrap { padding: 3rem 1.5rem; }
  .about-visual { min-height: 320px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 1.75rem;
  }

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

@media (max-width: 520px) {
  .portfolio-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
