/* ============================================================
   Media and IT – Stylesheet
   Dark Theme · #FF8500 Orange · #009CD7 Blau
   ============================================================ */

:root {
  --orange:   #FF8500;
  --blue:     #009CD7;
  --bg:       #0e0f11;
  --bg2:      #161819;
  --bg3:      #1e2022;
  --surface:  #252729;
  --border:   #2c2e31;
  --text:     #d4d6d9;
  --text-dim: #7a7d82;
  --white:    #f0f1f2;
  --radius:   6px;
  --max:      1200px;
  --font:     'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */

h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

/* ── LAYOUT ──────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  max-width: 560px;
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-size: 1.05rem;
}

/* ── HEADER / NAV ─────────────────────────────────────────── */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

#site-header.scrolled {
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-lang a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-lang a.active,
.nav-lang a:hover { color: var(--orange); }

.nav-lang span { color: var(--border); }

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: #e07500;
  transform: translateY(-1px);
  color: #fff !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ── HERO ─────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
}

/* Glow blobs */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,156,215,0.12) 0%, transparent 70%);
}

.hero-glow-orange {
  position: absolute;
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,133,0,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  margin-bottom: 1.4rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-content h1 strong {
  color: var(--blue);
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-dim);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(255,133,0,0);
}

.btn-primary:hover {
  background: #e07500;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,133,0,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ── SERVICES ─────────────────────────────────────────────── */

#services {
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: 2.2rem 2rem;
  position: relative;
  transition: background 0.25s;
}

.service-card:hover {
  background: var(--surface);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--orange);
  font-size: 1.3rem;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.service-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Accent line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  opacity: 0;
  transition: opacity 0.25s;
}

.service-card:hover::before { opacity: 1; }

/* ── LOGO WALL ────────────────────────────────────────────── */

#logowall {
  background: var(--bg);
  padding: 5rem 0;
}

.logowall-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 3rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 160px;
  height: 84px;
  transition: border-color 0.2s, background 0.2s;
}

.logo-item:hover {
  border-color: var(--blue);
  background: var(--bg3);
}

.logo-item img,
.logo-item svg {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(1) brightness(1.8);
  transition: opacity 0.2s, filter 0.2s;
}

.logo-item:hover img,
.logo-item:hover svg {
  opacity: 1;
  filter: none;
}

/* Logo placeholder text (wenn kein Bild) */
.logo-placeholder {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── REFERENCES ───────────────────────────────────────────── */

#references {
  background: var(--bg2);
}

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

.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.25s, transform 0.2s;
}

.ref-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}

.ref-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(0,156,215,0.1);
  border: 1px solid rgba(0,156,215,0.2);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}

.ref-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.ref-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ── CONTACT ─────────────────────────────────────────────── */

#contact {
  background: var(--bg);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-info p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-top: -2px;
}

.contact-detail strong { color: var(--white); display: block; font-size: 0.78rem; margin-bottom: 1px; }

/* Form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,133,0,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-group select option { background: var(--bg2); }

.form-notice {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

.form-notice a { color: var(--blue); text-decoration: underline; }

.form-success,
.form-error {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.form-success { background: rgba(0,156,215,0.12); border: 1px solid rgba(0,156,215,0.3); color: var(--blue); }
.form-error   { background: rgba(255,80,80,0.1);  border: 1px solid rgba(255,80,80,0.3);  color: #ff6060; }

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img { height: 28px; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-links a:hover { color: var(--white); }

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

/* ── DIVIDER ──────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 4rem 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(14,15,17,0.97);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-content { padding-top: 2rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .contact-form { padding: 1.5rem; }
  .services-grid { border: none; gap: 1rem; }
  .service-card { border: 1px solid var(--border); border-radius: var(--radius); }
}
