﻿/* =========================================================================
   CUSTOM PROPERTIES
   ========================================================================= */
:root {
  --color-dark:         #0b0f19;
  --color-dark-2:       #1a2036;
  --color-primary:      #ff6b35;
  --color-primary-dark: #e85a25;
  --color-light:        #f5f5f7;
  --color-text:         #1c1c1e;
  --color-muted:        #6b7280;
  --font-main: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --transition: 0.22s ease;
}

/* =========================================================================
   RESET & BASE
   ========================================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 80px;
  background: var(--color-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Nav in der Mitte, Logo links, Lang-Button rechts */
.site-header .logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}

.site-header .logo img {
  height: 80px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-header nav a {
  color: rgba(255,255,255,0.8);
  margin-left: 0.2rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition);
}

.site-header nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.site-header nav a.active {
  color: var(--color-primary);
  background: rgba(255,107,53,0.12);
}

/* Hamburger-Button (auf Desktop versteckt) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  gap: 5px;
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sprach-Umschalter */
.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  margin-left: 0.5rem;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* =========================================================================
   HERO (Startseite)
   ========================================================================= */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,107,53,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-dark) 0%, #1a2036 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Hero-Überschrift mit eingebettetem Logo */
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.hero-heading span {
  display: block;
}

.hero-name-logo {
  height: clamp(38px, 7.5vh, 110px);
  width: auto;
  max-width: 80vw;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(255,107,53,0.28));
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero .btn-primary {
  position: relative;
  z-index: 1;
}

/* Page-Hero (Unterseiten) */
.page-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, var(--color-dark) 0%, #1a2036 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  position: relative;
  z-index: 1;
}

.page-hero p {
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255,107,53,0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,107,53,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}

/* =========================================================================
   INTRO-KARTEN (Startseite)
   ========================================================================= */
.intro-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.intro-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #ff9a6c);
}

.intro-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.intro-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,107,53,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--color-primary);
}

.intro-card h3 {
  color: var(--color-dark);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.intro-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================================================
   CTA-SEKTION
   ========================================================================= */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #eceef4 0%, #e8eaf2 100%);
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.cta-section p {
  margin: 0 auto 1.8rem;
  color: var(--color-muted);
  max-width: 580px;
}

/* =========================================================================
   IMPRESSUM / DATENSCHUTZ (Legal-Seiten)
   ========================================================================= */
.legal-section {
  padding: 2rem 1.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
  overflow-y: auto;
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.legal-content h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 1.2rem 0 0.3rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}

.legal-content a {
  color: var(--color-primary);
}

.legal-back {
  margin-top: 2.5rem !important;
  font-size: 0.9rem !important;
}

/* =========================================================================
   SERVICES-SEITE
   ========================================================================= */
.services-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #ff9a6c);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255,107,53,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--color-primary);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* =========================================================================
   CONTACT-SEITE
   ========================================================================= */
.contact-section {
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e2e6;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

.form-group textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-message {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  background: #e3f6e8;
  color: #1f7a3d;
  border: 1px solid #b6e6c3;
}

.form-message.error {
  background: #fcebea;
  color: #b3261e;
  border: 1px solid #f3b8b4;
}

/* Honeypot-Feld: für Menschen unsichtbar */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info {
  background: var(--color-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-md);
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

.contact-info a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* =========================================================================
   GLOBUS-SEKTION
   ========================================================================= */
.globe-section {
  padding: 2rem 1rem 3rem;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(83,96,171,0.24), transparent 42%),
              linear-gradient(180deg, #101528 0%, #171f38 56%, #111521 100%);
}

.globe-layout {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.project-list-panel {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 1.3rem;
  overflow-y: auto;
  box-shadow: 0 18px 55px rgba(0,0,0,0.15);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.project-list-panel::-webkit-scrollbar { width: 4px; }
.project-list-panel::-webkit-scrollbar-track { background: transparent; }
.project-list-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.project-list-panel h2 {
  color: #fff;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  font-weight: 700;
}

.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-list-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  color: #d7dae6;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition);
}

.project-list-item-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  min-width: 0;
}


.project-list-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.project-list-item.active {
  background: rgba(255,107,53,0.12);
  border-left-color: var(--color-primary);
  color: #fff;
}

.project-list-item-zeitraum,
.project-list-item-ort,
.project-list-item-land {
  font-size: 0.72rem;
  font-weight: 400;
  color: #9099ad;
  line-height: 1.3;
}

/* Karte + Hinweistext als vertikaler Block – feste Breite, schrumpft nie */
.map-block {
  flex: 0 0 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

#globe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 70px rgba(0,0,0,0.28);
  overflow: hidden;
}

/* Slot belegt standardmäßig keinen Platz – öffnet sich sobald ein Projekt gewählt wird */
.info-panel-slot {
  flex: 0 0 0;
  width: 0;
  overflow: hidden;
  align-self: stretch;
  transition: flex-basis 0.3s ease, width 0.3s ease;
}
.info-panel-slot.active {
  flex: 0 0 300px;
  width: 300px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
}

#globe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Leaflet-Steuerelemente: helles Design */
.leaflet-control-zoom a {
  background: #fff !important;
  color: #333 !important;
  border-color: rgba(0,0,0,0.15) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}
.leaflet-control-attribution {
  background: rgba(255,255,255,0.8) !important;
  color: #555 !important;
  font-size: 0.68rem !important;
}
.leaflet-control-attribution a { color: var(--color-primary) !important; }

/* Benutzerdefinierter Marker: kein Default-Leaflet-Rahmen */
.ep-marker { background: none !important; border: none !important; }

.globe-hint {
  text-align: center;
  color: #b9bfd6;
  font-size: 0.8rem;
  margin-top: 0;   /* gap des map-block übernimmt den Abstand */
  opacity: 0.65;
  width: 100%;
}

/* Tooltip beim Hover */
.tooltip {
  position: absolute;
  background: rgba(11,15,25,0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  pointer-events: none;
  transform: translate(-50%, -130%);
  white-space: nowrap;
  border: 1px solid var(--color-primary);
  z-index: 1000;
}

.tooltip.hidden { display: none; }

/* Info-Panel (Projektdetails) */
.info-panel {
  width: 300px;
  height: 100%;
  background: #fff;
  color: var(--color-text);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 30;
  overflow-y: auto;
  box-sizing: border-box;
}

.info-panel.hidden { display: none; }

.info-panel img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
}

.info-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.info-ort {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
}

.info-phasen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.9rem 0 0.4rem;
}

.info-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.8rem;
  padding: 0.8rem;
  background: #f5f5f7;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-right: 3px solid var(--color-primary);
}

.info-meta dt {
  font-size: 0.78rem;
  color: #6b6b70;
  font-weight: 600;
}

.info-meta dd {
  font-size: 0.82rem;
  color: var(--color-text);
  font-weight: 600;
  text-align: right;
  margin: 0;
}

.info-beschreibung-label {
  font-size: 0.78rem;
  color: #6b6b70;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 1rem 0 0.3rem;
}

#info-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

#info-close:hover {
  background: rgba(255,107,53,0.1);
  color: var(--color-primary);
}

.info-panel a {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.hidden { display: none !important; }

/* =========================================================================
   KONTAKT (inline-Sektion, falls benötigt)
   ========================================================================= */
.kontakt-section {
  text-align: center;
  padding: 3rem 1.5rem;
}

.kontakt-section h2 {
  margin-bottom: 0.8rem;
}

/* =========================================================================
   FOOTER (3-spaltig)
   ========================================================================= */
.site-footer {
  background: var(--color-dark);
  color: #b9bfd6;
  font-size: 0.875rem;
  padding: 3.5rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-primary);
}

.footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col a {
  color: var(--color-primary);
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--color-primary);
}

/* =========================================================================
   RESPONSIVE LAYOUT v27
   
   Prinzip:
   - Desktop (>768px): Alles auf einen Bildschirm – flex, overflow:hidden
   - Mobile (≤768px):  Natürliches Scrollen – overflow:auto, lesbare Größen
   ========================================================================= */

/* =========================================================================
   DESKTOP – body als Flex-Spalte, füllt genau den Viewport
   ========================================================================= */
html, body { height: 100%; overflow: hidden; }
body        { display: flex; flex-direction: column; }
.site-header { flex-shrink: 0; }
main         { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.site-footer { flex-shrink: 0; }

/* =========================================================================
   HEADER – Desktop
   ========================================================================= */
.site-header {
  height: clamp(52px, 7.5vh, 80px);
  padding: 0 clamp(0.9rem, 2.8vw, 2rem);
}
.site-header .logo img { height: clamp(40px, 6.5vh, 70px); }

/* =========================================================================
   FOOTER – Desktop
   ========================================================================= */
.footer-inner  { display: none; }
.footer-bottom { padding: 0.18rem clamp(0.9rem, 2.8vw, 2rem); font-size: 0.7rem; }

/* =========================================================================
   PAGE-HERO (Unterseiten) – Desktop
   ========================================================================= */
.page-hero {
  flex-shrink: 0;
  overflow: hidden;
  padding: clamp(0.45rem, 1.3vh, 1rem) clamp(0.9rem, 2.8vw, 2rem) clamp(0.3rem, 0.8vh, 0.6rem);
}
.page-hero h1 { font-size: clamp(1rem, 2.2vh, 1.65rem); margin-bottom: 0.1rem; }
.page-hero p  { font-size: clamp(0.7rem, 1.1vh, 0.85rem); }

/* =========================================================================
   STARTSEITE – Desktop
   ========================================================================= */
.main-home .hero {
  flex: 0 0 37%;
  overflow: hidden;
  padding: clamp(0.5rem, 1.6vh, 1.8rem) clamp(0.9rem, 3.5vw, 2.5rem);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.3em;
}
.hero-brand {
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  gap: clamp(0.6rem, 1.8vw, 1.4rem);
  margin-bottom: 0.4em;
}
.hero-welcome-text {
  font-size: clamp(0.85rem, 1.6vh, 1.25rem);
  font-weight: 400; letter-spacing: 0.01em;
  opacity: 0.75; white-space: nowrap; color: inherit;
}
.hero-name-logo {
  height: clamp(38px, 7.5vh, 110px);
  width: auto; max-width: 80vw;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
  display: block;
}
.hero p {
  font-size: clamp(0.7rem, 1.08vh, 0.86rem);
  margin-bottom: 0.6em;
  max-width: clamp(280px, 56vw, 620px);
  line-height: 1.5;
}
.main-home .hero .btn-primary {
  padding: 0.4em 1.4em; font-size: clamp(0.72rem, 1.05vh, 0.85rem);
}
.intro-section {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  padding: 0.5em clamp(0.9rem, 2.8vw, 2rem);
  max-width: none; margin: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.intro-grid {
  display: flex; flex-direction: row; justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.2rem);
  max-width: 800px; width: 100%;
}
.intro-card {
  flex: 1 1 0; max-width: 220px; min-width: 0;
  padding: clamp(0.5rem, 1.4vh, 1.1rem) clamp(0.55rem, 1.1vw, 1.05rem);
  overflow: hidden;
}
.intro-card-icon { width: clamp(28px, 4vh, 45px); height: clamp(28px, 4vh, 45px); margin-bottom: clamp(0.2rem, 0.6vh, 0.5rem); }
.intro-card-icon svg { width: clamp(13px, 1.9vh, 19px); height: clamp(13px, 1.9vh, 19px); }
.intro-card h3 { font-size: clamp(0.72rem, 1.18vh, 0.9rem); margin-bottom: 0.2em; }
.intro-card p  { font-size: clamp(0.62rem, 0.98vh, 0.78rem); line-height: 1.45; margin: 0; }
.main-home .cta-section {
  flex: 0 0 10%; min-height: 0; overflow: hidden;
  padding: 0 clamp(0.9rem, 2.8vw, 2rem);
  display: flex; flex-direction: row;
  align-items: center; justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
}
.main-home .cta-section h2 { font-size: clamp(0.76rem, 1.28vh, 0.96rem); margin: 0; font-weight: 700; white-space: nowrap; }
.main-home .cta-section p  { display: none; }
.main-home .cta-section .btn-secondary { flex-shrink: 0; padding: 0.32em 1.1em; font-size: clamp(0.68rem, 0.98vh, 0.82rem); white-space: nowrap; }

/* =========================================================================
   ANGEBOTE – Desktop
   ========================================================================= */
.main-services .services-section {
  flex: 1 1 0; min-height: 0; overflow: hidden;
  padding: clamp(0.3rem, 1vh, 0.8rem) clamp(0.9rem, 2.8vw, 2rem);
  max-width: none; margin: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.services-grid { width: 100%; max-width: 960px; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: clamp(0.4rem, 1.1vh, 0.85rem); align-items: start; }
.service-card  { padding: clamp(0.48rem, 1.3vh, 0.95rem) clamp(0.55rem, 1.05vw, 1rem); overflow: hidden; }
.service-card-icon { width: clamp(24px, 3.5vh, 38px); height: clamp(24px, 3.5vh, 38px); margin-bottom: clamp(0.22rem, 0.65vh, 0.48rem); }
.service-card h3   { font-size: clamp(0.72rem, 1.14vh, 0.85rem); margin-bottom: 0.15em; }
.service-card p    { font-size: clamp(0.62rem, 0.96vh, 0.73rem); }
.main-services .cta-section { flex-shrink: 0; overflow: hidden; padding: clamp(0.25rem, 0.9vh, 0.6rem) clamp(0.9rem, 2.8vw, 2rem); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 1.3rem; }
.main-services .cta-section h2 { font-size: clamp(0.72rem, 1.22vh, 0.92rem); margin: 0; font-weight: 700; }
.main-services .cta-section p  { display: none; }
.main-services .cta-section .btn-secondary { padding: 0.28em 1em; font-size: clamp(0.64rem, 0.94vh, 0.78rem); }

/* =========================================================================
   REFERENZEN – Desktop
   ========================================================================= */
.globe-section { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 0.28rem clamp(0.5rem, 1vw, 0.8rem) 0.22rem; display: flex; }
.globe-layout  { flex: 1 1 0; display: flex; flex-direction: row; width: 100%; height: 100%; gap: 0.4rem; align-items: stretch; }
.project-list-panel { flex: 0 0 clamp(180px, 19.5vw, 270px); height: 100%; overflow-y: auto; }
.map-block  { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; }
#globe-container { aspect-ratio: unset; flex: 1 1 0; min-height: 0; max-width: none; width: 100%; height: 100%; }
#globe-canvas    { height: 100% !important; min-height: 0 !important; }
.info-panel-slot.active { flex: 0 0 clamp(180px, 19.5vw, 270px); width: clamp(180px, 19.5vw, 270px); height: 100%; }
.info-panel { height: 100%; max-height: none; overflow-y: auto; }

/* =========================================================================
   KONTAKT – Desktop
   ========================================================================= */
.contact-section { flex: 1 1 0; min-height: 0; overflow: hidden; padding: clamp(0.32rem, 1.1vh, 0.8rem) clamp(0.9rem, 2.8vw, 2rem); max-width: none; margin: 0; display: flex; align-items: flex-start; justify-content: center; }
.contact-wrapper { width: 100%; max-width: 860px; height: 100%; overflow-y: auto; }
.contact-form { padding: clamp(0.75rem, 1.8vh, 1.4rem) clamp(0.9rem, 2.3vw, 1.7rem); }
.form-group   { margin-bottom: clamp(0.32rem, 0.85vh, 0.65rem); }
.form-group textarea { min-height: clamp(48px, 7vh, 82px); }

/* =========================================================================
   LEGAL – Desktop
   ========================================================================= */
.legal-section  { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: clamp(0.6rem, 1.5vh, 1.2rem) clamp(0.9rem, 2.8vw, 2rem); max-width: none; margin: 0; }
.legal-content  { max-width: 750px; margin: 0 auto; }

/* =========================================================================
   MOBILE – ≤ 768px
   Komplett anderes Prinzip: natürliches Scrollen, lesbare Texte, 
   großzügige Touch-Targets, alles vertikal gestapelt.
   ========================================================================= */
@media (max-width: 768px) {

  /* --- Grundrahmen: scrollen statt klemmen --- */
  html, body    { height: auto; overflow: hidden; overflow-y: auto; }
  body          { display: flex; flex-direction: column; min-height: 100svh; }
  main          { flex: none; display: block; overflow: visible; min-height: 0; }
  .site-footer  { margin-top: auto; }

  /* --- Header --- */
  .site-header {
    height: 60px;
    padding: 0 1rem;
    position: sticky; top: 0; z-index: 100;
  }
  .site-header .logo img { height: 42px; }

  /* --- Hamburger-Navigation --- */
  .site-header nav {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    transform: none;
    background: var(--color-dark);
    flex-direction: column; align-items: stretch;
    padding: 0.5rem 0 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 99;
  }
  .site-header nav.open { display: flex; }
  .site-header nav a {
    margin: 0; padding: 0.85rem 1.4rem;
    font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .site-header nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  #lang-toggle { font-size: 0.82rem; padding: 0.3rem 0.7rem; }

  /* --- Startseite: Hero --- */
  .main-home .hero {
    flex: none;
    min-height: 50svh;
    padding: 2.5rem 1.4rem 2rem;
    overflow: visible;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1rem;
  }
  .hero-brand {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 0.5rem;
  }
  .hero-welcome-text {
    font-size: 1rem;
    opacity: 0.8;
    white-space: normal;
    text-align: center;
  }
  .hero-name-logo {
    height: auto;
    width: min(260px, 72vw);
    max-width: 72vw;
  }
  .hero p {
    font-size: 0.97rem;
    line-height: 1.65;
    max-width: 100%;
    text-align: center;
    margin-bottom: 0.8rem;
  }
  .main-home .hero .btn-primary {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    width: 100%; max-width: 320px;
  }

  /* --- Startseite: Intro-Karten --- */
  .intro-section {
    flex: none; overflow: visible;
    padding: 2rem 1.2rem;
    background: var(--color-light);
  }
  .intro-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: 480px;
    margin: 0 auto; width: 100%;
  }
  .intro-card {
    flex: none; max-width: 100%; min-width: 0;
    padding: 1.2rem 1.1rem;
    overflow: visible;
  }
  .intro-card-icon { width: 44px; height: 44px; margin-bottom: 0.7rem; }
  .intro-card-icon svg { width: 20px; height: 20px; }
  .intro-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
  .intro-card p  { font-size: 0.9rem; line-height: 1.6; }

  /* --- Startseite: CTA --- */
  .main-home .cta-section {
    flex: none; overflow: visible;
    padding: 2rem 1.4rem;
    flex-direction: column;
    gap: 1rem;
    background: var(--color-dark-2);
  }
  .main-home .cta-section h2 {
    font-size: 1.05rem; white-space: normal;
    text-align: center; color: #fff;
  }
  .main-home .cta-section p { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); text-align: center; margin: 0; }
  .main-home .cta-section .btn-secondary {
    width: 100%; max-width: 320px;
    padding: 0.85rem 1.5rem; font-size: 1rem;
    white-space: normal; text-align: center;
  }

  /* --- Page-Hero (Unterseiten) --- */
  .page-hero {
    flex: none; overflow: visible;
    padding: 1.8rem 1.4rem 1.2rem;
  }
  .page-hero h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .page-hero p  { font-size: 0.92rem; line-height: 1.6; }

  /* --- Angebote --- */
  .main-services .services-section {
    flex: none; overflow: visible;
    padding: 1.5rem 1.2rem;
    align-items: stretch; justify-content: flex-start;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }
  .service-card {
    padding: 1.2rem 1rem;
    overflow: visible;
  }
  .service-card-icon { width: 40px; height: 40px; margin-bottom: 0.65rem; }
  .service-card h3   { font-size: 1rem; margin-bottom: 0.3rem; }
  .service-card p    { font-size: 0.88rem; line-height: 1.6; }
  .main-services .cta-section {
    flex: none; overflow: visible;
    padding: 1.8rem 1.4rem;
    flex-direction: column; gap: 1rem;
    background: var(--color-dark-2);
  }
  .main-services .cta-section h2 { font-size: 1rem; color: #fff; text-align: center; }
  .main-services .cta-section p  { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); text-align: center; }
  .main-services .cta-section .btn-secondary { width: 100%; max-width: 320px; padding: 0.85rem 1.5rem; font-size: 1rem; text-align: center; }

  /* --- Referenzen: Karte + Projektliste --- */
  .globe-section {
    flex: none; overflow: visible;
    padding: 0;
    display: block;
  }
  .globe-layout {
    flex-direction: column;
    height: auto; gap: 0;
  }
  .project-list-panel {
    flex: none; width: 100%; height: auto;
    max-height: 160px; overflow-y: auto;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 0;
  }
  .map-block {
    flex: none; width: 100%;
    height: 60svh; min-height: 280px;
    display: flex; flex-direction: column;
  }
  #globe-container {
    flex: 1 1 0; height: 100%; width: 100%;
  }
  #globe-canvas { height: 100% !important; }
  .info-panel-slot.active {
    flex: none; width: 100%; height: auto;
    padding: 1rem 1.2rem;
  }
  .info-panel { height: auto; max-height: none; overflow-y: visible; }

  /* --- Kontakt --- */
  .contact-section {
    flex: none; overflow: visible;
    padding: 1.2rem 1rem;
    display: block;
  }
  .contact-wrapper { height: auto; overflow: visible; max-width: 100%; width: 100%; display: flex; flex-direction: column; gap: 1.2rem; }
  .contact-info  { order: -1; width: 100%; box-sizing: border-box; } /* Direktkontakt oben */
  .contact-form { padding: 1.2rem 1rem; order: 1; width: 100%; box-sizing: border-box; } /* Formular darunter */
  .form-group   { margin-bottom: 0.9rem; }
  .form-group label { font-size: 0.92rem; }
  .form-group input, .form-group textarea, .form-group select {
    font-size: 16px; /* verhindert iOS-Zoom */
    padding: 0.75rem 0.9rem;
  }
  .form-group textarea { min-height: 110px; }

  /* --- Legal (Impressum / Datenschutz) --- */
  .legal-section {
    flex: none; overflow: visible;
    padding: 1.5rem 1.2rem;
  }
  .legal-content { max-width: 100%; }
  .legal-content h2 { font-size: 1rem; margin-top: 1.4rem; margin-bottom: 0.4rem; }
  .legal-content p  { font-size: 0.9rem; line-height: 1.7; }

  /* --- Footer --- */
  .footer-bottom {
    padding: 0.9rem 1.2rem;
    font-size: 0.82rem;
    display: flex; flex-direction: column; gap: 0.3rem; text-align: center;
  }

  /* --- Allgemeine Buttons --- */
  .btn-primary, .btn-secondary {
    display: block; width: 100%; max-width: 320px;
    text-align: center; padding: 0.85rem 1.5rem;
    font-size: 1rem; margin: 0 auto;
  }
}