/* ============================================
   JENS HEIN – Brand Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #2D2F2F;
  --bg-secondary: #3A3C3C;
  --bg-tertiary: #454547;
  --text-primary: #E8E6E1;
  --text-heading: #FFFFFF;
  --accent: #C5B358;
  --accent-hover: #D4C46A;
  --accent-muted: #9A8E3E;
  --max-width: 1100px;
  --section-pad: clamp(60px, 10vw, 120px);
  --side-pad: clamp(20px, 5vw, 60px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-hover); }

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  font-weight: 400;
  color: var(--text-heading);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  display: block;
}

p { max-width: 680px; }
p + p { margin-top: 1em; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

section {
  position: relative;
  padding: var(--section-pad) 0;
}

/* --- Zigzag Pattern Overlay --- */
.zigzag-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='768' height='1536' viewBox='0 0 768 1536'%3E%3Cpolyline points='0,0 768,768 0,1536' fill='none' stroke='%23C5B358' stroke-width='0.8'/%3E%3C/svg%3E");
  background-size: 768px 1536px;
  background-repeat: repeat;
}

.zigzag-bg > * { position: relative; z-index: 1; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
  background: rgba(197, 179, 88, 0.08);
}

.btn .arrow {
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
}

.btn:hover .arrow {
  transform: translateX(4px);
  color: var(--accent-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(45, 47, 47, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--text-heading);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--text-heading); }

/* Dropdown menus */
.nav-links > li {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: rgba(45, 47, 47, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 179, 88, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  list-style: none;
}

.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown li a::after { display: none; }

.nav-dropdown li a:hover {
  color: var(--accent);
  background: rgba(197, 179, 88, 0.08);
}

@media (max-width: 768px) {
  .nav-dropdown {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 0 0 16px;
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
  }
  .nav-dropdown li a {
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--text-primary);
    opacity: 0.7;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: rgba(45, 47, 47, 0.98);
    backdrop-filter: blur(16px);
    gap: 24px;
    transition: right 0.4s ease;
    padding: 40px;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 1rem; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 47, 47, 0.75) 0%, rgba(45, 47, 47, 0.4) 100%);
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero-content { max-width: 600px; }
.hero-content .label { margin-bottom: 16px; font-size: 0.85rem; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content p {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 36px;
  opacity: 0.9;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.service-card .label { margin-bottom: 10px; }
.service-card h2 { margin-bottom: 20px; }
.service-card p { font-weight: 300; }

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================
   WORKSHOP SECTION
   ============================================ */
.workshop-section {
  text-align: center;
  background-size: cover;
  background-position: center top;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.workshop-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 47, 47, 0.7);
  z-index: 0;
}

.workshop-section > * { position: relative; z-index: 1; }
.workshop-section p { margin: 20px auto 0; text-align: center; }

@media (min-width: 1400px) {
  .workshop-section { min-height: 70vh; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  position: relative;
  background-size: cover;
  background-position: center top;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 47, 47, 0.82);
  z-index: 0;
}

.about-section > * { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-text .label { margin-bottom: 10px; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; }

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { max-width: 400px; }
}

/* ============================================
   REFERENZEN / STATS
   ============================================ */
.referenzen-content .label { margin-bottom: 10px; }
.referenzen-content h2 { margin-bottom: 32px; }

.stats-list {
  list-style: none;
  margin-bottom: 32px;
}

.stats-list li {
  font-size: 1.05rem;
  font-weight: 400;
  padding: 4px 0;
  color: var(--text-primary);
}

.stats-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

.clients-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.9;
  margin-bottom: 12px;
}

.clients-list {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.8;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

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

.testimonial-card {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 36px 32px;
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.testimonial-card .tc-source {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px;
}

.testimonial-card .tc-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.testimonial-card .tc-body {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.92;
  flex: 1;
}

.testimonial-card .tc-author {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(197, 179, 88, 0.2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.testimonial-card .tc-role {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-primary);
  opacity: 0.75;
  margin-top: 2px;
}

.testimonials-more {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   KONTAKT SECTION
   ============================================ */
.kontakt-section {
  background-size: cover;
  background-position: left center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.kontakt-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(45, 47, 47, 0.3) 0%, rgba(45, 47, 47, 0.85) 50%);
  z-index: 0;
}

@media (min-width: 1400px) {
  .kontakt-section { min-height: 70vh; }
}

.kontakt-content {
  margin-left: auto;
  max-width: 520px;
}

.kontakt-section > * { position: relative; z-index: 1; }

.kontakt-content p { margin-bottom: 28px; }

@media (max-width: 768px) {
  .kontakt-content { margin-left: 0; max-width: none; }
  .kontakt-section::before {
    background: rgba(45, 47, 47, 0.75);
  }
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-form {
  max-width: 520px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-form .form-row {
  display: flex;
  gap: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 24px;
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input::placeholder { color: rgba(232, 230, 225, 0.6); }
.newsletter-form input:focus { border-color: var(--accent-hover); }

.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-primary);
  opacity: 0.9;
  padding: 0 8px;
}

.newsletter-consent input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .newsletter-form .form-row { flex-direction: column; }
}

/* ============================================
   FOOTER / RECHTLICHES
   ============================================ */
.footer {
  padding: 60px 0;
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer-links a:hover { opacity: 1; color: var(--accent); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-primary);
  opacity: 0.55;
}

@media (max-width: 600px) {
  .footer-content { flex-direction: column; text-align: center; }
}

/* ============================================
   SUBPAGE LAYOUTS
   ============================================ */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--bg-secondary);
}

.page-content {
  padding: 60px 0 var(--section-pad);
}

.page-content p { margin-bottom: 1em; }
.page-content h3 { margin: 2em 0 0.8em; font-size: 1.4rem; }

.prose {
  max-width: 720px;
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.prose ul, .prose ol {
  padding-left: 1.4em;
  margin: 1em 0;
}

.prose li { margin-bottom: 0.5em; }

/* ============================================
   ANIMATIONS (fade in on scroll)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.fade-in-d1 { transition-delay: 0.1s; }
.fade-in-d2 { transition-delay: 0.2s; }
.fade-in-d3 { transition-delay: 0.3s; }
