/* === Base === */
:root {
  --primary: #5E7485;
  --primary-dark: #4a5e6b;
  --primary-light: #7a95a8;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --max-width: 1100px;
  --max-width-narrow: 900px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links-desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links-desktop a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links-desktop a:hover {
  color: var(--primary);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switcher a {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.lang-switcher a:hover {
  color: var(--primary);
  background: var(--bg-alt);
}

.lang-switcher a.active {
  color: #fff;
  background: var(--primary);
}

/* Mobile nav */
.nav-mobile .lang-switcher {
  border-left: none;
  margin-left: 0;
  padding-left: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
}

.nav-cta-mobile {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* === Sections (full-width backgrounds) === */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
}

/* === Main (for legal pages without sections) === */
main {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Pages with custom sections override main max-width */
main:has(#hero) {
  max-width: none;
  padding: 0;
}

main:has(#request-page) {
  max-width: none;
  padding: 0;
}

/* === Hero === */
#hero {
  padding: 8rem 1.5rem 5rem;
  text-align: center;
}

#hero h1 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

#hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === Headings === */
h2 {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 0.75rem;
}

p:last-child {
  margin-bottom: 0;
}

/* === Links === */
a {
  color: var(--primary);
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* === Lists === */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

li {
  margin-bottom: 0.3rem;
}

/* === Cards === */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-icon svg {
  width: 2rem;
  height: 2rem;
}

.card-icon-lg {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-icon-lg svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
  display: block;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin: 0;
}

/* === Grid layouts === */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* === Text utilities === */
.text-center {
  text-align: center;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.text-price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 0.75rem;
}

/* === Social icons in content === */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  color: var(--text-light);
  transition: color 0.2s;
  display: inline-flex;
}

.social-icons a:hover {
  color: var(--primary);
}

.social-icons svg {
  width: 1.5rem;
  height: 1.5rem;
}

.social-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
}

.social-inline:hover {
  color: var(--primary);
}

.social-inline svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* === Contact grid === */
#contact .grid-2 h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* === Request page === */
#request-page {
  padding: 8rem 1.5rem 5rem;
}

#request-page > .section-narrow {
  text-align: center;
  margin-bottom: 3rem;
}

#request-page h1,
#request-page > .section-narrow > h2 {
  font-size: 1.875rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

#request-page > .section-narrow > p {
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.8;
}

#request-form {
  max-width: 640px;
  margin: 0 auto;
}

#request-form .card {
  padding: 2.5rem;
}

/* === Form === */
form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(94, 116, 133, 0.15);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.consent input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.consent label {
  font-weight: 400;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

button[type="submit"] {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

.form-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

/* === Legal pages (impressum, datenschutz) === */
.legal-page {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

/* === Footer (centered stack) === */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-dot {
  color: var(--text-light);
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* === Cookie notice === */
#cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  z-index: 200;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-inner a {
  color: var(--primary-light);
  text-decoration: underline;
}

#cookie-ok {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

#cookie-ok:hover {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* === Responsive === */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .nav-links-desktop {
    display: none;
  }

  #hero {
    padding: 7rem 1.5rem 3rem;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero p {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: 3.75rem;
  }

  #hero p {
    font-size: 1.375rem;
  }

  h2 {
    font-size: 2.25rem;
  }
}
