/* ═══════════════════════════════════════
   dasz.at e.U. — Brand palette (Styleguide)
   Pantone 2965C  #003c64  (Dunkelblau)
   Pantone 1805C  #AA272F  (Rot)
   Pantone 431C   #707f87  (Grau)
   ═══════════════════════════════════════ */
:root {
  --primary-color: #003c64;
  --primary-hover: #00538b;
  --accent-color: #AA272F;
  --gray-color: #707f87;
  --secondary-color: #1d2329;
  --light-bg: #f4f6f8;
  --text-primary: #1d2329;
  --text-secondary: #545d63;
  --border-color: #e2e8ec;
  --gradient-primary: linear-gradient(135deg, #003c64, #2c6a96);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--primary-color); }

/* NAVIGATION */
.navbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
  transition: all 0.35s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar.scrolled {
  padding: 0.6rem 0;
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.navbar-brand { padding: 0; }
.navbar-brand img {
  height: 46px;
  transition: all 0.35s ease;
}
.navbar.scrolled .navbar-brand img { height: 38px; }
.nav-link {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }
.nav-link:hover { color: var(--primary-color) !important; }
.nav-link.active { color: var(--primary-color) !important; font-weight: 500; }

/* HERO / VISITENKARTE */
.hero-section {
  background: linear-gradient(135deg, #00263f 0%, #003c64 45%, #0a4e7e 100%);
  color: white;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(112, 127, 135, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(170, 39, 47, 0.16) 0%, transparent 55%);
  pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 {
  color: white;
  font-size: 3.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero-section .lead {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}
.hero-section--compact { padding: 4.5rem 2rem; }
.hero-section--minimal { padding: 4rem 2rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  letter-spacing: 0.5px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Portrait in hero */
.hero-portrait {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 340px;
  margin: 0 auto;
}
.hero-portrait img { width: 100%; height: auto; display: block; }

/* Blockquote / Leitsatz */
.lead-quote {
  border-left: 4px solid var(--accent-color);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0 0;
  font-size: 1.45rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

/* BUTTONS */
.btn-hero-primary {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(170, 39, 47, 0.3);
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(170, 39, 47, 0.4);
  color: white;
  background: #c12e37;
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.9rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  transform: translateY(-3px);
}
.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* SECTION HELPERS */
.section-spacing { padding-top: 5rem; padding-bottom: 5rem; }
.bg-light-custom { background-color: var(--light-bg); }
.section-label {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.section-heading { font-size: 2.25rem; font-weight: 700; }
.text-secondary { color: var(--text-secondary) !important; }

/* INFO / CARD BOXES */
.info-box {
  background: var(--light-bg);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--primary-color);
  transition: all 0.35s ease;
}
.info-box:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}
.info-box h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--primary-color); }

.contact-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}
.contact-row:last-child { border-bottom: none; }
.contact-row:hover { color: var(--primary-color); }
.contact-row svg { flex-shrink: 0; color: var(--accent-color); }

/* PARTNER LINKS */
.partner-link {
  display: block;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  text-decoration: none;
  transition: all 0.35s ease;
}
.partner-link:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 60, 100, 0.3);
}
.partner-link h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 0.4rem; }
.partner-link p { margin-bottom: 0; font-size: 0.95rem; }

/* FOOTER */
main { flex: 1; }
.footer {
  background: #fafbfc;
  padding: 3.5rem 0 1.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
.footer-brand img { height: 42px; margin-bottom: 1rem; }
.footer-description { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-meta svg { color: var(--accent-color); }
.footer h6 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
.footer-links a:hover { color: var(--primary-color); }
.footer-contact { color: var(--text-secondary); font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  margin-top: 2rem;
}
.footer-bottom p { color: var(--text-secondary); font-size: 0.85rem; margin: 0; }

/* LEGAL / TEXT PAGES */
.legal-page {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.legal-page h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}
.legal-page h2:first-child { margin-top: 0; }
.legal-page h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-page p, .legal-page li { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.legal-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.35rem; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal-page td { padding: 0.65rem 0; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.legal-page td:first-child { font-weight: 600; color: var(--text-primary); width: 220px; padding-right: 1.5rem; }
.legal-page .company-name { color: var(--primary-color); font-size: 1.3rem; font-weight: 700; }
.legal-page a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.legal-page a:hover { text-decoration: underline; }

.error-code { font-size: 6rem; margin-bottom: 0.5rem; color: white; }

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  text-decoration: none;
  transition: top 0.3s ease;
}
.skip-link:focus { top: 0; color: white; }
*:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.5rem; }
  .section-heading { font-size: 2rem; }
}
@media (max-width: 768px) {
  .hero-section { padding: 4rem 1.5rem; }
  .hero-section h1 { font-size: 2.1rem; }
  .hero-cta { justify-content: center; }
  h2 { font-size: 1.75rem; }
  .section-spacing { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .legal-page { padding: 2rem 1.5rem; }
  .legal-page td:first-child { width: 150px; }
  .footer { text-align: center; }
  .footer-bottom .text-md-end { text-align: center !important; }
  .lead-quote { font-size: 1.2rem; }
}
@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.8rem; }
  .lead-quote { font-size: 1.1rem; }
  .legal-page table, .legal-page tbody, .legal-page tr, .legal-page td { display: block; }
  .legal-page td:first-child { width: auto; padding-right: 0; padding-bottom: 0.25rem; border-bottom: none; }
  .legal-page td:last-child { padding-top: 0; padding-bottom: 0.75rem; }
  .error-code { font-size: 4rem; }
  .navbar-brand img { height: 38px; }
}

/* MOBILE MENU */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
  .navbar-collapse .nav-link { min-height: 44px; display: flex; align-items: center; }
  .navbar-collapse .nav-link::after { display: none; }
}

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