/* ================================================
   GUSSTECHNOLOGIE – Hauptstylesheet
   Farbwelt: Dunkelrot #8B1A1A, Stahl #2a2a2a, 
             Akzent #C0392B, Hell #f4f1ec
   ================================================ */

:root {
  --rot: #8B1A1A;
  --rot-hell: #C0392B;
  --stahl: #1e1e1e;
  --stahl-mid: #2d2d2d;
  --stahl-hell: #3d3d3d;
  --akzent: #D4521A;
  --hell: #f4f1ec;
  --weiss: #ffffff;
  --grau: #aaa;
  --grau-hell: #e8e4de;
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--stahl);
  color: var(--hell);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,18,18,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--rot);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
}
.brand-main { color: var(--hell); }
.brand-accent { color: var(--rot-hell); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}
.nav-links a {
  color: #bbb;
  text-decoration: none;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--weiss);
  background: var(--rot);
}
.nav-links a.nav-highlight {
  color: var(--weiss);
  border: 1px solid var(--rot);
}
.nav-links a.nav-highlight:hover,
.nav-links a.nav-highlight.active {
  background: var(--rot);
  border-color: var(--rot);
}
.nav-sep {
  width: 1px;
  height: 24px;
  background: var(--stahl-hell);
  margin: 0 0.4rem;
  align-self: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--hell);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 2rem 4rem 4rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139,26,26,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,26,26,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 80px;
  background: linear-gradient(to top, var(--stahl), transparent);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 580px;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin-bottom: 1.5rem;
}
.hero-title .line1 {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 12rem);
  color: var(--rot-hell);
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title .line2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  color: var(--weiss);
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-title .line3 {
  font-family: var(--font-cond);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  color: #b0aba5;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-sub {
  color: #c0bbb5;
  font-size: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.5s ease both;
}

/* ── HERO WORDCLOUD — vollflächig hinter dem gesamten Hero ── */
.hero-wordcloud {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wc {
  position: absolute;
  font-family: var(--font-display);
  color: rgba(192,57,43,0.3);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}

/* Größere Wörter rechts & oben — nicht über dem Logo */
.wc1  { font-size: 2.8rem; top: 5%;  left: 50%;  color: rgba(192,57,43,0.5);  animation-delay: 0s;   }
.wc2  { font-size: 2rem;   top: 3%;  left: 72%;  color: rgba(212,82,26,0.45); animation-delay: 1s;   }
.wc3  { font-size: 1.4rem; top: 8%;  left: 88%;  animation-delay: 2s;   }
.wc4  { font-size: 1.2rem; top: 15%; left: 60%;  animation-delay: 0.5s; }
.wc5  { font-size: 3.5rem; top: 18%; left: 78%;  color: rgba(192,57,43,0.45); animation-delay: 1.5s; }
.wc6  { font-size: 1.6rem; top: 25%; left: 55%;  color: rgba(212,82,26,0.4);  animation-delay: 2.5s; }
.wc7  { font-size: 1.1rem; top: 28%; left: 88%;  animation-delay: 3s;   }
.wc8  { font-size: 4rem;   top: 32%; left: 65%;  color: rgba(192,57,43,0.5);  animation-delay: 0.8s; }
.wc9  { font-size: 1.3rem; top: 40%; left: 50%;  color: rgba(212,82,26,0.4);  animation-delay: 1.8s; }
.wc10 { font-size: 2.5rem; top: 5%;  left: 35%;  color: rgba(192,57,43,0.35); animation-delay: 0.3s; }
.wc11 { font-size: 1.8rem; top: 45%; left: 78%;  animation-delay: 1.2s; }
.wc12 { font-size: 1.3rem; top: 48%; left: 55%;  color: rgba(212,82,26,0.35); animation-delay: 2.2s; }
.wc13 { font-size: 1rem;   top: 55%; left: 70%;  animation-delay: 0.7s; }
.wc14 { font-size: 1.5rem; top: 58%; left: 88%;  color: rgba(192,57,43,0.4);  animation-delay: 1.6s; }
.wc15 { font-size: 1.2rem; top: 62%; left: 48%;  animation-delay: 2.8s; }
.wc16 { font-size: 2.2rem; top: 65%; left: 62%;  color: rgba(212,82,26,0.45); animation-delay: 0.4s; }
.wc17 { font-size: 1.4rem; top: 70%; left: 80%;  animation-delay: 1.9s; }
.wc18 { font-size: 1.1rem; top: 75%; left: 52%;  color: rgba(192,57,43,0.35); animation-delay: 2.4s; }
.wc19 { font-size: 1.6rem; top: 78%; left: 70%;  animation-delay: 0.6s; }
.wc20 { font-size: 1.3rem; top: 82%; left: 88%;  color: rgba(212,82,26,0.4);  animation-delay: 1.1s; }
.wc21 { font-size: 3rem;   top: 85%; left: 55%;  color: rgba(192,57,43,0.45); animation-delay: 2.6s; }
.wc22 { font-size: 1.2rem; top: 88%; left: 75%;  animation-delay: 0.9s; }
.wc23 { font-size: 1.8rem; top: 12%; left: 50%;  color: rgba(192,57,43,0.4);  animation-delay: 1.4s; }
.wc24 { font-size: 1.1rem; top: 35%; left: 92%;  animation-delay: 2.1s; }
.wc25 { font-size: 1.4rem; top: 52%; left: 92%;  color: rgba(212,82,26,0.35); animation-delay: 0.2s; }
.wc26 { font-size: 2rem;   top: 20%; left: 92%;  color: rgba(212,82,26,0.4);  animation-delay: 1.7s; }
.wc27 { font-size: 1.3rem; top: 42%; left: 62%;  animation-delay: 2.3s; }
.wc28 { font-size: 1.1rem; top: 68%; left: 56%;  color: rgba(192,57,43,0.35); animation-delay: 0.6s; }
.wc29 { font-size: 1.5rem; top: 92%; left: 62%;  animation-delay: 1.0s; }
.wc30 { font-size: 1.2rem; top: 95%; left: 80%;  color: rgba(212,82,26,0.4);  animation-delay: 2.9s; }
.wc31 { font-size: 1.6rem; top: 90%; left: 45%;  animation-delay: 0.2s; }
.wc32 { font-size: 1.3rem; top: 22%; left: 68%;  color: rgba(192,57,43,0.4);  animation-delay: 1.3s; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--rot);
  color: var(--weiss);
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid var(--rot);
  transition: all 0.2s;
  font-size: 0.9rem;
}
.btn-primary:hover {
  background: var(--rot-hell);
  border-color: var(--rot-hell);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--hell);
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border: 2px solid var(--stahl-hell);
  transition: all 0.2s;
  font-size: 0.9rem;
}
.btn-outline:hover {
  border-color: var(--rot);
  color: var(--rot-hell);
  transform: translateY(-2px);
}

/* ── SECTION BASICS ── */
section { padding: 3.5rem 4rem; }

.section-header {
  margin-bottom: 3rem;
}
.section-tag {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--akzent);
  display: block;
  margin-bottom: 0.5rem;
}
.section-tag.light { color: rgba(244,241,236,0.5); }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--weiss);
  line-height: 1;
  letter-spacing: 0.03em;
}
.section-footer { margin-top: 3rem; text-align: center; }

/* ── TOPICS ── */
.topics { background: var(--stahl); }

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--stahl-hell);
}

.topic-card {
  background: var(--stahl-mid);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--hell);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(139,26,26,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.topic-card:hover {
  background: var(--stahl-hell);
  border-bottom-color: var(--rot);
}
.topic-card:hover::before { opacity: 1; }
.topic-card--accent { border-bottom-color: var(--rot); }

.topic-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.topic-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(139,26,26,0.2);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
}
.topic-card h3 {
  font-family: var(--font-cond);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--weiss);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.topic-card p {
  font-size: 0.9rem;
  color: #b0aba5;
  flex: 1;
}
.topic-arrow {
  font-size: 1.2rem;
  color: var(--rot);
  transition: transform 0.2s;
}
.topic-card:hover .topic-arrow { transform: translateX(6px); }

/* ── PREVIEW SECTION ── */
.preview-section {
  background: linear-gradient(180deg, var(--stahl) 0%, #161616 100%);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.preview-card {
  background: var(--stahl-mid);
  padding: 2rem;
  border-left: 3px solid var(--stahl-hell);
  transition: border-color 0.3s;
}
.preview-card:hover { border-left-color: var(--rot); }

.preview-tag {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--rot);
  color: var(--weiss);
  padding: 0.2rem 0.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.preview-tag.erp { background: var(--akzent); }
.preview-tag.digital { background: #2a5a7a; }

.preview-card h4 {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--weiss);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.preview-card p {
  font-size: 0.875rem;
  color: #b0aba5;
  margin-bottom: 1.5rem;
}
.read-more {
  color: var(--rot-hell);
  text-decoration: none;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.read-more:hover { color: var(--weiss); }

/* ── SOFTWARE TEASER ── */
.software-teaser {
  background: var(--stahl-mid);
  border-top: 2px solid var(--rot);
  border-bottom: 2px solid var(--rot);
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.st-content { flex: 1; min-width: 280px; }
.st-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--weiss);
  margin-bottom: 1rem;
}
.st-content p {
  color: #b8b3ac;
  margin-bottom: 2rem;
  max-width: 400px;
}

.st-visual { flex: 1; min-width: 280px; }

.code-block {
  background: #0d0d0d;
  border: 1px solid var(--stahl-hell);
  border-radius: 4px;
  overflow: hidden;
}
.cb-bar {
  background: var(--stahl-hell);
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.5rem;
}
.cb-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--rot);
}
.cb-bar span:nth-child(2) { background: var(--akzent); }
.cb-bar span:nth-child(3) { background: var(--grau); }
.code-block pre {
  padding: 1.5rem;
  font-size: 0.85rem;
  font-family: 'Courier New', monospace;
  line-height: 1.7;
}
.c-kw { color: var(--rot-hell); }
.c-fn { color: #7ec8e3; }
.c-param { color: var(--akzent); }

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  background: linear-gradient(135deg, var(--stahl-mid), var(--stahl));
  border-bottom: 2px solid var(--rot);
  padding: 4rem 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: attr(data-title);
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 10rem;
  color: rgba(139,26,26,0.18);
  pointer-events: none;
  letter-spacing: 0.05em;
}
.page-hero .section-tag { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--weiss);
  line-height: 1;
}
.page-hero p {
  color: var(--grau);
  margin-top: 1rem;
  max-width: 600px;
}

/* ── CONTENT AREA ── */
.content-area {
  padding: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer {
  background: #111;
  border-top: 2px solid var(--rot);
  padding: 3rem 4rem 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
}
.footer-brand .brand-main { font-size: 1.3rem; }
.footer-brand p { color: var(--grau); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-nav a {
  color: var(--grau);
  text-decoration: none;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--rot-hell); }
.footer-bottom {
  border-top: 1px solid var(--stahl-hell);
  padding: 1rem 0;
  color: var(--grau);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #111; padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section, .hero, .software-teaser, .content-area, .page-hero, .footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero { padding-top: 3rem; padding-bottom: 3rem; }
}
