/* ============================================================
   Datenfürsorge.de – Stylesheet
   Farbwelt abgeleitet aus dem Logo (Stahlblau #2f628e)
   ============================================================ */

/* Lokal gehostete Schrift (DSGVO-konform, keine Google-CDN-Anfrage) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800.woff2') format('woff2');
}

:root {
  --blue-900: #173551;
  --blue-800: #1f4a6e;
  --blue-700: #244c6e;
  --blue-600: #2f628e;   /* Logo-Blau */
  --blue-500: #3a74a5;
  --blue-400: #5a90bd;
  --blue-100: #dceaf5;
  --blue-50:  #eef4fa;

  --ink:      #1c2733;
  --body:     #475563;
  --muted:    #7a8794;
  --line:     #e4eaf0;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fb;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(31, 74, 110, 0.08);
  --shadow-lg:0 24px 60px rgba(31, 74, 110, 0.14);
  --maxw:     1140px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.accent { color: var(--blue-600); }

.lead { font-size: 1.08rem; color: var(--body); margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 98, 142, 0.25);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 98, 142, 0.32); }
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-ghost:hover { border-color: var(--blue-600); background: var(--blue-50); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  min-height: 72px;
  padding: 6px 0;
}
.logo img { height: 58px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav .nav-cta {
  background: var(--blue-600);
  color: #fff;
  margin-left: 4px;
}
.nav .nav-cta:hover { background: var(--blue-700); color: #fff; }
.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  margin-left: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--blue-600);
  background: #fff;
  color: var(--blue-700);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.nav-login:hover { background: var(--blue-50); }
.nav-login svg { width: 15px; height: 15px; }

/* ---------- Modal (Wartungs-Popup) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 35, 50, 0.55); }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 420px;
  width: 100%;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(31, 74, 110, 0.28);
}
.modal-card .m-ic {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.modal-card .m-ic svg { width: 28px; height: 28px; }
.modal-card h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--ink); }
.modal-card p { color: var(--body); margin-bottom: 22px; }
.modal-card .btn { width: 100%; justify-content: center; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
}
.modal-close:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(58, 116, 165, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #ffffff 70%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 84px 24px 96px;
}
.hero-content h1 { margin-bottom: 22px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero-visual { display: flex; justify-content: center; }
.hero-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-cta { text-align: center; margin-top: 48px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
  margin-bottom: 20px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; color: var(--body); }

/* ---------- Cloud ---------- */
.section-cloud { background: var(--bg-soft); }
.cloud-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.cloud-visual { display: flex; justify-content: center; }
.cloud-mock {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, var(--blue-700), var(--blue-600));
  color: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.cloud-mock > svg { width: 64px; height: 64px; margin-bottom: 22px; color: #fff; opacity: .95; }
.cloud-files { list-style: none; display: grid; gap: 12px; }
.cloud-files li {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 500;
  font-size: 0.96rem;
}
.check-list { list-style: none; margin: 8px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--body); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.check-list li::after {
  content: "";
  position: absolute; left: 7px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ---------- Quote ---------- */
.section-quote {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-600));
  color: #fff;
}
.quote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote blockquote {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 40px;
}
.quote blockquote::before {
  content: "“";
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  font-size: 7rem;
  line-height: 1;
  opacity: 0.25;
  font-family: Georgia, serif;
}

/* ---------- Clients ---------- */
/* Endlos-Logo-Slider (Marquee) */
.logo-slider {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}
.logo-slider:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.logo-item img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter .3s ease, opacity .3s ease;
}
.logo-item img:hover { filter: grayscale(0); opacity: 1; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}
.clients-more {
  text-align: center;
  margin-top: 32px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- Training ---------- */
.section-training { background: var(--bg-soft); }
.training-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.training-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
}
.contact-info h3 { color: #fff; margin-bottom: 24px; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list a:hover { text-decoration: underline; }
.ci-icon {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
}
.ci-icon svg { width: 20px; height: 20px; }
.contact-info address { font-style: normal; line-height: 1.7; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.req { color: #d9534f; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 98, 142, 0.12);
}
.form-field textarea { resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c7d4e0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-brand img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-bottom: 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
}
.footer-brand p { font-size: 0.95rem; max-width: 340px; color: #9fb2c4; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.03em; }
.footer-col a, .footer-col span { display: block; margin-bottom: 11px; font-size: 0.95rem; color: #9fb2c4; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px; padding-bottom: 20px;
  font-size: 0.85rem;
  color: #7e92a6;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Legal / Rechtstexte ---------- */
.legal { padding: 64px 0 88px; }
.legal .container { max-width: 820px; }
.legal-head { margin-bottom: 36px; }
.legal-head .eyebrow { margin-bottom: 10px; }
.legal h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 38px 0 12px; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--body); font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--blue-600); }
.legal a:hover { text-decoration: underline; }
/* Buttons behalten ihre eigene Schriftfarbe (nicht die Legal-Link-Farbe) */
.legal a.btn-primary, .legal a.btn-primary:hover { color: #fff; text-decoration: none; }
.legal a.btn-ghost, .legal a.btn-ghost:hover { color: var(--blue-700); text-decoration: none; }
.legal address { font-style: normal; line-height: 1.8; margin-bottom: 12px; }
.legal .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--blue-700); margin-bottom: 28px;
}
.legal .updated { font-size: 0.88rem; color: var(--muted); margin-top: 40px; }

/* ---------- Download-Karte ---------- */
.download-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  flex-wrap: wrap;
}
.download-icon {
  flex: none;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  color: #fff;
}
.download-icon svg { width: 28px; height: 28px; }
.download-text { flex: 1 1 240px; }
.download-text h3 { margin-bottom: 4px; }
.download-text p { font-size: 0.95rem; color: var(--body); margin: 0; }

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 26px;
  border: 1px solid transparent;
}
.alert p { margin: 6px 0 0; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-success { background: #eaf7ef; border-color: #bfe6cd; color: #1d6b3c; }
.alert-error   { background: #fdeeee; border-color: #f3c9c9; color: #a8332f; }

/* ---------- Meldeformular-Extras ---------- */
.form-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 26px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.report-form .form-group-title:first-of-type { margin-top: 4px; }
.form-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-field select:focus {
  outline: none;
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 98, 142, 0.12);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--body);
  cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.consent { margin: 8px 0 24px; }
.consent a { color: var(--blue-600); text-decoration: underline; }

/* ---------- 404-Seite ---------- */
.error-page {
  text-align: center;
  padding: 100px 0 120px;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(58, 116, 165, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-50) 0%, #ffffff 70%);
}
.error-code {
  display: block;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue-600);
}
.error-page h1 { margin: 8px 0 14px; }
.error-page p { max-width: 520px; margin: 0 auto; color: var(--body); font-size: 1.05rem; }
.error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 72px; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 320px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cloud-inner,
  .training-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cloud-visual { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 16px; font-size: 1rem; }
  .nav .nav-cta { margin-left: 0; text-align: center; }
  .nav-login { width: 100%; justify-content: center; margin-left: 0; padding: 13px 16px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .logo-item { padding: 0 26px; }
  .logo-item img { height: 48px; max-width: 150px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
}
