/* ============================================================
   chocosite LLC – Landingpage Stylesheet
   Brand: Dark Theme, Rot #e8232a Akzent, DM Sans Font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --clr-red:        #e8232a;
  --clr-red-dark:   #b91a20;
  --clr-red-glow:   rgba(232, 35, 42, 0.25);
  --clr-bg:         #0a0a0a;
  --clr-bg-card:    #111111;
  --clr-bg-raised:  #181818;
  --clr-border:     rgba(255,255,255,0.07);
  --clr-border-red: rgba(232, 35, 42, 0.3);
  --clr-text:       #f0f0f0;
  --clr-text-muted: #888888;
  --clr-text-dim:   #555555;
  --clr-white:      #ffffff;

  --font-sans:   'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-card: 0 4px 40px rgba(0,0,0,0.5);
  --shadow-red:  0 0 40px var(--clr-red-glow);

  --transition:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s ease;

  --max-width: 1200px;
  --section-gap: 120px;
  --project-gap: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-red);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(232, 35, 42, 0.5);
  transition: width var(--transition-fast), height var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast) translate(-50%,-50%);
}

.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--clr-red);
  background: var(--clr-red-glow);
}

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* ── Selection ── */
::selection {
  background: var(--clr-red);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-red); border-radius: 2px; }

/* ── Typography ── */
h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

p { color: var(--clr-text-muted); line-height: 1.75; }

a { color: inherit; text-decoration: none; }

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--clr-border);
  transition: padding var(--transition);
}

.site-header.scrolled {
  padding: 14px 40px;
}

.header-logo {
  height: 32px;
  width: auto;
  filter: invert(0); /* Logo ist bereits auf dunklem Hintergrund geeignet */
}

.header-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* ── Language Switcher ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--clr-bg-raised);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  padding: 4px;
}

.lang-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 6px 14px;
  cursor: none;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--clr-red);
  color: #fff;
}

.lang-btn:hover:not(.active) {
  color: var(--clr-text);
}

/* ── Hero Entry Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
.hero-title {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.22s both;
}
.hero-subtitle {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.34s both;
}
.hero-scroll-hint {
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.55s both;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,35,42,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--clr-red);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--clr-text);
  margin-bottom: 24px;
}

.hero-title .accent {
  color: var(--clr-red);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--clr-text-muted);
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 48px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-red), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Titles ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 16px;
  display: block;
}

.section-divider {
  padding: var(--section-gap) 40px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-divider h2 {
  color: var(--clr-text);
}

.section-divider p {
  max-width: 480px;
  margin-top: 16px;
}

/* ── Projects ── */
.projects-section {
  padding: 0 40px var(--section-gap);
}

.projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Project Card ── */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: var(--project-gap);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.project-card:hover {
  border-color: var(--clr-border-red);
  box-shadow: var(--shadow-red);
}

.project-card.reverse {
  direction: rtl;
}
.project-card.reverse > * {
  direction: ltr;
}

/* Featured / Top Project */
.project-card.featured {
  grid-template-columns: 1.1fr 0.9fr;
  border-color: var(--clr-border-red);
}

.project-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: var(--clr-red);
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}

/* ── Project Image ── */
.project-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-image-wrap picture {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-card:hover .project-image-wrap img {
  transform: scale(1.04);
}

/* Placeholder sits behind the picture element */
.img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ── Project Info ── */
.project-info {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.project-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
}

.project-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--clr-text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-text);
  padding: 12px 24px;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  transition: all var(--transition-fast);
  align-self: flex-start;
  margin-top: 8px;
}

.project-link:hover {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
  transform: translateX(4px);
}

.project-link svg {
  transition: transform var(--transition-fast);
}

.project-link:hover svg {
  transform: translateX(3px);
}

/* ── Other Projects Section ── */
.other-projects-section {
  padding: 0 40px var(--section-gap);
}

.other-projects-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.other-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.other-card:hover {
  border-color: var(--clr-border-red);
  box-shadow: 0 8px 40px rgba(232,35,42,0.15);
  transform: translateY(-4px);
}

.other-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.other-card-img picture {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

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

.other-card:hover .other-card-img img {
  transform: scale(1.06);
}

.other-card-body {
  padding: 28px;
}

.other-card-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: 10px;
  display: block;
}

.other-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.other-card-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.other-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-red);
  transition: gap var(--transition-fast);
}

.other-card-link:hover {
  gap: 10px;
}

/* ── Marquee / Laufband ── */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 64px;
}

.marquee-item span {
  color: var(--clr-red);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Footer ── */
.site-footer {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--clr-border);
  position: relative;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-brand p {
  font-size: 0.875rem;
  max-width: 340px;
}

.footer-impressum h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
  margin-bottom: 16px;
}

.footer-impressum address {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.footer-impressum a {
  color: var(--clr-red);
  transition: opacity var(--transition-fast);
}
.footer-impressum a:hover { opacity: 0.7; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.8rem;
  color: var(--clr-text-dim);
}

/* ── Card Illustration Hover ── */
.card-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  color: rgba(255,255,255,0.6);
  z-index: 2;
  pointer-events: none;
  transform: scale(0.96);
}

img.card-illustration {
  object-fit: contain;
}

.project-card:hover .card-illustration,
.other-card:hover .card-illustration {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover .img-placeholder,
.other-card:hover .img-placeholder {
  opacity: 0.72;
  transition: opacity 0.55s ease;
}

/* Mobile: Illustration einblenden wenn Karte sichtbar wird */
@media (hover: none) {
  .project-card.in-view .card-illustration,
  .other-card.in-view .card-illustration {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.25s;
  }
  .project-card.in-view .img-placeholder,
  .other-card.in-view .img-placeholder {
    opacity: 0.72;
    transition: opacity 0.55s ease 0.25s;
  }
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── Divider Line ── */
.line-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border), transparent);
  margin: 0 auto;
  max-width: var(--max-width);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root {
    --section-gap: 80px;
    --project-gap: 60px;
  }

  .project-card,
  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-card.reverse {
    direction: ltr;
  }

  .project-image-wrap {
    aspect-ratio: 16/9;
  }

  .project-info {
    padding: 40px;
  }

  .other-projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
  }

  .site-header.scrolled {
    padding: 12px 20px;
  }

  .header-logo-img {
    height: 24px;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .projects-section,
  .other-projects-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-divider {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-info {
    padding: 32px 24px;
  }

  .other-projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .site-footer {
    padding: 60px 20px 32px;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  body { cursor: auto; }
}

/* ── Project color accents (image backgrounds) ── */
.ph-urlaubsfotoshooting {
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 40%, #1a0505 100%);
}
.ph-mallorca-urlaubs {
  background: linear-gradient(135deg, #0a1020 0%, #0d2040 40%, #081830 100%);
}
.ph-mallorca-foto {
  background: linear-gradient(135deg, #0a1a10 0%, #102a18 40%, #081510 100%);
}
.ph-ibiza {
  background: linear-gradient(135deg, #1a1000 0%, #2d1d00 40%, #1a1200 100%);
}
.ph-staylimit {
  background: linear-gradient(135deg, #100a1a 0%, #1d1030 40%, #100820 100%);
}
.ph-murrnautzky {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 40%, #111111 100%);
}
.ph-happiness {
  background: linear-gradient(135deg, #1a0a10 0%, #2d1020 40%, #1a0815 100%);
}

/* Placeholder typography */
.img-placeholder-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
}

/* ── Legal Pages (Impressum / Datenschutz) ── */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.legal-main .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-red);
  font-weight: 600;
  margin-bottom: 12px;
}

.legal-main h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.15;
}

.legal-lead {
  color: var(--clr-text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.legal-main section {
  margin-bottom: 36px;
}

.legal-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-text);
}

.legal-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--clr-text-muted);
}

.legal-main p,
.legal-main address {
  font-style: normal;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-main ul {
  color: var(--clr-text-muted);
  padding-left: 20px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-main a {
  color: var(--clr-red);
  text-decoration: none;
}
.legal-main a:hover { text-decoration: underline; }

.legal-stand {
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--clr-text-dim);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 40px;
  transition: color var(--transition-fast);
}
.legal-back:hover { color: var(--clr-text); }
.legal-back::before { content: '←'; }
