/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v19-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


/* space-grotesk-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/space-grotesk-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* style.css – MosaicStack */

:root {
  --primary: #0a6cf1;
  --accent: #00ffd0;
  --accent2: #00bfa0; /* test */
  --bg: #0a0f1c;
  --glass: rgba(20, 30, 55, 0.7);
  --text: #f6f7fa;
  --muted: #a0aec0;
  --border: rgba(255,255,255,0.08);
  --radius: 1.2rem;
  --shadow: 0 8px 32px rgba(0,0,0,0.25);
  --font-main: 'Inter', Arial, sans-serif;
  --font-accent: 'Space Grotesk', Arial, sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: linear-gradient(135deg, #0a0f1c 0%, #1a233a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--glass);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-accent);
  font-size: 1.4rem;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s;
  position: absolute;
  left: 0; bottom: -2px;
}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-switcher button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.2s, opacity 0.2s;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

.lang-switcher button.active,
.lang-switcher button:focus {
  filter: grayscale(0%);
  opacity: 1;
  outline: 2px solid var(--accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55);
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.rotated {
  transform: rotate(180deg);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
  padding: 5rem 2rem 3rem 2rem;
  background: transparent;
}

.hero-content {
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.1;
  color: var(--text);
}

.hero .highlight {
  color: var(--accent);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;           /* Standard property (future-proof) */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2.2rem;
}

.cta {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 24px var(--primary);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.cta.neon-glow {
  background: linear-gradient(90deg, var(--primary), var(--accent2)); /* changed accent to accent2 */
  box-shadow: 0 0 16px var(--accent2), 0 2px 32px var(--primary); /* changed accent to accent2 */
  text-shadow: 0 0 8px var(--accent2); /* changed accent to accent2 */
}

.cta:hover, .cta:focus {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 32px var(--accent);
}

/* Optional: animated background placeholder */
.hero-bg-animation {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Add your SVG, canvas, or CSS animation here */
}

/* --- Why Section --- */
.why {
  padding: 4rem 2rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.why-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.why-card {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  min-width: 220px;
  max-width: 270px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-card:hover, .why-card:focus-within {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px var(--accent);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  display: block;
}

/* --- Services Section --- */
.services {
  padding: 4rem 2rem 2rem 2rem;
}

.services h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card {
  background: var(--glass);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  text-align: left;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px var(--primary);
}

.service-card h3 {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.service-card p {
  color: var(--muted);
  font-size: 1rem;
}

/* --- About Section --- */
.about {
  padding: 4rem 2rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.about h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  text-align: center;
}

/* --- Contact Section --- */
.contact {
  padding: 4rem 2rem 2rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

#contact-form label {
  font-weight: 500;
  color: var(--text);
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-main);
  resize: vertical;
  transition: border 0.2s, box-shadow 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
  box-shadow: 0 0 8px var(--accent);
}

#contact-form button[type="submit"] {
  align-self: flex-end;
  margin-top: 0.5rem;
}

#form-response {
  margin-top: 1.2rem;
  font-size: 1rem;
  color: var(--accent);
  min-height: 1.2em;
}

/* --- Footer --- */
footer {
  margin-top: auto;
  padding: 2rem 0 1rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  background: transparent;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

footer a:hover, footer a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .why-cards, .about-content {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    padding: 1rem 1rem;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 1rem;
    background: var(--glass);
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .why-card, .service-card {
    min-width: 90vw;
    max-width: 98vw;
  }
}

/* --- Glassmorphism & Effects --- */
.glass-effect {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(120%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Legal Pages (Impressum, Datenschutz) --- */
.legal-page {
  max-width: 700px;
  margin: 3rem auto 2rem auto;
  padding: 2.5rem 1.5rem;
  background: var(--glass, rgba(20,30,55,0.7));
  border-radius: var(--radius, 1.2rem);
  box-shadow: var(--shadow, 0 8px 32px rgba(0,0,0,0.25));
  color: var(--text, #f6f7fa);
  font-size: 1.08rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.legal-page h1 {
  font-family: var(--font-accent, 'Space Grotesk', Arial, sans-serif);
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.legal-page h2 {
  font-family: var(--font-accent, 'Space Grotesk', Arial, sans-serif);
  font-size: 1.3rem;
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  color: var(--accent, #00ffd0);
}

.legal-page h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  color: var(--primary, #0a6cf1);
}

.legal-page p,
.legal-page ul,
.legal-page li {
  color: var(--text, #f6f7fa);
  margin-bottom: 1.1rem;
}

.legal-page ul {
  padding-left: 1.4rem;
  margin-bottom: 1.3rem;
}

.legal-page nav {
  margin-top: 2.5rem;
  text-align: center;
}

.legal-page a {
  color: var(--accent, #00ffd0);
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-page a:hover {
  color: var(--primary, #0a6cf1);
}

@media (max-width: 800px) {
  .legal-page {
    max-width: 98vw;
    padding: 1.2rem 0.5rem;
  }
  .legal-page h1 {
    font-size: 1.5rem;
  }
}


@media (max-width: 700px) {
  .why,
  .services.glass-effect {
    padding-left: 0;
    padding-right: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
  }
  .why-cards,
  .services-grid {
    flex-direction: column !important; /* für .why-cards (flex) */
    gap: 1.2rem;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    overflow-x: hidden;
  }
  .why-card,
  .service-card {
    min-width: 0;
    max-width: 96vw;
    width: 96vw;
    margin: 0 auto;
  }
  html, body {
    overflow-x: hidden;
  }
}
