/* ============================================================
   VICI VENTURES — Shared Stylesheet
   Farben, Typo und Layout-Grundlagen
   ============================================================ */

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

/* --- DESIGN TOKENS (hier zentral änderbar) --- */
:root {
  --ink:        #1a1a18;
  --dark:       #242420;
  --darker:     #1a1a18;
  --gold:       #b8965a;
  --gold-light: #d4b07a;
  --gold-dim:   rgba(184,150,90,0.25);
  --sand:       #f5f0e8;
  --paper:      #faf8f4;
  --mid:        #6b6860;
  --light-mid:  #a09a90;
  --rule:       #e0d9ce;
  --white-dim:  #d4cfc8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1080px;
  --gutter: clamp(20px, 5vw, 60px);

  --transition: 0.22s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(26,26,24,0.97);
  border-bottom-color: var(--gold-dim);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #f5f0e8;
  transition: color var(--transition);
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light-mid);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: #f5f0e8; }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #f5f0e8;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(26,26,24,0.98);
  border-bottom: 1px solid var(--gold-dim);
  padding: 24px var(--gutter) 32px;
  z-index: 99;
  backdrop-filter: blur(8px);
}
.nav-drawer.open { display: block; }
.nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.nav-drawer a {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-mid);
  transition: color var(--transition);
}
.nav-drawer a:hover { color: #f5f0e8; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 28px;
}

.rule { height: 1px; background: var(--rule); }
.rule-gold { height: 1px; background: var(--gold-dim); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }

p + p { margin-top: 16px; }

.lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}

.meta {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--mid);
  text-transform: uppercase;
}

/* ============================================================
   HERO (dark)
   ============================================================ */
.hero {
  background: var(--dark);
  color: #f5f0e8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture via SVG filter */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.6;
  pointer-events: none;
}

/* Diagonal gold accent line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(to left, var(--gold), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 140px var(--gutter) 100px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -1px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--light-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 6px;
  transition: color var(--transition), border-color var(--transition);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}
.hero-cta:hover { color: var(--gold-light); border-color: var(--gold); }
.hero-cta::after { content: '→'; transition: transform var(--transition); }
.hero-cta:hover::after { transform: translateX(4px); }

/* ============================================================
   BUTTONS & LINKS
   ============================================================ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 13px 24px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap var(--transition);
}
.arrow-link:hover { gap: 14px; }

/* ============================================================
   CARDS & BLOCKS
   ============================================================ */
.card {
  background: white;
  border: 1px solid var(--rule);
  padding: 32px;
}

.card-dark {
  background: var(--dark);
  border: 1px solid var(--gold-dim);
  padding: 32px;
  color: #f5f0e8;
}

.infobox {
  border-left: 2px solid var(--gold);
  padding: 6px 20px;
  margin: 24px 0;
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 40px;
}

.portfolio-item {
  background: var(--paper);
  padding: 28px 24px;
  transition: background var(--transition);
  position: relative;
}
.portfolio-item:hover { background: white; }

.portfolio-item.featured {
  background: white;
}
.portfolio-item.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.portfolio-item .p-tag {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.portfolio-item .p-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.2;
}

.portfolio-item .p-desc {
  font-size: 13.5px;
  color: var(--mid);
  line-height: 1.65;
}

.portfolio-item .p-status {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--light-mid);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   GRÜNDER SECTION
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 40px 0;
}

.founder-card {
  background: white;
  padding: 40px;
}

.founder-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--gold);
  font-style: italic;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 6px;
}

.founder-role {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

/* ============================================================
   JOB POSTING
   ============================================================ */
.job-posting {
  background: var(--dark);
  color: #f5f0e8;
  padding: 64px var(--gutter);
  border-top: 3px solid var(--gold);
}

.job-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

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

.job-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 8px;
}
.job-title em { font-style: italic; color: var(--gold-light); }

.job-meta { font-size: 13px; color: var(--light-mid); margin-bottom: 36px; }

.job-section-title {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 28px 0 12px;
}

.job-text { font-size: 14.5px; color: var(--white-dim); line-height: 1.75; }
.job-text + .job-text { margin-top: 12px; }

.job-list {
  list-style: none;
  padding: 0;
  font-size: 14.5px;
  color: var(--white-dim);
  line-height: 1;
}
.job-list li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: baseline;
}
.job-list li:last-child { border-bottom: none; }
.job-list .bullet { color: var(--gold); flex-shrink: 0; font-size: 16px; line-height: 1; }

.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 4px; }

.job-sidebar {
  border: 1px solid var(--gold-dim);
  padding: 28px 24px;
  background: rgba(255,255,255,0.02);
  position: sticky;
  top: 90px;
}

.sidebar-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gold-dim); }
.sidebar-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.sidebar-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 12px; }
.sidebar-text { font-size: 13.5px; color: var(--white-dim); line-height: 1.7; }

.sidebar-facts { font-size: 12px; color: var(--light-mid); line-height: 2.1; }
.sidebar-facts strong { color: var(--gold); }

.sidebar-email { font-size: 15px; color: #f5f0e8; font-weight: 500; word-break: break-all; }
.sidebar-note { font-size: 12px; color: #6b6860; margin-top: 10px; line-height: 1.6; }

/* ============================================================
   TEAM PAGE — Benefits
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 40px 0;
}

.benefit-item {
  background: var(--paper);
  padding: 32px;
}

.benefit-icon {
  font-size: 24px;
  margin-bottom: 16px;
  line-height: 1;
}

.benefit-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-text {
  font-size: 14.5px;
  color: var(--mid);
  line-height: 1.7;
}

/* ============================================================
   DARK BAND (CTA, etc.)
   ============================================================ */
.dark-band {
  background: var(--dark);
  color: #f5f0e8;
  padding: 64px var(--gutter);
  text-align: center;
  border-top: 1px solid var(--gold-dim);
}

.dark-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  margin-bottom: 14px;
}

.dark-band p {
  font-size: 15px;
  color: var(--light-mid);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.75;
}

/* ============================================================
   PAGE HERO (sub-pages, smaller)
   ============================================================ */
.page-hero {
  background: var(--dark);
  color: #f5f0e8;
  padding: 140px var(--gutter) 72px;
  border-bottom: 1px solid var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 30%;
  height: 2px;
  background: linear-gradient(to left, var(--gold), transparent);
}

.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }

.page-hero p {
  font-size: 17px;
  color: var(--light-mid);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #111110;
  color: var(--light-mid);
  padding: 48px var(--gutter) 40px;
  border-top: 1px solid rgba(184,150,90,0.15);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: #f5f0e8;
  margin-bottom: 10px;
}
.footer-logo span { color: var(--gold); }

.footer-tagline { font-size: 13px; line-height: 1.7; }

.footer-nav-title {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-links a {
  font-size: 14px;
  color: var(--light-mid);
  transition: color var(--transition);
}
.footer-nav-links a:hover { color: #f5f0e8; }

.footer-contact p { font-size: 14px; line-height: 2; }
.footer-contact a { color: var(--gold); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .founder-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .job-sidebar { position: static; }
  .req-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
}

/* ============================================================
   MOBILE RESPONSIVE — Ergänzungen für inline grids
   Inline style= überschreibt normale Media Queries,
   daher hier mit !important gezielt überschreiben
   ============================================================ */

/* Portfolio-Teaser Startseite: 4 Spalten → 2 → 1 */
@media (max-width: 900px) {
  .portfolio-grid[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 640px) {
  .portfolio-grid[style*="repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  .portfolio-grid[style*="repeat(2"] {
    grid-template-columns: 1fr !important;
  }
}

/* Alle inline 1fr 1fr Grids auf Mobil stacken */
@media (max-width: 680px) {
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Exits-Grid auf portfolio.html */
  div[style*="grid-template-columns: 1fr 1fr"][style*="background: rgba(184"] {
    grid-template-columns: 1fr !important;
  }
  /* Symbiose-Spalten auf ueber-uns */
  .symbiose-columns {
    grid-template-columns: 1fr !important;
  }
  .symbiose-divider { display: none; }
  .symbiose-col { padding: 0 0 28px; }
}

/* ============================================================
   STELLENANZEIGE MOBILE — Ausklapp-Bereiche
   ============================================================ */
.job-accordion {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.job-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 16px 0;
  user-select: none;
}
.job-accordion-header:hover { opacity: 0.8; }
.job-accordion-icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.job-accordion.open .job-accordion-icon {
  transform: rotate(45deg);
}
.job-accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.2s ease;
  padding-bottom: 0;
}
.job-accordion.open .job-accordion-body {
  max-height: 800px;
  padding-bottom: 20px;
}

/* Auf Desktop: Akkordeons immer offen */
@media (min-width: 681px) {
  .job-accordion-icon { display: none; }
  .job-accordion-header { cursor: default; padding: 0 0 12px; }
  .job-accordion-body {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }
}

/* ============================================================
   WEITERE MOBILE-KORREKTUREN
   ============================================================ */
@media (max-width: 680px) {
  /* hero weniger padding */
  .hero-inner { padding-top: 110px; padding-bottom: 60px; }

  /* Page-Hero weniger padding */
  .page-hero { padding-top: 110px; padding-bottom: 48px; }

  /* Offene Stellen Leiste: Initiativbewerbung ausblenden */
  .jobs-bar-initiative { display: none; }

  /* Stellenanzeige: req-grid (must-have/nice-to-have) */
  .req-grid { grid-template-columns: 1fr !important; }

  /* Portfolio: p-status weniger prominent */
  .portfolio-item { padding: 20px 16px; }

  /* Footer tagline kürzer */
  .footer-tagline { font-size: 12px; }

  /* Kontakt: Anlass-Boxen volle Breite immer schon */
  .section-sm { padding: 40px 0; }
}

/* ueber-uns: Gründer-Layout 1fr 2fr */
@media (max-width: 680px) {
  div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* ueber-uns: Portfolio-Preview Kacheln */
  div[style*="grid-template-columns: 1fr 1fr"][style*="background: var(--dark)"] {
    grid-template-columns: 1fr !important;
  }
  /* kontakt: Anlass-Grid und Impressum */
  .section div[style*="grid-template-columns: 1fr 1fr"],
  .section-sm div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
