/* ===========================================
   Portfolio Website - Emilia Anselmi
   =========================================== */

/* Fonts */
@font-face {
  font-family: "Military Scribe";
  src: url("../assets/fonts/Military Scribe/Military Scribe.ttf") format("truetype");
}

@font-face {
  font-family: "Apercu Mono";
  src: url("../assets/fonts/apercu-mono-pro/ApercuMonoProRegular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Apercu Mono";
  src: url("../assets/fonts/apercu-mono-pro/ApercuMonoProBold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Apercu Mono";
  src: url("../assets/fonts/apercu-mono-pro/ApercuMonoProLight.ttf") format("truetype");
  font-weight: 300;
}

/* Variables */
:root {
  --burgunder: #651122;
  --rosa: #d69ba5;
  --buttergelb: #faecee;
  --weiss: #FFFEF9;
  --font-headline: "Military Scribe", Georgia, cursive;
  --font-body: "Apercu Mono", monospace;
  --transition: all 0.3s ease-in-out;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--buttergelb);
  color: var(--burgunder);
  font-size: 0.85rem;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--burgunder);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--rosa); }

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

/* ===========================================
   Header & Navigation
   =========================================== */

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5.2rem 1.5rem 3rem;
  background-color: rgba(250, 236, 238, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 0.5rem;
}

.logo img.logo-default {
  height: 2.8rem;
  width: auto;
}

.logo img.logo-hover {
  height: 2.8rem;
  width: auto;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}

.logo:hover img.logo-default { opacity: 0; }
.logo:hover img.logo-hover { opacity: 1; }

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--burgunder);
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-sep {
  font-size: 0.85rem;
  opacity: 0.4;
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  color: var(--burgunder);
  opacity: 0.4;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover { opacity: 0.75; }
.lang-btn.active { opacity: 1; font-weight: 700; }

nav a {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 0;
  width: 0;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 8px;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  animation: wave-underline 2s linear infinite;
}

@keyframes wave-underline {
  from { background-position: 0 0; }
  to   { background-position: 40px 0; }
}

.cart-toggle {
  position: absolute;
  top: 50%;
  right: 1.3rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--burgunder);
  transition: var(--transition);
  z-index: 102;
}

.cart-toggle:hover { color: var(--rosa); }

.cart-icon {
  width: 1.6rem;
  height: 1.6rem;
}

.cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.5rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 50%;
  background: var(--burgunder);
  color: var(--weiss);
  font-size: 0.65rem;
  line-height: 1.15rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition);
}

.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===========================================
   Hero
   =========================================== */

.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 14rem 2rem 2rem;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: normal;
  color: var(--burgunder);
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-wordmark {
  width: min(75%, 520px);
  height: auto;
  margin-bottom: 2.25rem;
}

.hero .subtitle {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  font-weight: 400;
  max-width: 90%;
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ===========================================
   Projects Section
   =========================================== */

#projekte {
  padding: 2rem 5vw 6rem;
  max-width: 1400px;
  margin: 0 auto;
}

#projekte h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -0.025em;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.projects-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.projects-row--left  { justify-content: flex-start; }
.projects-row--right { justify-content: flex-end; }
.projects-row--center { justify-content: center; }

.projekt-card {
  position: relative;
  overflow: visible;
  transition: var(--transition);
  display: block;
  background: transparent;
  padding: 15px;
  flex-shrink: 0;
}

.projekt-card--wide   { width: 42%; height: 300px; }
.projekt-card--mid    { width: 32%; height: 300px; }
.projekt-card--narrow { width: 22%; height: 300px; }

.projects-quote--overlay {
  position: absolute;
  left: -90%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  z-index: 20;
  padding: 0 1rem;
  pointer-events: none;
}

.projects-quote--overlay blockquote {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #f0d8dc;
  line-height: 1;
  font-weight: normal;
  text-align: center;
}

/* Wavy border on hover */
.projekt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat-x top,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat-x bottom,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100'%3E%3Cpath d='M4 0 Q0 12.5, 4 25 T4 50 T4 75 T4 100' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat-y left,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 100'%3E%3Cpath d='M4 0 Q0 12.5, 4 25 T4 50 T4 75 T4 100' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat-y right;
  background-size: 40px 8px, 40px 8px, 8px 40px, 8px 40px;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.projekt-card:hover::before {
  opacity: 1;
  animation: wave-move 2s linear infinite;
}

@keyframes wave-move {
  from { background-position: 0 0, 40px 100%, 0 0, 100% 40px; }
  to   { background-position: 40px 0, 0 100%, 0 40px, 100% 0; }
}

.projekt-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 6px;
  position: relative;
  z-index: 5;
}

.projekt-card:hover img { transform: scale(1.03); }

.projekt-card .projekt-info {
  position: absolute;
  bottom: 0; left: 15px; right: 15px;
  background-color: var(--buttergelb);
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  text-align: center;
  z-index: 1;
}

.projekt-card:hover .projekt-info { opacity: 1; }

.projekt-card h3 {
  font-size: 1rem;
  color: var(--rosa);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.projekt-card p {
  font-size: 0.75rem;
  color: var(--rosa);
  opacity: 0.9;
}

/* Slideshow */
.projekt-card .slideshow-images {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.projekt-card .slideshow-images img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.projekt-card .slideshow-images img.active {
  opacity: 1;
  z-index: 2;
}

.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 236, 238, 0.8);
  border: none;
  font-size: 1.4rem;
  color: var(--burgunder);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 15;
  opacity: 0;
  font-family: var(--font-headline);
  line-height: 1;
}

.projekt-card:hover .slide-prev,
.projekt-card:hover .slide-next { opacity: 1; }

.slide-prev { left: 0.5rem; }
.slide-next { right: 0.5rem; }

.slide-prev:hover, .slide-next:hover {
  background: rgba(250, 236, 238, 1);
  color: var(--rosa);
}

.slide-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 15;
  opacity: 0;
  transition: var(--transition);
}

.projekt-card:hover .slide-dots { opacity: 1; }

.slide-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--rosa);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slide-dot.active { background: var(--rosa); }

/* ===========================================
   About Page
   =========================================== */

.about-section {
  min-height: 100vh;
  padding: 10rem 3rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.about-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 6px;
  max-height: 500px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  font-weight: normal;
  line-height: 1.2;
}

.about-text p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  gap: 0;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.contact-email-inline {
  color: var(--burgunder);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--burgunder);
}

.contact-email-inline:hover {
  color: var(--rosa);
  border-bottom-color: var(--rosa);
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--burgunder);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
}

.contact-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 8px;
  transition: width 0.3s ease;
}

.contact-links a:hover { color: var(--rosa); }

.contact-links a:hover::after {
  width: 100%;
  animation: wave-underline 2s linear infinite;
}

.kontakt-section .contact-links a:hover { color: var(--weiss); }

.kontakt-section .contact-links a:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23FFFEF9' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* ===========================================
   Kontakt Section
   =========================================== */

.kontakt-section {
  padding: 3rem;
  width: 90%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background-color: #f0d8dc;
  border-radius: 6px;
}

.kontakt-section h2 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.kontakt-section p {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.85;
  line-height: 1.6;
}

.kontakt-section .contact-links { justify-content: center; }

.kontakt-text2 { font-weight: 700; }

/* ===========================================
   Kunst
   =========================================== */

.kunst-section {
  padding: 10rem 3rem 6rem;
  max-width: 100%;
}

.kunst-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.kunst-tab {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--burgunder);
  cursor: pointer;
  padding: 0.5rem 1.2rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.kunst-tab:hover {
  border-bottom-color: var(--rosa);
}

.kunst-tab.active {
  border-bottom-color: var(--burgunder);
}

.kunst-content {
  display: none;
}

.kunst-content.active {
  display: block;
}

.shop-prints-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.shop-prints-card {
  display: block;
  flex: 1;
  max-width: 580px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.shop-prints-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.shop-prints-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.shop-prints-card:hover .shop-prints-img-wrap img {
  transform: scale(1.05);
}

.shop-prints-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(101, 17, 34, 0.55);
  opacity: 0;
  transition: var(--transition);
}

.shop-prints-card:hover .shop-prints-overlay {
  opacity: 1;
}

.shop-prints-overlay span {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--weiss);
  font-weight: normal;
}

.shop-prints-caption {
  display: none;
}

.home-prints-cta-wrapper {
  text-align: center;
  margin-top: 2.5rem;
}

.home-prints-cta-wrapper .back-button {
  margin-top: 0;
}

/* ===========================================
   Product Detail (Shop)
   =========================================== */

.produkt-detail {
  padding: 10rem 3rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.produkt-grid {
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

.produkt-gallery {
  flex: 1.15;
  position: sticky;
  top: 8rem;
}

.produkt-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
}

.produkt-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.produkt-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.produkt-thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: var(--transition);
  padding: 0;
  background: none;
}

.produkt-thumb.active,
.produkt-thumb:hover {
  opacity: 1;
  border-color: var(--burgunder);
}

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

.produkt-info {
  flex: 1;
  padding-top: 0.5rem;
}

.produkt-info h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: normal;
  margin-bottom: 0.5rem;
}

.produkt-preis {
  font-size: 1.3rem;
  color: var(--burgunder);
  margin-bottom: 1.75rem;
}

.produkt-groessen {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.produkt-kaufen-wrapper {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.produkt-kaufen-btn {
  display: inline-block;
  background: var(--burgunder);
  color: var(--weiss);
  border: none;
  border-radius: 4px;
  padding: 0.85rem 3rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.produkt-kaufen-btn:hover {
  background: var(--rosa);
  color: var(--weiss);
}

.produkt-widerruf-hinweis {
  margin-top: 4rem;
  text-align: center;
}

.produkt-widerruf-hinweis a {
  font-size: 0.8rem;
  color: var(--burgunder);
  opacity: 0.7;
  text-decoration: underline;
}

.produkt-widerruf-hinweis a:hover { opacity: 1; }

.produkt-groesse-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--burgunder);
  background: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--burgunder);
  cursor: pointer;
  transition: var(--transition);
}

.produkt-groesse-btn:hover {
  background: var(--buttergelb);
}

.produkt-groesse-btn.active {
  background: var(--burgunder);
  color: var(--weiss);
}

.produkt-section {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(101, 17, 34, 0.15);
}

.produkt-section h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burgunder);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.produkt-section p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.produkt-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.produkt-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.produkt-detail-row span:first-child {
  opacity: 0.65;
  flex-shrink: 0;
}

.produkt-detail-row span:last-child {
  text-align: right;
}

.produkt-related {
  margin-top: 7rem;
  text-align: center;
}

.produkt-related h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.produkt-related .shop-prints-card {
  max-width: 260px;
}

/* ===========================================
   Warenkorb
   =========================================== */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(101, 17, 34, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 199;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  background: var(--buttergelb);
  box-shadow: -12px 0 32px rgba(101, 17, 34, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease-in-out;
  z-index: 200;
  padding: 2rem 1.75rem;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.cart-drawer-header h2 {
  font-family: var(--font-headline);
  font-size: 1.6rem;
  font-weight: normal;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--burgunder);
  cursor: pointer;
  padding: 0.2rem;
  transition: var(--transition);
}

.cart-close:hover { color: var(--rosa); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty {
  font-size: 0.9rem;
  opacity: 0.7;
  text-align: center;
  margin-top: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.cart-item-size {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border: 1px solid var(--burgunder);
  border-radius: 4px;
  background: none;
  color: var(--burgunder);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.cart-qty-btn:hover {
  background: var(--burgunder);
  color: var(--weiss);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.cart-item-price {
  font-size: 0.85rem;
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--burgunder);
  opacity: 0.6;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.cart-item-remove:hover { opacity: 1; }

.cart-footer {
  border-top: 1px solid rgba(101, 17, 34, 0.15);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.cart-shipping-note {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 1.25rem;
}

.cart-checkout-btn {
  width: 100%;
  text-align: center;
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.cart-error {
  font-size: 0.8rem;
  color: var(--burgunder);
  margin-top: 0.75rem;
  text-align: center;
}

/* ===========================================
   Project Detail
   =========================================== */

.projekt-detail {
  padding: 12rem 3rem 6rem;
  max-width: 100%;
  margin: 0 auto;
}

.projekt-detail h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 2rem;
  font-weight: normal;
  text-align: center;
}

.projekt-detail .beschreibung {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.projekt-galerie {
  column-count: 2;
  column-gap: 1.5rem;
  column-fill: balance;
  width: 70%;
  margin: 0 auto;
}

.projekt-galerie img,
.projekt-galerie video {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  break-inside: avoid;
  transition: var(--transition);
}

.projekt-galerie img:hover {
  box-shadow: 0 20px 50px rgba(114, 47, 55, 0.2);
}

.galerie-duo {
  column-span: all;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.galerie-duo > video,
.galerie-duo > img {
  flex: 1;
  min-width: 0;
  width: auto !important;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0 !important;
  break-inside: auto;
  display: block;
}

.alle-projekte-wrapper {
  text-align: right;
  padding: 0.5rem 0 0;
}

/* Homepage sections */
.home-section {
  padding: 2.5rem 12% 2.5rem;
}

.home-prints-section {
  padding-top: 7rem;
}

.home-section-title {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.5vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.home-featured-grid {
  display: flex;
  gap: 1.5rem;
}

.home-featured-grid .projekt-card {
  flex: 1;
  height: 420px;
}

.coming-soon {
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--rosa);
  text-align: center;
  padding: 3rem 1rem;
}

.prints-preview {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: clamp(110px, 13vw, 165px);
  margin: 0 auto 1.5rem;
  border-radius: 6px;
  overflow: hidden;
}

.prints-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.prints-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 6, 10, 0.68);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.prints-preview-overlay .coming-soon {
  padding: 0;
  margin-top: 1.4rem;
  line-height: 0.6;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.prints-preview-overlay .back-button { color: var(--weiss); margin-top: 0; }

.shop-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 320px;
  margin: 0 auto;
}

.shop-grid .shop-card {
  flex: none;
  width: calc(50% - 0.5rem);
}

.shop-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.shop-card:hover .shop-card-img {
  opacity: 0.55;
  transform: translateY(-3px);
}

.shop-card-img {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--rosa);
  border-radius: 6px;
  opacity: 0.35;
  margin-bottom: 0.7rem;
  transition: var(--transition);
}

.shop-card-title {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.shop-card-price {
  font-size: 0.8rem;
  color: var(--burgunder);
  opacity: 0.7;
}

.home-about-inner {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.home-about-img {
  width: 35%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
}

.home-about-text {
  flex: 1;
}

.home-about-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.home-about-text .back-button {
  margin-top: 1rem;
  display: inline-flex;
}

.back-button-wrapper {
  width: 70%;
  margin: 0 auto;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 0.5rem 0;
  color: var(--burgunder);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition);
  position: relative;
}

.back-button::before {
  content: '←';
  font-size: 1rem;
  transition: var(--transition);
}

.back-button::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0 4 Q12.5 0, 25 4 T50 4 T75 4 T100 4' stroke='%23d69ba5' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 40px 8px;
  transition: width 0.3s ease;
}

.back-button:hover { color: var(--rosa); }
.back-button:hover::before { transform: translateX(-5px); }
.back-button:hover::after {
  width: 100%;
  animation: wave-underline 2s linear infinite;
}

.alle-projekte-wrapper .back-button::before,
.home-about-text .back-button::before,
.prints-preview-overlay .back-button::before,
.home-prints-cta-wrapper .back-button::before {
  content: '→';
  order: 2;
}
.alle-projekte-wrapper .back-button:hover::before,
.home-about-text .back-button:hover::before,
.prints-preview-overlay .back-button:hover::before,
.home-prints-cta-wrapper .back-button:hover::before {
  transform: translateX(5px);
}

/* ===========================================
   Footer
   =========================================== */

footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid rgba(114, 47, 55, 0.1);
  margin-top: 4rem;
}

footer p {
  font-size: 0.8rem;
  opacity: 0.7;
}

footer a { color: var(--burgunder); }
footer a:hover { text-decoration: underline; }

/* ===========================================
   Cookie Banner
   =========================================== */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: rgba(40, 20, 25, 0.82);
  backdrop-filter: blur(6px);
  color: var(--weiss);
  padding: 0.75rem 2rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 1000;
  font-size: 0.8rem;
}

.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: var(--rosa); text-decoration: underline; }

.cookie-btn {
  background: var(--weiss);
  color: var(--burgunder);
  border: none;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.cookie-btn:hover { background: var(--rosa); color: var(--weiss); }

/* ===========================================
   Datenschutz
   =========================================== */

.datenschutz-section {
  padding: 10rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.datenschutz-content h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  margin-bottom: 2.5rem;
}

.datenschutz-content h2 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.datenschutz-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.datenschutz-content a { text-decoration: underline; }

.widerruf-form {
  background: var(--buttergelb);
  border-radius: 6px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.datenschutz-stand {
  margin-top: 3rem;
  opacity: 0.5;
  font-size: 0.8rem !important;
}

/* ===========================================
   Mehr lesen
   =========================================== */

.mehr-lesen-wrapper { position: relative; }

.mehr-lesen-text {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mehr-lesen-btn {
  display: none;
  background: none;
  border: none;
  color: var(--burgunder);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.5rem 0 0;
  text-decoration: underline;
}

.beschreibung.collapsed { margin-bottom: 0 !important; }

/* ===========================================
   Lightbox
   =========================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(250, 236, 238, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  font-size: 1.5rem;
  color: var(--burgunder);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1002;
  background: none;
  border: none;
  font-family: var(--font-headline);
}

.lightbox-close:hover { color: var(--rosa); }

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  color: var(--burgunder);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1002;
  background: none;
  border: none;
  padding: 0.5rem;
  font-family: var(--font-headline);
}

.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--rosa); }

/* ===========================================
   Responsive – Tablet (max 1024px)
   =========================================== */

@media (max-width: 1024px) {
  .projekt-card--wide   { width: 50%; }
  .projekt-card--mid    { width: 40%; }
  .projekt-card--narrow { width: 30%; }

  .projekt-card--wide,
  .projekt-card--mid,
  .projekt-card--narrow { height: 240px; }

  .projects-quote--overlay { left: -90%; width: 250px; }
  .projects-grid { gap: 3rem; }
}

/* ===========================================
   Responsive – Mobile (max 768px)
   =========================================== */

@media (max-width: 768px) {

  /* Header */
  header {
    position: fixed;
    align-items: center;
    padding: 1rem 6.6rem 1rem 1.5rem;
  }
  .logo { margin-top: 0; }
  .logo img.logo-default,
  .logo img.logo-hover { height: 2.2rem; }

  .nav-toggle { display: flex; }

  .cart-toggle { right: 4.2rem; }
  .cart-drawer { padding: 1.5rem 1.25rem; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    background-color: var(--buttergelb);
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(101, 17, 34, 0.1);
  }

  nav.nav-open { display: flex; }

  nav a { font-size: 0.9rem; }
  .lang-btn { font-size: 0.9rem; }
  .lang-toggle { margin-top: 0.25rem; }

  /* Hero */
  .hero {
    padding: 7.5rem 1.5rem 0;
    min-height: 0;
    margin-bottom: 0;
  }

  /* Prints & Originale preview */
  .prints-preview { height: 120px; }
  .prints-preview-overlay { gap: 0; padding: 0 1rem; }
  .prints-preview-overlay .coming-soon { font-size: 2.6rem; line-height: 0.6; margin-top: 1rem; }
  .prints-preview-overlay .back-button { font-size: 0.75rem; }

  /* Projects */
  #projekte {
    padding: 2rem 0.75rem 4rem;
    margin-top: 0;
  }

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

  .projects-row,
  .projects-row--left,
  .projects-row--right,
  .projects-row--center { display: contents; }

  .projekt-card {
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
  }

  .projekt-card--wide,
  .projekt-card--mid,
  .projekt-card--narrow {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .projekt-card .projekt-info { display: none; }
  .projects-quote--overlay { display: none; }

  .shop-prints-grid { flex-direction: column; align-items: center; gap: 1.5rem; }

  .shop-prints-card { max-width: 480px; width: 100%; }

  .shop-prints-overlay { display: none; }

  .shop-prints-caption {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--font-headline);
    font-size: 1.7rem;
    color: var(--burgunder);
    text-align: center;
  }

  .produkt-detail { padding: 8rem 1.2rem 4rem; }

  .produkt-grid { flex-direction: column; gap: 2rem; }

  .produkt-gallery { position: static; width: 100%; }

  .produkt-related { margin-top: 4rem; }

  .produkt-related .shop-prints-card { max-width: 220px; }

  .produkt-related .shop-prints-caption { font-size: 1.2rem; }

  /* Home – featured projects */
  .home-section { padding: 2.5rem 1.2rem; }

  .home-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .home-featured-grid .projekt-card {
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  /* About */
  .about-section {
    min-height: 0 !important;
    padding: 5.5rem 1.2rem 3.5rem !important;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .about-images {
    width: 65%;
    max-width: 320px;
    margin: 0 auto 0.6rem;
  }

  .about-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }

  .contact-links { justify-content: center; }

  /* Project Detail */
  .projekt-detail { padding: 8rem 1.5rem 4rem; }
  .projekt-galerie { width: 100%; }

  /* Mehr lesen */
  .mehr-lesen-text.collapsed {
    max-height: 5.4em;
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .mehr-lesen-btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
  }

  .mehr-lesen-wrapper { text-align: center; }

  /* Cookie */
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    font-size: 0.75rem;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }

  /* Footer */
  footer { padding: 2rem 1.2rem; }

  /* Datenschutz */
  .datenschutz-section { padding: 7rem 1.2rem 3rem; }

  /* Kontakt */
  .kontakt-section {
    padding: 2rem 1.2rem;
    margin: 0 1.2rem;
  }

  /* Home – Über mich */
  .home-about-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .home-about-img { width: 100%; }

  .home-about-p2 { display: none; }
}
