/* =========================
   FONTS
   ========================= */

@font-face {
  font-family: "PenguinBold";
  src: url("fonts/penguinb.ttf") format("truetype");
  font-weight: bold;
}

@font-face {
  font-family: "PenguinNormal";
  src: url("fonts/penguinn.ttf") format("truetype");
  font-weight: normal;
}

@font-face {
  font-family: "Exo2";
  src: url("fonts/Exo2-Regular.ttf") format("truetype");
  font-weight: normal;
}

/* =========================
   ROOT / BASICS
   ========================= */

:root {
  --primary: #111;
  --secondary: #002a53;
  --background: #003B73;
  --card-bg: #194E81;
  --border-radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--primary);
  overflow-x: hidden;
}

/* =========================
   BACKGROUND VIDEO
   ========================= */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.125rem);
}

/* =========================
   HEADER
   ========================= */

/* Sticky Header Fix - Der Placeholder muss sticky sein, nicht der Header selbst */
#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header {
  position: relative;  /* WICHTIG: Nicht sticky! Der Container (#header-placeholder) ist sticky */
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.92;

  padding: 2rem 4%;
  background: rgba(0, 27, 52, 0.95);  /* Nur Hintergrund transparent, nicht Inhalt */
  backdrop-filter: blur(10px);         /* Stärkerer Blur-Effekt */
  -webkit-backdrop-filter: blur(10px); /* Safari Support */
  
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Schatten für Tiefe */
  transition: all 0.3s ease;                  /* Sanfte Übergänge */
}

/* Header wird beim Scrollen noch deutlicher */
.main-header.scrolled {
  background: rgba(0, 27, 52, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


/* LOGO */

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s ease;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.logo-wrapper:hover {
  transform: scale(1.18);
}

.logo-part {
  font-family: "PenguinNormal", sans-serif;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: #b2b2b2;
}

.logo-diamond {
  color: #3366ff;
  font-size: clamp(1.5rem, 3.7vw, 2.0rem);
  -webkit-text-fill-color: #3366ff;
  -webkit-text-stroke: 0;
}

.logo-space-large,
.logo-space-small {
  display: inline-block;
  width: 0.02em;
}

@media (max-width: 768px) {
  .logo-space-large {
    width: 0.05em;
  }
  .logo-space-small {
    width: 0.01em;
  }
}

@media (max-width: 480px) {
  .logo-space-large {
    width: 0.01em;
  }
  .logo-space-small {
    display: none;
  }
}

/* HEADER ACTIONS */

.header-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
}

.header-contact,
.header-lang {
  font-family: "PenguinNormal", sans-serif;
  font-size: clamp(0.8rem, 2.2vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b2b2b2;
  cursor: pointer;
  padding: 0.4em 0.8em;
  background: none;
  border: none;
  transition: color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  text-align: center;
}
.header-contact:hover,
.header-lang:hover {
  color: #6dd7fd;
  transform: translateY(-0.3em);
}

/* Mobile header adjustments */
@media (max-width: 600px) {
  .main-header {
    padding: 0.8rem 3%;
  }
  
  .header-right {
    gap: 0.3rem;
  }
  
  .header-contact {
    font-size: 0.65rem;
    padding: 0.3em 0.4em;
  }
}

/* =========================
   BUTTONS
   ========================= */

button {
  font: inherit;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 0.7em 1.2em;
  border-radius: 99em;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #003567;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 0.0625em solid var(--secondary);
  color: var(--secondary);
  padding: 0.6em 1em;
  border-radius: 99em;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  width: 96%;           /* ← NEU: Breiter (92% → 96%) */
  max-width: 75em;      /* ← NEU: Größere maximale Breite (60em → 75em) */
  aspect-ratio: 16 / 9;
  margin: 2em auto;
  overflow: hidden;
  border-radius: 0.5rem;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    width: 97%;         /* ← NEU: Breiter auf Tablet */
    aspect-ratio: 16 / 9; /* ← NEU: Auch auf Tablet 16:9 */
    margin: 1.5em auto;
  }
}

@media (max-width: 480px) {
  .hero {
    width: 99%;         /* ← NEU: Fast volle Breite auf Mobile */
    aspect-ratio: 16 / 9; /* ← NEU: Auch auf Mobile 16:9 statt 1:1 */
    margin: 1em auto;
  }
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.6s ease, opacity 0.6s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* ← NEU: cover statt contain = Bilder füllen Container */
  object-position: center; /* ← NEU: Zentrierung */
}
/* HERO ARROWS */

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  padding: 0.4em 0.5em;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background 0.3s ease;
  z-index: 10;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-arrow-left { 
  left: 0.5em; 
}

.hero-arrow-right { 
  right: 0.5em; 
}

@media (max-width: 480px) {
  .hero-arrow {
    font-size: 1rem;
    padding: 0.3em 0.4em;
  }
  
  .hero-arrow-left { 
    left: 0.3em; 
  }
  
  .hero-arrow-right { 
    right: 0.3em; 
  }
}

/* =========================
   INTRO
   ========================= */

/* =========================
   INTRO
   ========================= */

.intro {
  text-align: center;
  color: #b2b2b2;
  padding: 0 5% 3rem;  /* ← Mehr Padding */
}

.intro h2 {
  font-size: clamp(2rem, 7vw, 5rem);  /* ← NEU: Deutlich größer! */
  font-weight: normal;
  margin: 1.2em 0 1.2em;  /* ← Mehr Abstand */
  line-height: 1.2;  /* ← Engerer Zeilenabstand für große Texte */
}

@media (max-width: 768px) {
  .intro {
    padding: 2.5rem 4%;
  }
  
  .intro h2 {
    font-size: clamp(1.8rem, 6vw, 3.5rem);  /* ← Tablet-Größe */
    margin: 1.5em 0;
  }
}

@media (max-width: 480px) {
  .intro {
    padding: 2rem 4%;
  }
  
  .intro h2 {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);  /* ← Mobile-Größe */
    margin: 1.2em 0;
  }
}

.intro-text {
  font-family: "Exo2", sans-serif;
  transition: transform 1.4s ease, color 1.4s ease, text-shadow 1.4s ease;
  display: inline-block;
}

.intro-active .intro-text {
  color: #6dd7fd;
  transform: scale(1.08);
  text-shadow: 0 0 0.5em rgba(109,215,253,0.8);
}

@media (max-width: 768px) {
  .intro-active .intro-text {
    transform: scale(1.05);
  }
}

/* =========================
   SERVICES
   ========================= */

.services {
  text-align: center;
  color: #b2b2b2;
  margin: 3em 0 6em;
  padding: 0 5%;
}

.services h2 {
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  font-weight: 300;
  margin: 1.8em 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .services {
    margin: 1em 0;
    padding: 0 4%;
  }
  
  .services h2 {
    margin: 1em 0;
    line-height: 1.5;
  }

  .services h2:last-child {
    margin-bottom: 3em;
  }
}

@media (max-width: 480px) {
  .services {
    margin: 1.5em 0;
    padding: 0 3%;
  }
}

/* =========================
   SECTIONS / CONTENT
   ========================= */

.section {
  font-family: "Exo2", sans-serif;
  padding: 2.5em 5%;
  color: #b2b2b2;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section {
    padding: 2em 4%;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.5em 4%;
  }
}

.section-alt {
  background: #003567;
}

.section h1 {
  color: #6dd7fd;
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 1em;
}

.section h2 {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.section h3 {
  font-size: clamp(1rem, 3vw, 1.15rem);
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.section p,
.section li {
  line-height: 1.7;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.section ul {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  padding-left: 1.5em;
}

@media (max-width: 480px) {
  .section ul {
    padding-left: 1.2em;
  }
}

.section a {
  color: #b2b2b2;
  text-decoration: underline;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.section a:hover {
  color: #6dd7fd;
  transform: translateX(0.5em);
}

/* =========================
   CARDS
   ========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1em;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 0.8em;
  }
}

.card {
  background: var(--card-bg);
  padding: 1.1em;
  border-radius: var(--border-radius);
}

/* =========================
   FOOTER
   ========================= */

.main-footer {
  background: #111;
  color: #f1f1f1;
  padding: 2em 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

@media (max-width: 768px) {
  .main-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5em 4%;
    gap: 1.2em;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

@media (max-width: 768px) {
  .footer-brand {
    align-items: center;
  }
}

.footer-logo {
  margin-bottom: 0.3em;
}

.footer-copy {
  font-size: 0.85em;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 768px) {
  .footer-links {
    justify-content: center;
    gap: 1em;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.8em;
  }
}

.main-footer a,
.footer-contact {
  color: #f1f1f1;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}

.main-footer a:hover,
.footer-contact:hover {
  color: #6dd7fd;
  transform: translateY(-0.3em);
} 

/* =========================
   MODAL
   ========================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1em;
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 28em;
  padding: 1.5em;
  border-radius: var(--border-radius);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.2em;
    max-height: 95vh;
  }
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0.2em;
  line-height: 1;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #000;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1em;
  color: var(--secondary);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.modal-content label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3em;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.modal-content input,
.modal-content textarea {
  padding: 0.7em;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-family: inherit;
  width: 100%;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(0, 42, 83, 0.1);
}

.form-note {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.5em;
  line-height: 1.5;
}

.form-note a {
  color: var(--secondary);
  text-decoration: underline;
}

.form-note a:hover {
  color: #003567;
}

@media (max-width: 480px) {
  .form-note {
    font-size: 0.8em;
  }
}

/* =========================
   COOKIE BANNER (Nicht-blockierend)
   ========================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 1.5rem 2rem;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 3px solid #00aaff;
}

.cookie-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.cookie-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.cookie-close:focus {
  outline: 2px solid #00aaff;
  outline-offset: 2px;
}

.cookie-box h3 {
  color: #ffffff;
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  padding-right: 2.5rem; /* Platz für X-Button */
}

.cookie-box p {
  color: #cccccc;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.cookie-btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn-row .btn-primary,
.cookie-btn-row .btn-secondary {
  flex: 1;
  min-width: 150px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cookie-btn-row .btn-primary {
  background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
  color: #ffffff;
}

.cookie-btn-row .btn-primary:hover {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 170, 255, 0.3);
}

.cookie-btn-row .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-row .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cookie-btn-row .btn-primary:focus,
.cookie-btn-row .btn-secondary:focus {
  outline: 3px solid #00aaff;
  outline-offset: 2px;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
  .cookie-box {
    padding: 1.25rem 1.5rem;
  }
  
  .cookie-box h3 {
    font-size: 1.1rem;
    padding-right: 2rem;
  }
  
  .cookie-box p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
  
  .cookie-btn-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cookie-btn-row .btn-primary,
  .cookie-btn-row .btn-secondary {
    width: 100%;
    min-width: unset;
  }
  
  .cookie-close {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem;
  }
  
  .cookie-close svg {
    width: 20px;
    height: 20px;
  }
}

/* Extra kleine Bildschirme */
@media (max-width: 480px) {
  .cookie-box {
    padding: 1rem;
  }
  
  .cookie-box h3 {
    font-size: 1rem;
  }
  
  .cookie-box p {
    font-size: 0.85rem;
  }
}

/* Animation für das Einblenden */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   UTILITY CLASSES
   ========================= */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-slide {
    transition: none !important;
  }
  
  .intro-text {
    transition: none !important;
  }
  
  .cookie-banner {
    transition: none;
  }
  
  .cookie-banner.visible {
    animation: none;
  }
  
  .cookie-close,
  .cookie-btn-row .btn-primary,
  .cookie-btn-row .btn-secondary {
    transition: none;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #6dd7fd;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-arrow {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #fff;
  }
}

/* Bestätigungs-Modal Styling */

/* Icon-Container */
.confirmation-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    animation: scaleIn 0.5s ease-out;
}

/* Animation für das Icon */
@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Erfolgskreis und Haken */
.success-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.6s ease-out forwards;
}

.confirmation-checkmark {
    stroke-dasharray: 95;
    stroke-dashoffset: 95;
    animation: drawCheckmark 0.4s ease-out 0.3s forwards;
}

/* Fehlerkreis und Kreuz */
.error-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: drawCircle 0.6s ease-out forwards;
}

.confirmation-cross {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: drawCross 0.4s ease-out 0.3s forwards;
}

/* Zeichenanimationen */
@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheckmark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCross {
    to {
        stroke-dashoffset: 0;
    }
}

/* Titel und Nachricht Styling */
.confirmation-title {
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    text-align: center;
    color: #333;
}

.confirmation-message {
    margin: 0 0 2rem 0;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    color: #666;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .confirmation-icon {
        width: 80px;
        height: 80px;
    }
    
    .confirmation-title {
        font-size: 1.5rem;
    }
    
    .confirmation-message {
        font-size: 0.95rem;
    }
}