/* =============================
   TOMEKS TROCKENBAU – REDESIGN
   Stil: Handwerklich-Premium, 
   Schwarz/Weiß + Goldakzent,
   Playfair Display + DM Sans
   ============================= */

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

:root {
  --gold: #C9A040;
  --gold-light: #E8C96A;
  --gold-dark: #9A7520;
  --black: #0F0F0F;
  --dark: #1A1A1A;
  --mid: #3A3A3A;
  --muted: #6B6B6B;
  --light: #F5F3EF;
  --lighter: #FAFAF8;
  --white: #FFFFFF;
  --border: rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.20);
  --radius: 4px;
  --radius-lg: 8px;
  --nav-h: 72px;
  --max-w: 1280px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; line-height: 1.3; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 24px; } }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 32px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--dark);
  cursor: pointer; transition: color var(--transition), background var(--transition);
  border: none; background: transparent;
}
.nav-trigger:hover { color: var(--gold); background: var(--light); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-item:hover .nav-trigger svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  padding: 24px;
  min-width: 640px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Projekte – schmaler */
.nav-dropdown.slim { min-width: 360px; grid-template-columns: 1fr 1fr; }
.nav-dropdown.slim-1 { min-width: 220px; grid-template-columns: 1fr; }

.dd-col { padding: 0 16px; }
.dd-col:not(:last-child) { border-right: 1px solid var(--border); }
.dd-col h5 {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.dd-col a {
  display: block; font-size: 13px; color: var(--dark);
  padding: 5px 0; transition: color var(--transition);
}
.dd-col a:hover { color: var(--gold); }
.dd-featured {
  background: var(--light); border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px;
}
.dd-featured img { width: 100%; height: 80px; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.dd-featured span { font-size: 12px; color: var(--mid); }

.nav-cta {
  background: var(--black); color: var(--white);
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); transform: translateY(-1px); }

/* Mobile Nav */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--dark); transition: var(--transition);
}
.nav-mobile { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white); overflow-y: auto;
    padding: 32px 24px; z-index: 999;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-mobile .mob-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 20px 0 8px; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--black);
}
.hero-video-wrap {
  position: absolute; inset: 0;
}
.hero-video-wrap video, .hero-video-wrap img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0;
}
.hero-eyebrow { color: var(--gold-light); margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(42px, 6vw, 88px);
  color: var(--white); margin-bottom: 24px;
  max-width: 800px;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.75);
  max-width: 520px; margin-bottom: 40px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-gold {
  background: var(--gold); color: var(--black);
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white); background: transparent;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; z-index: 2; animation: scrollbounce 2s infinite;
}
@keyframes scrollbounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
.hero-scroll svg { width: 20px; height: 20px; }

/* ── IMAGE MARQUEE ── */
.marquee-section { overflow: hidden; background: var(--light); padding: 0; }
.marquee-track { display: flex; gap: 0; animation: marquee 30s linear infinite; width: max-content; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-img { width: 320px; height: 220px; object-fit: cover; flex-shrink: 0; }

/* ── SECTIONS GENERAL ── */
section { padding: 96px 0; }
.section-light { background: var(--lighter); }
.section-dark { background: var(--dark); color: var(--white); }

/* ── INTRO / QUALITY ── */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.intro-left h2 { font-size: clamp(32px, 3.5vw, 52px); margin: 12px 0 24px; }
.intro-left p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 32px; }
.intro-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intro-img-main { grid-column: 1/-1; border-radius: var(--radius-lg); overflow: hidden; height: 280px; }
.intro-img-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.intro-img-main:hover img { transform: scale(1.03); }
.intro-img-sm { border-radius: var(--radius-lg); overflow: hidden; height: 180px; }
.intro-img-sm img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.intro-img-sm:hover img { transform: scale(1.03); }

/* ── FEATURES ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
.feature-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { border-color: transparent; box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-number {
  font-family: var(--font-display); font-size: 48px; font-weight: 700;
  color: var(--light); line-height: 1; margin-bottom: 16px;
  transition: color var(--transition);
}
.feature-card:hover .feature-number { color: var(--gold-light); }
.feature-card h4 { font-size: 17px; margin-bottom: 12px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ── LEISTUNGEN SHOWCASE ── */
.leistungen-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.leistungen-header h2 { font-size: clamp(28px, 3vw, 44px); max-width: 480px; }
.leistungen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.leistung-card {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; cursor: pointer;
  background: var(--dark);
}
.leistung-card-img { height: 280px; overflow: hidden; }
.leistung-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.75);
}
.leistung-card:hover .leistung-card-img img { transform: scale(1.06); filter: brightness(0.6); }
.leistung-card-body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.leistung-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 8px;
}
.leistung-card-body h3 {
  font-size: 22px; color: var(--white); margin-bottom: 12px;
}
.leistung-card-body p {
  font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.leistung-card:hover .leistung-card-body p { max-height: 80px; }
.leistung-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold-light);
  margin-top: 12px; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.leistung-card:hover .leistung-link { opacity: 1; transform: translateY(0); }

/* Large card */
.leistungen-grid-2 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-top: 24px; }
.leistung-card.large .leistung-card-img { height: 360px; }
.leistung-card .leistung-card-img { height: 300px; }

/* ── PROJEKTE ── */
.projekte-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.projekt-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); }
.projekt-card img {
  width: 100%; height: 340px; object-fit: cover;
  filter: brightness(0.7); transition: transform 0.6s ease, filter 0.4s ease;
}
.projekt-card:hover img { transform: scale(1.04); filter: brightness(0.55); }
.projekt-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.projekt-info .eyebrow { margin-bottom: 6px; }
.projekt-info h3 { font-size: 22px; color: var(--white); }
.projekt-info p { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 6px; }
.projekt-card.featured { grid-column: 1/-1; }
.projekt-card.featured img { height: 480px; }

/* ── STATS ── */
.stats-section { background: var(--black); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item {
  padding: 40px 32px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display); font-size: 52px; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── PARTNERS ── */
.partners-row {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap; margin-top: 48px;
}
.partner-logo { opacity: 0.45; transition: opacity var(--transition); filter: grayscale(1); height: 36px; width: auto; }
.partner-logo:hover { opacity: 0.85; filter: grayscale(0); }

/* ── CTA BANNER ── */
.cta-banner {
  position: relative; overflow: hidden;
  background: var(--dark);
  padding: 96px 0;
}
.cta-banner-bg {
  position: absolute; inset: 0;
}
.cta-banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta-content { position: relative; z-index: 2; max-width: 640px; }
.cta-content h2 { font-size: clamp(28px, 3.5vw, 48px); color: var(--white); margin: 12px 0 20px; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.7; margin-bottom: 36px; }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--black); color: rgba(255,255,255,0.65);
  padding: 72px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 20px; filter: brightness(10); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-contact a { display: block; font-size: 13px; color: rgba(255,255,255,0.5); padding: 3px 0; transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold); }
.footer-col h5 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.55); padding: 4px 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 16px; height: 16px; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: var(--white);
  border-radius: var(--radius-lg); box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  padding: 20px 28px; display: flex; align-items: center; gap: 20px;
  z-index: 9999; max-width: 680px; width: calc(100% - 48px);
  border: 1px solid rgba(255,255,255,0.1);
}
.cookie-banner p { font-size: 13px; color: rgba(255,255,255,0.7); flex: 1; line-height: 1.6; }
.cookie-banner a { color: var(--gold); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--gold); color: var(--black);
  padding: 8px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; border: none; cursor: pointer;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--gold-light); }
.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,0.5);
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 13px; border: 1px solid rgba(255,255,255,0.15); cursor: pointer;
  transition: all var(--transition);
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }

/* ── UTILS ── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--black);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); gap: 12px; }
.link-arrow-white { color: var(--white); border-color: rgba(255,255,255,0.4); }
.link-arrow-white:hover { color: var(--gold-light); border-color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .leistungen-grid { grid-template-columns: 1fr 1fr; }
  .leistungen-grid-2 { grid-template-columns: 1fr 1fr; }
  .leistung-card.large .leistung-card-img { height: 300px; }
  .projekte-list { grid-template-columns: 1fr; }
  .projekt-card.featured { grid-column: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 2px; }
  .leistungen-grid { grid-template-columns: 1fr; }
  .leistungen-grid-2 { grid-template-columns: 1fr; }
  .leistungen-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-btns { flex-direction: column; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .partners-row { gap: 28px; }
  .intro-right { grid-template-columns: 1fr; }
  .intro-img-main { height: 220px; }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
