:root {
  --primary-blue: rgb(28, 92, 137);
  --primary-dark: #111111;
  --primary-light: #f5f5f5;
  --white: #F9F7F1;
  --text-dark: #222222;
  --text-gray: #777777;
  --bg-gray: #EFECE1;
  --accent: rgb(28, 92, 137); 
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: all 0.4s ease;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  font-weight: 300;
  cursor: url('Images Neu/alex_avatar_cursor_transparent.png?v=3') 24 24, auto;
}

a, button, .service-card, .slider-nav-btn, .modal-close, .nav-dropdown-toggle, .logo img {
  cursor: url('Images Neu/alex_avatar_cursor_transparent.png?v=3') 24 24, pointer;
}

/* =================== COOKIE BANNER =================== */
#cookie-banner {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 400px;
  max-width: calc(100% - 50px);
  border-radius: 12px;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.98);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}
#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.cookie-content p {
  font-size: 0.85rem;
  color: #cccccc;
  line-height: 1.6;
}
.cookie-content a {
  color: var(--primary-blue);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}
#cookie-accept {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  flex: 1;
  font-family: var(--font-family);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
#cookie-accept:hover { background: #1a5a8a; }
#cookie-decline {
  background: transparent;
  color: #aaa;
  border: 1px solid #555;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  flex: 1;
  font-family: var(--font-family);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
#cookie-decline:hover { border-color: #fff; color: #fff; }

/* =================== HEADER =================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}
header.scrolled {
  border-bottom-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 3rem;
}
.logo img {
  height: 65px;
  object-fit: contain;
  transition: var(--transition);
}
.logo img:hover {
  opacity: 0.8;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}
nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0079C1;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding-bottom: 0.25rem;
  height: 100%;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--primary-blue); }
nav a:hover::after { width: 100%; }

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

/* =================== NAV DROPDOWN =================== */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  cursor: pointer;
  user-select: none;
}
.dropdown-arrow {
  display: inline-block;
  font-size: 0.85rem;
  transition: transform 0.3s ease;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.nav-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* The simple list dropdown panel */
.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 900;
  border-top: 2px solid var(--primary-blue);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-width: 250px;
  animation: dropdownSlideIn 0.2s ease-out;
}
.nav-dropdown-panel.open {
  display: block;
}
@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-list {
  display: flex !important;
  flex-direction: column !important;
  padding: 0.2rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
  gap: 0 !important;
}
.nav-dropdown-list li {
  width: 100%;
}
.nav-dropdown-list a {
  display: block;
  padding: 0.3rem 1.5rem !important;
  color: var(--text-dark);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 1px;
  transition: var(--transition);
  line-height: 1.5;
  height: auto;
}
.nav-dropdown-list a::after {
  display: none;
}
.nav-dropdown-list a:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
  padding-left: 2rem;
}

/* Overlay that closes the dropdown on outside click */
#dropdown-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 899;
  background: transparent;
}
#dropdown-backdrop.open { display: block; }

@media (max-width: 992px) {
  .dropdown-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dropdown-gallery { grid-template-columns: 1fr; }
  .dropdown-inner { padding: 1.5rem; }
}

/* =================== HERO =================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: -5%; /* Reduziert auf 5% Zoom statt 15%, damit es schärfer bleibt */
  bottom: 0;
  background: url('Images Neu/Hero Section/Herso Section_Fassade.JPG') no-repeat left center/cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(
    to top, 
    rgba(0,0,0,0.6) 0%, 
    rgba(0,0,0,0.1) 50%, 
    rgba(0,0,0,0) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
  animation: fadeIn 1.2s ease-out;
}
.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.8;
  font-weight: 300;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.9;
  max-width: 500px;
}
.btn-primary {
  display: inline-block;
  background-color: transparent;
  color: var(--white);
  padding: 1rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
}
.btn-primary:hover {
  background-color: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
}

/* =================== ABOUT =================== */
.about {
  padding: 8rem 3rem;
  background-color: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.3;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 6rem;
  align-items: start;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.9;
}
.about-text strong {
  color: var(--text-dark);
  font-weight: 600;
}
.stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 120px;
}
.stat-item {
  border-left: 2px solid var(--primary-blue);
  padding-left: 1.5rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-dark);
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
}

/* =================== SERVICES =================== */
.services {
  padding: 8rem 3rem;
  background-color: var(--bg-gray);
}
.services-container {
  max-width: 1400px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background-color: #e8e8e8;
  margin-top: 4rem;
}
.service-card {
  background-color: var(--white);
  height: 420px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.service-card img.service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease, opacity 0.5s ease, filter 0.5s ease;
  opacity: 0.55;
  filter: grayscale(60%);
}
.service-card:hover img.service-bg {
  transform: scale(1.06);
  opacity: 1;
  filter: grayscale(0%);
}
.service-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.92);
  width: 82%;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}
.service-card:hover .service-card-content {
  background-color: rgba(255, 255, 255, 0.97);
}
.service-title {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0079C1;
  margin-bottom: 0.75rem;
}
.service-desc {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}
.service-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #0079C1;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition);
}
.service-card:hover .service-more {
  opacity: 1;
  transform: translateY(0);
}

/* =================== PORTFOLIO =================== */
.portfolio {
  padding: 8rem 3rem;
  background-color: var(--white);
  max-width: 1400px;
  margin: 0 auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 4/5;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}
.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  display: flex;
  align-items: flex-end;
  transition: var(--transition);
}
.portfolio-item:hover img {
  transform: scale(1.06);
}
.portfolio-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}
.portfolio-item:hover .portfolio-title {
  transform: translateY(0);
  opacity: 1;
}

/* =================== FOOTER =================== */
footer {
  background-color: #0079C1;
  color: #ffffff;
  padding: 2rem 3rem;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-logo {
  margin-bottom: 1.5rem;
}
.footer-logo img {
  height: 55px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-col h3 {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.footer-col p {
  color: #999999;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-link {
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}
.footer-link:hover {
  color: var(--white);
}
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p {
  color: #ffffff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links-bottom {
  text-align: right;
}
.footer-links-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-links-bottom a:hover { color: rgba(255,255,255,0.7); }

/* =================== MODALS =================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}
.modal.open {
  display: flex;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: -1;
}
.modal-content {
  background: var(--white);
  max-width: 780px;
  width: 100%;
  position: relative;
  margin: auto;
  animation: modalSlideIn 0.4s ease-out;
}
.modal-legal .modal-body {
  max-height: 80vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}
.modal-close:hover { background: rgba(0,0,0,0.9); }
.modal-header-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
}
.modal-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}
.modal-body {
  padding: 2.5rem;
}
.modal-body h2 {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3;
}
.modal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-body p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.modal-body a {
  color: var(--primary-blue);
}
.modal-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0.75rem;
}
.modal-body ul li {
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  border-bottom: 1px solid #f0f0f0;
}
.modal-body ul li:last-child { border-bottom: none; }
.modal-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
}
.modal-body strong {
  color: var(--text-dark);
  font-weight: 600;
}
.modal-cta {
  margin-top: 2rem !important;
  padding: 1.5rem;
  background: #f7f7f7;
  border-left: 3px solid var(--primary-blue);
  font-size: 0.95rem !important;
  color: var(--text-dark) !important;
}

/* Buttons in modals */
.btn-primary-dark {
  display: inline-block;
  background: #0079C1;
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-right: 1rem;
  margin-top: 0.5rem;
}
.btn-primary-dark:hover { background: #005b91; }
.btn-secondary-dark {
  display: inline-block;
  background: transparent;
  color: var(--text-dark);
  border: 1px solid #ccc;
  padding: 0.85rem 2rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}
.btn-secondary-dark:hover { border-color: var(--text-dark); }

/* =================== KONTAKT MODAL =================== */
.modal-kontakt {
  max-width: 1000px;
  width: 100%;
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 580px;
}

/* Linke Infospalte */
.kontakt-info {
  background: var(--white);
  color: var(--text-dark);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.kontakt-logo {
  margin-bottom: 1.5rem;
  text-align: center;
}
.kontakt-logo img {
  max-width: 100%;
  height: auto;
  max-height: 130px;
  object-fit: contain;
  opacity: 1;
}
.kontakt-info h2 {
  font-size: 1.3rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.kontakt-intro {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.kontakt-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kontakt-icon {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  opacity: 0.8;
}
.kontakt-detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  margin-bottom: 0.3rem;
  font-weight: 400;
}
.kontakt-detail p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
}
.kontakt-detail a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}
.kontakt-detail a:hover { color: var(--text-dark); }

/* Rechte Formularspalte */
.kontakt-form-wrap {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: 85vh;
}
.kontakt-form-wrap h3 {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eeeeee;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group.full {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
  font-weight: 400;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-gray);
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-blue);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* DSGVO Checkboxen */
.form-checks {
  margin: 1.25rem 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}
.form-check span {
  font-size: 0.82rem;
  color: var(--text-gray);
  line-height: 1.6;
}
.form-check a {
  color: var(--primary-blue);
  text-decoration: underline;
}
.form-pflicht {
  font-size: 0.78rem;
  color: #aaaaaa;
  margin-bottom: 1.5rem;
}

/* Absenden-Button */
.form-submit {
  width: 100%;
  background: #0079C1;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover { background: #005c94; }

/* Erfolgsmeldung */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: white;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success h3 {
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.form-success p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Kontakt responsive */
@media (max-width: 768px) {
  .kontakt-grid {
    grid-template-columns: 1fr;
  }
  .kontakt-info {
    padding: 2rem 1.5rem;
  }
  .kontakt-form-wrap {
    padding: 1.5rem;
    max-height: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =================== SCROLL REVEAL =================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================== REFERENZEN MODAL =================== */
.modal-referenzen {
  max-width: 1000px;
}
.referenzen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--bg-gray);
  padding-bottom: 1rem;
}
.ref-tab {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  border-radius: 4px;
}
.ref-tab:hover {
  color: #0079C1;
  background: var(--bg-gray);
}
.ref-tab.active {
  color: #fff;
  background: #0079C1;
}
.referenzen-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.referenzen-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}
.referenzen-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1200px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .stats {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-item {
    min-width: 150px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
    position: relative;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.5rem;
  }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  nav a { font-size: 1rem; }
  .nav-toggle { 
    display: flex; 
    margin-right: 1.5rem; /* Moves toggle further to the left */
  }
  .logo img {
    width: 75%;
    height: auto;
  }
  .hero h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }
  .hero { padding: 4rem 1.5rem; }
  .about { padding: 5rem 1.5rem; }
  .services { padding: 5rem 1.5rem; }
  .portfolio { padding: 5rem 1.5rem; }
  footer { padding: 4rem 1.5rem 2rem; }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    padding: 1.5rem;
    flex-direction: column;
  }
  .modal { padding: 1rem; }
  .modal-body { padding: 1.5rem; }
  .modal-body h2 { font-size: 1.3rem; }
}

/* =================== LIGHTBOX =================== */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(5px);
  cursor: zoom-out;
}
.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}
.lightbox-close {
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}
.lightbox-prev:hover, .lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .lightbox-close {
    top: -40px;
    right: 0;
  }
  .lightbox-prev { left: -20px; }
  .lightbox-next { right: -20px; }
  #lightbox-img {
    max-width: 85vw;
  }
}
