/* Grundlayout */
*,
*::before,
*::after {
  box-sizing: border-box; /* ✨ NEU: verhindert, dass Padding Breiten addiert */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-image: url('background_darker.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: rgba(2, 8, 75, 0.99);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-container {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
}

.logo {
  height: 80px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo { height: 60px; }
}

/* Desktop Navigation */
.desktop-nav { display: flex; gap: 25px; }

.desktop-nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: transform 0.3s ease;
}

.desktop-nav a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Hamburger-Menü */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-right: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

/* Mobile Navigation */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 20px;
  background-color: rgba(2, 8, 75, 0.95);
  padding: 20px;
  border-radius: 15px;
  margin-top: 5px;
  animation: slideDown 0.28s ease forwards;
  align-items: flex-end;
  text-align: right;
  width: fit-content;
  margin-left: auto;
}

.mobile-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

.nav-divider {
  width: 100%;
  border: none;
  border-top: 0.5px solid #fff;
  margin: 0;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Umschaltung */
@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.show { display: flex; }
}

/* Hauptinhalt */
main {
  width: 100%;
  max-width: 800px;
  padding: 40px 20px;
}

.highlight-welcome {
  font-size: 1.4em;
  font-weight: bold;
}

.highlight-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #000;
}
/* Titel und Untertitel */
#haupttitel {
  color: white;
  font-size: 50px;
  max-width: 600px;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#haupttitel2 {
    color: white;
  font-size: 40px;
  max-width: 800px;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

#untertitel2 {
  color: #fff;
  font-size: 16px;
  max-width: 600px;
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

#beispielseite1 {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}



#leistungenüberschrift, #aboutüberschrift { color: #fff; 
font-size: 50px;
}

/* Textboxen mit Glanz und Schatten */
/* --- Textboxen (ersetzt ältere Versionen) --- */
.textblock {
  background-color: #e0e0e0;
  border-radius: 20px;
  padding: 24px;              /* etwas kompakteres Padding hilft bei Breiten */
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;           /* wichtig: schneidet Pseudos an den Ecken ab */
  z-index: 1;
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.08),
    -8px -8px 20px rgba(255, 255, 255, 0.4);
  color: #1a1a1a;
  text-align: left;
}

/* Pseudo-Elemente füllen die Box exakt (keine Überstände) */
.textblock::before,
.textblock::after {
  content: '';
  position: absolute;
  inset: 0;                   /* ersetzt top/left/width/height - bleibt innerhalb der Abrundung */
  border-radius: inherit;     /* übernimmt die Abrundung, verhindert sichtbare Dreiecke */
  pointer-events: none;
  z-index: 0;
}

/* Glanzstreifen - animiert über background-position statt großer translate */
.textblock::before {
  background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.18) 30%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.9;
  background-size: 200% 200%;
  animation: shinePos 4s linear infinite, sparkle 12s ease-in-out infinite;
}

/* Kristall-Reflexion - subtiler, ebenfalls innerhalb der Box */
.textblock::after {
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.18),
    rgba(0, 150, 255, 0.10),
    rgba(255, 90, 160, 0.08),
    transparent 60%
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
  background-size: 150% 150%;
  animation: crystalShift 8s linear infinite;
}

/* Inhalt bleibt über den Pseudos */
.textblock > * { position: relative; z-index: 1; }

/* Animationen (Position / Hintergrundverschiebung statt großer Element-Transforms) */
@keyframes shinePos {
  0%   { background-position: -30% -30%; }
  50%  { background-position: 50% 50%; }
  100% { background-position: 130% 130%; }
}

@keyframes crystalShift {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.02); }
  100% { transform: rotate(360deg) scale(1); }
}

/* sparkle bleibt wie gehabt */
@keyframes sparkle {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

/* --- Reihen-Layout: linke Box kleiner, rechte nimmt Rest --- */
.textblock-row {
  align-items: stretch;
  width: 100%;
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;          /* nebeneinander solange Platz vorhanden */
  margin-bottom: 0px;
}

/* Linke Box deutlich kleiner, fixe Basis; Min-width reduziert Konflikte */
.textblock-row .textblock.small {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 160px;
           /* verhindert zu starkes Schrumpfen */
} 


/* Rechte Box nimmt den verbleibenden Platz; berücksichtigt Gap mit calc */
.textblock-row .textblock.large {
  flex: 1 1 calc(70% - 18px);
  max-width: calc(70% - 18px);
  min-width: 300px;
}

/* Responsive: untereinander bei schmalen Viewports */
@media (max-width: 768px) {
  .textblock-row {
    flex-direction: column;
    gap: 18px;
    flex-wrap: wrap;
  }
  .textblock-row .textblock.small,
  .textblock-row .textblock.large {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* CTA-Container (gleiche max-width wie main) */
.cta-row {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  margin-top: 18px;
  margin-bottom: 5px;
  display: flex;
  justify-content: flex-start; /* Desktop: linksbündig */
}

@media (max-width: 768px) {
  .cta-row { justify-content: center; } /* Mobil: zentriert */
}

/* Button als textblock-Variante */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 20px; /* passend zu deinen Textblöcken */
  color: #012032;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer;

  /* Basis-Fill: leicht transluzent, damit Pseudos sichtbar bleiben */
  background: linear-gradient(180deg, rgba(224,224,224,0.98), rgba(210,210,210,0.98));
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.08),
    -8px -8px 20px rgba(255, 255, 255, 0.35);
  color: #012031;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

/* hält die gleichen Pseudo-Element-Animationen wie .textblock, aber abgeschwächt */
.btn-cta::before,
.btn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

/* abgeschwächter Glanz */
.btn-cta::before {
  background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.12) 30%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.85;
  background-size: 200% 200%;
  animation: shinePos 4s linear infinite;
}

/* leichte Kristall-Reflexion */
.btn-cta::after {
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.12),
    rgba(0, 150, 255, 0.06),
    transparent 40%
  );
  mix-blend-mode: soft-light;
  opacity: 0.35;
  background-size: 150% 150%;
  animation: crystalShift 8s linear infinite;
}

/* Button-Interaktion */
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    12px 14px 30px rgba(0, 0, 0, 0.12),
    -10px -10px 22px rgba(255, 255, 255, 0.28);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.08),
    -8px -8px 20px rgba(255, 255, 255, 0.35);
}

.btn-cta:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 150, 220, 0.14);
}

/* Optional: volle Breite Variant (wenn du mehr Gewicht willst) */
.btn-cta.full {
  display: block;
  width: 100%;
  padding-left: 1px;
  padding-right: 28px;
  text-align: center;
}