@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --accent: #2e6ddb;
  --accent-bright: #4a90f5;
  --accent-dim: rgba(46,109,219,0.15);
  --accent-glow: rgba(46,109,219,0.35);
  --text: #c8ccd4;
  --text-muted: #7a7e89;
  --text-h: #eef0f4;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(46,109,219,0.4);
  --display: 'Oswald', sans-serif;
  --body: 'Source Sans 3', sans-serif;
  --radius: 2px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#root {
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--text-h);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, textarea, select {
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

.accent {
  color: var(--accent);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--display);
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: var(--transition);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-h);
  padding: 14px 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--display);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-h);
  transform: translateY(-2px);
}

/* Common Section Headers */
.section-label {
  display: inline-block;
  font-family: var(--display);
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 18px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.section-title {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--text-h);
}
@media (max-width: 768px) {
  .section-title {
    font-size: 30px;
  }
}

.section-desc {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.section-header-row .section-title {
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  background: #000000;
}
.site-header.scrolled {
  background: #000000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 200px;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 200px;
  object-fit: contain;
  transition: var(--transition);
}

/* Dynamic scroll resizing */
.site-header.scrolled .header-inner {
  height: 90px;
}
.site-header.scrolled .logo-img {
  height: 90px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
}

.nav-link {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-bright);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-block;
  font-family: var(--display);
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
}
.header-cta:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 4px 10px var(--accent-glow);
}
@media (max-width: 992px) {
  .header-cta {
    display: none;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-h);
  transition: var(--transition);
}
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1050;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  z-index: 1080;
  transition: var(--transition);
}
.mobile-drawer.open {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-h);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.drawer-link {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  color: var(--text-h);
  padding: 8px 0;
}
.drawer-link.active {
  color: var(--accent-bright);
}

.drawer-cta {
  margin-top: 32px;
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--display);
  border-radius: var(--radius);
}

main {
  flex-grow: 1;
}

/* ==========================================================================
   Home Page Styles
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 8, 8, 0.95) 20%, rgba(8, 8, 8, 0.7) 60%, rgba(8, 8, 8, 0.95) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 48px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .hero-content {
    padding: 24px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-radius: 50px;
  color: var(--text-h);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
}

.hero-title {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero-title-accent {
  color: var(--accent-bright);
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
  }
}

.hero-sub {
  font-size: 19px;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 576px) {
  .hero-ctas {
    flex-direction: column;
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  max-width: 100%;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-h);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
@media (max-width: 576px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-divider {
    display: none;
  }
}

.hero-slash {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 50%, rgba(46,109,219,0.05) 50%);
  z-index: -1;
  pointer-events: none;
}

/* Services Grid */
.services-section {
  padding: 100px 0;
  background: var(--surface);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  margin-bottom: 24px;
  color: var(--accent-bright);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-h);
}

.service-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* About Teaser */
.about-teaser {
  padding: 100px 0;
  background: var(--bg);
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 992px) {
  .about-teaser-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-images {
  position: relative;
  height: 480px;
}
.about-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-card);
}
.about-img-main {
  width: 70%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}
.about-img-secondary {
  width: 60%;
  height: 70%;
  bottom: 0;
  right: 0;
  z-index: 2;
}
.about-badge-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent);
  padding: 16px 24px;
  border-radius: var(--radius);
  z-index: 3;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-badge-num {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.about-badge-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}
@media (max-width: 576px) {
  .about-images {
    height: 350px;
  }
}

.about-text .section-title {
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 16px;
}

.about-list {
  list-style: none;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-h);
  font-size: 15px;
}
.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: bold;
}

/* Gallery Strip */
.gallery-strip {
  padding: 100px 0;
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: 80px 0;
  background: var(--surface-2);
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 992px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
}

.cta-banner-text h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--text-h);
}
.cta-banner-text p {
  color: var(--text-muted);
  max-width: 580px;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.cta-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-h);
}
.cta-phone:hover {
  color: var(--accent-bright);
}
@media (max-width: 576px) {
  .cta-banner-actions {
    flex-direction: column;
    gap: 20px;
  }
}

/* ==========================================================================
   Page Shared & Hero Styles
   ========================================================================== */
.inner-page {
  padding-bottom: 0;
}

.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,8,8,0.9), rgba(8,8,8,0.7));
  z-index: -1;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero:not(.page-hero-minimal) .page-hero-content {
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 40px 48px;
  border-radius: 4px;
  max-width: 800px;
}
.page-hero-content h1 {
  font-size: 52px;
  line-height: 1.1;
  color: var(--text-h);
  margin-bottom: 16px;
}
.page-hero-content p {
  font-size: 18px;
  color: var(--text);
  max-width: 600px;
}
@media (max-width: 768px) {
  .page-hero:not(.page-hero-minimal) .page-hero-content {
    padding: 24px 32px;
  }
}
@media (max-width: 768px) {
  .page-hero-content h1 {
    font-size: 38px;
  }
}

.page-hero-short {
  padding: 160px 0 80px;
}
.page-hero-minimal {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-content-section {
  padding: 100px 0;
  background: var(--bg);
}
.page-section-dark {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Über Uns Page
   ========================================================================== */
.ueber-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 992px) {
  .ueber-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.ueber-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ueber-images {
  position: relative;
  height: 420px;
}
.ueber-images img {
  border-radius: var(--radius);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-card);
  position: absolute;
  object-fit: cover;
}
.ueber-img-main {
  width: 75%;
  height: 80%;
  top: 0;
  right: 0;
}
.ueber-img-sec {
  width: 65%;
  height: 70%;
  bottom: 0;
  left: 0;
}
@media (max-width: 576px) {
  .ueber-images {
    height: 300px;
  }
}

.ueber-leistungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.ueber-leistung-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px 30px;
  border-radius: var(--radius);
  position: relative;
}
.leistung-number {
  display: block;
  font-family: var(--display);
  font-size: 36px;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
}
.ueber-leistung-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-h);
}
.ueber-leistung-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================================
   Referenzen Page
   ========================================================================== *//* Referenzen Grid */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}
.ref-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: left;
}
.ref-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card);
}
.ref-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface);
}
.ref-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.ref-card:hover .ref-card-img {
  transform: scale(1.05);
}
.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46, 109, 219, 0.2);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-card:hover .ref-card-overlay {
  opacity: 1;
}
.ref-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.ref-card-art {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.ref-card-title {
  font-size: 18px;
  color: var(--text-h);
  line-height: 1.3;
  margin-bottom: 12px;
}
.ref-card-kunde {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: auto;
}

/* Ref Lightbox */
.ref-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
}
.ref-lightbox-card {
  position: relative;
  z-index: 2010;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 800px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
}
.ref-lightbox-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg);
}
.ref-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ref-lightbox-content {
  padding: 40px;
}
.ref-lightbox-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.ref-lightbox-art {
  font-family: var(--display);
  font-size: 14px;
  color: var(--accent-bright);
  text-transform: uppercase;
  font-weight: 600;
}
.ref-lightbox-client {
  font-size: 14px;
  color: var(--text-muted);
}
.ref-lightbox-title {
  font-size: 26px;
  color: var(--text-h);
  margin-bottom: 16px;
}
.ref-lightbox-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}
.ref-lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2020;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}
.ref-lightbox-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}
@media (max-width: 768px) {
  .ref-lightbox-content {
    padding: 24px;
  }
  .ref-lightbox-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   Medientechnik Page
   ========================================================================== */
.mt-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.mt-images img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
@media (max-width: 768px) {
  .mt-images {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mt-images img {
    height: 200px;
  }
}

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

.brand-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
}
.brand-category {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 8px;
}
.brand-name {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-h);
}
.brand-desc {
  color: var(--text-muted);
  font-size: 15px;
}

.mt-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.mt-service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: var(--radius);
}
.service-num {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  color: var(--accent-bright);
  font-weight: 700;
  margin-bottom: 16px;
}
.mt-service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-h);
}
.mt-service-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ==========================================================================
   Galerie Page & Lightbox
   ========================================================================== */
.galerie-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.galerie-item {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.galerie-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,109,219,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.galerie-item:hover img {
  transform: scale(1.08);
}
.galerie-item:hover .galerie-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox-img {
  position: relative;
  z-index: 2010;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0,0,0,0.8);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2020;
  color: #fff;
  font-size: 24px;
}
.lightbox-close:hover {
  transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2020;
  color: #fff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  border: 1px solid var(--border);
}
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--accent);
}
.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2020;
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 18px;
}

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    display: none;
  }
}

/* ==========================================================================
   Kontakt Page & Forms
   ========================================================================== */
.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 992px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.kontakt-info h2 {
  font-size: 32px;
  margin-bottom: 32px;
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.kontakt-detail-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.kontakt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-bright);
}

.kontakt-detail-label {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kontakt-detail-val {
  color: var(--text-h);
  font-size: 16px;
  line-height: 1.5;
}
.kontakt-link {
  display: block;
}
.kontakt-link:hover {
  color: var(--accent-bright);
}

.kontakt-geschäftsf {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kontakt-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}
@media (max-width: 576px) {
  .kontakt-form-wrap {
    padding: 24px;
  }
}

.kontakt-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-h);
  letter-spacing: 0.05em;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: #fff;
  transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(46,109,219,0.05);
}

.form-submit {
  align-self: flex-start;
  min-width: 180px;
}

.form-success {
  color: #4cd964;
  font-size: 15px;
  margin-top: 8px;
}

/* ==========================================================================
   Legal & Impressum Page
   ========================================================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  margin-bottom: 60px;
}
.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h2 {
  font-size: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  color: var(--text-h);
}

.legal-block h3 {
  font-size: 20px;
  margin: 32px 0 16px;
  color: var(--text-h);
}

.legal-block p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.legal-block ul {
  list-style-type: square;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
.legal-block li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 64px;
  margin-bottom: 60px;
}
@media (max-width: 992px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.footer-logo {
  margin-bottom: 20px;
}
.footer-logo-img {
  height: 90px;
  object-fit: contain;
}
.footer-brand p {
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 24px;
  color: var(--text-h);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
}
.footer-link:hover {
  color: var(--accent-bright);
}

.social-link:hover {
  color: var(--accent-bright) !important;
  transform: translateY(-2px);
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.footer-contact-line svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}
a.footer-contact-line:hover {
  color: var(--text-h);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a:hover {
  color: var(--text-h);
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ==========================================================================
   Brand Logo Ticker
   ========================================================================== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scrolling 30s linear infinite;
}
.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

.ticker-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 60px;
  margin: 0 40px;
}
.ticker-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}
.ticker-logo:hover {
  transform: scale(1.05);
}

@keyframes ticker-scrolling {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -300px;
  left: 30px;
  max-width: 450px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
  z-index: 99999;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.show {
  bottom: 30px;
}
@media (max-width: 576px) {
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: -300px;
    max-width: none;
  }
  .cookie-banner.show {
    bottom: 15px;
  }
}
