/* Local font declarations */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
}

:root {
  --clr-primary: #1c64f2;
  --clr-accent: #d946ef;
  --clr-dark: #0b0d17;
  --clr-light: #ffffff;
  --font-main: 'Inter', sans-serif;
  --font-head: 'Montserrat', sans-serif;
  --nav-height: 72px; /* keep this in sync with actual nav height */
  scroll-behavior: smooth;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--clr-light);
  background: #181c2a; /* dauerhaft dunkel */
}
header#hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: var(--clr-light);
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
}
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  font-family: var(--font-head);
  font-weight: 600;
  background: rgba(24,28,42,0.92); /* unified, soft glass background */
  border: none;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 32px rgba(28,100,242,0.10);
  transition: color 0.2s ease;
  backdrop-filter: blur(16px) saturate(1.2);
  font-size: 1.15rem; /* <--- hinzugefügt */
}
.nav-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
  padding: 0.9rem 2.2rem 0.9rem 2.2rem;
  border-bottom: 1.5px solid rgba(255,255,255,0.08); /* subtle divider */
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.logo {
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 800;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(28,100,242,0.10));
  transition: filter 0.2s;
}
.logo strong {
  font-weight: 900;
  letter-spacing: 0;
}
.logo:hover {
  filter: drop-shadow(0 4px 16px rgba(217,70,239,0.18));
}
.language-switch {
  margin-left: 0;
  display: flex;
  gap: 0.5rem;
  margin-right: 0;
}
.language-switch button {
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 12px 0 rgba(28,100,242,0.10);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  outline: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.language-switch button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.language-switch button:hover,
.language-switch button:focus-visible {
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 24px 0 rgba(28,100,242,0.18);
}
.language-switch button:active {
  transform: scale(0.98);
}
.language-switch button.active {
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(217,70,239,0.18);
}
.nav-row {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  gap: 1.25rem;
  background: transparent;
  border-radius: 0 0 18px 18px;
  box-shadow: none;
  padding: 0.7rem 0 0.7rem 0;
  border-top: none;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}
nav a {
  color: var(--clr-light);
  text-decoration: none;
  margin-left: 0;
  margin-right: 1.25rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.2s ease;
  font-size: 1.25rem;
}
nav a:last-child {
  margin-right: 0;
}
.hero-content {
  margin-top: calc(-1 * var(--nav-height));
  padding: clamp(3rem, 8vw, 6rem) 0.5rem 0;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%) no-repeat center center;
  background-size: cover;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  color: var(--clr-light);
  display: flex;
  flex-direction: column;
}
.hero-content h1 {
  font-size: clamp(1.5rem, 7vw, 3rem);
  font-family: var(--font-head);
  line-height: 1.1;
  margin-bottom: 1rem;

}
.hero-content p {
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 650px;
}
.btn {
  padding: 0.9rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--clr-light);
  background: transparent;
  color: var(--clr-light);
  font-weight: 600;
  transition: background 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.4em 1.2em;
  border-radius: 6px;
  background: var(--clr-primary);
  color: var(--clr-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: var(--clr-accent);
}
section {
  padding: 6rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
section h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}
section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--clr-primary);
  display: block;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Schriftgrößen für Service-Elemente and Navigation responsiv skalieren */
nav .nav-row,
nav a {
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
}

.service h3,
.service p {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
}

/* Optional: Padding für .hero-content auf kleinen Screens anpassen */
@media (max-width: 700px) {
  .hero-content {
    padding: 2.5rem 0.5rem 0;
    min-height: 60vh;
  }
}

/* Insights-Grid bleibt immer wie definiert! */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  padding: 0;
}

.insight {
  background: linear-gradient(135deg, #181c2a 60%, #232946 100%);
  border-radius: 1.5rem;
  box-shadow:
    0 0 24px 0 rgba(28,100,242,0.18), /* sanfter blauer Glow */
    0 4px 32px 0 rgba(28,100,242,0.10),
    0 1.5px 8px 0 rgba(24,28,42,0.08);
  padding: 2.2rem 1.7rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.18s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.insight:hover, .insight:focus-visible {
  box-shadow:
    0 0 40px 0 rgba(28,100,242,0.28), /* stärkerer Glow beim Hover */
    0 8px 40px 0 rgba(28,100,242,0.18),
    0 2px 16px 0 rgba(217,70,239,0.12);
  transform: translateY(-6px) scale(1.03);
  background: linear-gradient(135deg, #232946 70%, #1c64f2 100%);
}

.insight h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(28,100,242,0.10);
}

.insight p {
  font-size: 1.08rem;
  color: #dbeafe;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.insight .insight-meta {
  margin-top: auto;
  font-size: 0.98rem;
  color: #7a88b8;
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .insight {
    padding: 1.2rem 1rem;
  }
  .insight h3 {
    font-size: 1.15rem;
  }
  .insight p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-grid,
  .insights-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  nav .nav-row,
  nav a,
  .service h3,
  .service p,
  .hero-content h1,
  .hero-content p,
  section h2,
  .btn,
  .logo {
    font-size: 1.5em !important;
  }
  .service {
    padding: 1.5em 1em;
  }
}
footer {
  background: #eef1ff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
  color: #555;
}
.scroll-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: auto;
  right: 2rem;
  top: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 2px 12px 0 rgba(28,100,242,0.10);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 10;
}
.scroll-to-top:hover, .scroll-to-top:focus-visible {
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 4px 24px 0 rgba(217,70,239,0.18);
}
section { position: relative; }
/* --- Modern Glassmorphism & Neon Glow für Cards --- */
.service, .insight {
  background: linear-gradient(135deg, rgba(24,28,42,0.96) 0%, rgba(28,100,242,0.13) 100%);
  border-radius: 1.7rem;
  box-shadow:
    0 0 32px 0 rgba(28,100,242,0.18),
    0 0 0 1.5px rgba(255,255,255,0.05) inset;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  padding: 2.2rem 1.7rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.18s, background 0.25s;
  position: relative;
  overflow: hidden;
}

.service::before, .insight::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at 80% 20%, rgba(28,100,242,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
}

.service:hover, .service:focus-visible,
.insight:hover, .insight:focus-visible {
  box-shadow:
    0 0 60px 0 rgba(28,100,242,0.22),
    0 8px 40px 0 rgba(28,100,242,0.18),
    0 2px 16px 0 rgba(217,70,239,0.18);
  transform: translateY(-6px) scale(1.035);
  background: linear-gradient(135deg, rgba(28,100,242,0.18) 0%, rgba(217,70,239,0.16) 100%);
}

.service h3, .insight h3 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  color: #fff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 24px rgba(28,100,242,0.22), 0 1px 8px rgba(217,70,239,0.18);
  z-index: 1;
}

.service p, .insight p {
  font-size: 1.13rem;
  color: #dbeafe;
  margin-bottom: 0.5rem;
  line-height: 1.65;
  z-index: 1;
}

.insight .insight-meta {
  margin-top: auto;
  font-size: 1.01rem;
  color: #b7bfe7;
  letter-spacing: 0.02em;
  font-weight: 500;
  margin-bottom: 0;
  z-index: 1;
}

/* Responsive Anpassung */
@media (max-width: 700px) {
  .services-grid,
  .insights-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem;
  }

  /* Fließtext überall größer, Überschriften bleiben */
  body,
  nav .nav-row,
  nav a,
  .service p,
  .insight p,
  .hero-content p,
  section,
  .btn,
  .logo,
  .language-switch button {
    font-size: 1.22rem !important;
  }

  .service, .insight {
    padding: 1.2rem 1rem;
  }
}

/* Darkmode noch cooler */
@media (prefers-color-scheme: dark) {
  .service, .insight {
    background: linear-gradient(135deg, rgba(24,28,42,0.92) 0%, rgba(28,100,242,0.13) 100%);
    box-shadow:
      0 0 32px 0 rgba(28,100,242,0.18),
      0 0 0 1.5px rgba(255,255,255,0.05) inset;
  }
  .service h3, .insight h3 {
    color: #fff;
    text-shadow: 0 2px 24px rgba(28,100,242,0.22), 0 1px 8px rgba(217,70,239,0.18);
  }
  .service p, .insight p {
    color: #dbeafe;
  }
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.btn {
  font-size: 1rem;
  padding: 0.4em 1.2em;
  border-radius: 6px;
  background: var(--clr-primary);
  color: var(--clr-light);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  font-family: var(--font-main);
  font-weight: 600;
}
.btn:hover {
  background: var(--clr-accent);
}

.impressum-section {
  background: #23263a;
  color: var(--clr-light);
  padding: 3rem 0 2rem 0;
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.impressum-content {
  background: rgba(24,28,42,0.92);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(28,100,242,0.10);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
}
.impressum-content h2, .impressum-content h3 {
  font-family: var(--font-head);
  color: var(--clr-primary);
  margin-top: 2rem;
  margin-bottom: 0.7rem;
}
.impressum-content h2 {
  margin-top: 0;
  font-size: 2rem;
}
.impressum-content h3 {
  font-size: 1.2rem;
}
.impressum-link {
  color: var(--clr-accent);
  text-decoration: underline;
  word-break: break-all;
}
.impressum-link:hover {
  color: var(--clr-primary);
}
@media (max-width: 600px) {
  .impressum-content {
    padding: 1.2rem 0.7rem 1.2rem 0.7rem;
    font-size: 0.98rem;
  }
  .impressum-content h2 {
    font-size: 1.3rem;
  }
}