* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
html {
  font-size: 18px;
}
body {
  min-height: 100vh;
  color: #fff;
  line-height: 1.6;
  background: #111;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Prevent long German words from causing overflow */
h1, h2, h3, p, li, a, span {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.logo {
  width: 200px;
  height: auto;
  display: block;
}
.logo:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  text-transform: uppercase;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Mobile Navigation (hamburger up to 1100px: the full nav does not fit below that) */
.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.menu-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 1100px) {
  nav {
    padding: 15px 20px;
  }
  .logo {
    width: 180px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 65%;
    max-width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 25px 25px;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1em;
    padding: 10px 0;
    width: 100%;
  }
  .nav-dropdown-toggle {
    font-size: 1.1em;
    padding: 10px 0;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
}

/* Language Switcher */
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.language-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 8px 10px;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
}
.language-switch button:hover {
  color: rgba(255, 255, 255, 0.9);
}
.language-switch button.active {
  color: #fff;
}
.language-switch button.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}
.language-switch button:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
.language-switch .separator {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}
@media (max-width: 1100px) {
  .language-switch {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
  }
}

.content {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: calc(100vh - 100px);
}
section {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}
h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}
h2 {
  color: #fff;
  font-size: 1.4em;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}
h3 {
  color: #fff;
  font-size: 1.15em;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 600;
}
p {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #ddd;
}
ul, ol {
  margin: 15px 0;
  padding-left: 25px;
  color: #ddd;
}
li {
  margin-bottom: 8px;
  line-height: 1.7;
}
a {
  color: #fff;
  text-decoration: underline;
}
a:hover {
  color: #ccc;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #888;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-links {
  margin-bottom: 15px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.95em;
}
.footer-links a:hover {
  color: #fff;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 10px;
  background: #000;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-weight: 600;
  transition: top 0.3s ease;
}
.skip-to-content:focus {
  top: 10px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}


.legal-updated { margin-top: 40px; color: #888; font-size: 0.9em; }

/* Request page (anfrage.html): form that builds an email */
.request-form { margin: 20px 0 15px; }
.request-form .field { margin-bottom: 22px; }
.request-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 600px) {
  .request-form .field-row { grid-template-columns: 1fr; }
}
.request-form label {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 6px;
}
.field-required {
  color: #aaa;
  font-weight: 400;
  font-size: 0.8em;
  margin-left: 6px;
}
.request-form .field-hint,
.field-hint {
  color: #aaa;
  font-size: 0.9em;
  line-height: 1.6;
  margin-bottom: 8px;
}
.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  background: #1b1b1b;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 1em;
  line-height: 1.5;
}
.request-form textarea { resize: vertical; }
#koordinaten { scroll-margin-top: 100px; }
.request-form select { cursor: pointer; }
.request-form input::placeholder,
.request-form textarea::placeholder { color: #666; }
.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus {
  outline: none;
  border-color: #fff;
}
.template-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.template-button {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
}
.template-button:hover { background: #ccc; }
.template-button-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.template-button-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.template-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.template-status { color: #aaa; font-size: 0.9em; }

/* Inline link inserted by contact obfuscation script */
.contact-inline-link { color: #fff; text-decoration: underline; }

/* Keyboard access to the services dropdown (desktop) */
.nav-dropdown-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (min-width: 1101px) {
  .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown:focus-within .nav-dropdown-toggle::after { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
