/* ============================================================
   Degenhardt & Meister GbR – Landing Page
   Flat, clean design · Brand colors: #009fe3 / #706f6f
   ============================================================ */

:root {
  --blue: #009fe3;
  --blue-dark: #0083bd;
  --gray: #706f6f;
  --ink: #1f2933;
  --ink-soft: #52606d;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --bg-dark: #263340;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
  --shadow-lg: 0 18px 50px rgba(31, 41, 51, 0.10);
  --maxw: 1120px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -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 var(--pad);
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow-light { color: #8fd6f4; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
/* Frosted-Hintergrund als Pseudo-Element, damit die Sidebar (position:fixed)
   nicht durch backdrop-filter am Header eingesperrt wird. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(31, 41, 51, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.site-header.is-scrolled .brand {
  opacity: 1;
  pointer-events: auto;
}
.brand-logo {
  height: 62px;
  width: auto;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.brand { transition: opacity 0.35s ease; }
.site-header.is-scrolled .brand-logo {
  transform: translateY(0) scale(1);
}
.site-header.is-scrolled .brand:hover .brand-logo { transform: scale(1.04); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.nav-logo { display: none; }
.main-nav a {
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 0.96rem;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}
.main-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

.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 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 192px 0 100px;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(0, 159, 227, 0.10), transparent 60%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}
.hero-copy { max-width: 620px; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual (logo on the right) */
.hero-visual { display: flex; justify-content: flex-end; }
.hero-logo-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: radial-gradient(120% 120% at 80% 0%, rgba(0, 159, 227, 0.08), transparent 55%);
  pointer-events: none;
}
.hero-logo {
  width: 66%;
  height: auto;
  filter: drop-shadow(0 12px 26px rgba(0, 159, 227, 0.16));
}
/* Decorative background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-1 {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 159, 227, 0.22), transparent 70%);
  animation: drift 12s ease-in-out infinite;
}
.hero-blob-2 {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: -70px;
  background: radial-gradient(circle at 60% 40%, rgba(112, 111, 111, 0.14), transparent 70%);
  animation: drift 16s ease-in-out infinite reverse;
}
.hero-inner { position: relative; z-index: 1; }

/* ---------- Motion ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 24px) scale(1.06); }
}
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-1 { animation-delay: 0.08s; }
.reveal-2 { animation-delay: 0.16s; }
.reveal-3 { animation-delay: 0.24s; }
@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal (IntersectionObserver) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-logo-card, .hero-blob { animation: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
section[id] { scroll-margin-top: 92px; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-sub { font-size: 1.08rem; color: var(--ink-soft); margin: 0; }
.section-sub-light { color: #c6d6e2; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 159, 227, 0.10);
  color: var(--blue);
  margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 12px; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.about-text p { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 16px; }
.about-highlight {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 1.12rem !important;
  padding-left: 18px;
  border-left: 3px solid var(--blue);
  margin: 24px 0 28px !important;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.stat-label { display: block; color: var(--gray); font-size: 0.95rem; }

/* ---------- Downloads ---------- */
.download-list { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.download-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.download-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 159, 227, 0.10);
  color: var(--blue);
}
.download-icon svg { width: 26px; height: 26px; }
.download-meta { display: flex; flex-direction: column; flex: 1; }
.download-title { font-weight: 700; font-size: 1.1rem; }
.download-sub { color: var(--gray); font-size: 0.92rem; }
.download-action {
  flex: none;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */
.section-contact { background: var(--bg-dark); color: #fff; }
.section-contact .section-head h2 { color: #fff; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.contact-label { color: #93a4b3; font-size: 0.95rem; }
.contact-value { font-weight: 600; color: #fff; }
a.contact-value:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: #1b242e; color: #c6d0da; padding: 56px 0 30px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { max-width: 340px; }
.footer-logo {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p { margin: 0; color: #90a0ad; font-size: 0.96rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: #c6d0da; font-size: 0.96rem; transition: color 0.15s ease; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.9rem;
  color: #8091a0;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; position: relative; z-index: 75; }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 30px 28px 34px;
    box-shadow: 0 20px 60px rgba(31, 41, 51, 0.22);
    transform: translateX(-100%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 70;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-logo { display: block; height: 90px; width: auto; margin: 2px 0 22px; }
  .main-nav a { padding: 16px 2px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { text-align: center; margin-top: 18px; border-bottom: 0; }

  /* Backdrop hinter dem Sidebar-Menü */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 51, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.34s ease, visibility 0.34s ease;
    z-index: 55;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; justify-content: center; }
  .hero-logo-card { max-width: 320px; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding: 160px 0 68px; }
  .hero-logo-card { max-width: 260px; border-radius: 22px; }
  .brand-logo { height: 50px; }
  .about-stats { grid-template-columns: 1fr; }
  .download-item { flex-wrap: wrap; }
  .download-action { width: 100%; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

/* ============================================================
   Legal pages (Impressum / Datenschutz)
   ============================================================ */
.legal-hero {
  padding: 156px 0 56px;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(0, 159, 227, 0.10), transparent 60%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-bottom: 12px; }
.legal-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  color: var(--ink);
}
.legal-hero p { color: var(--ink-soft); margin: 12px 0 0; }

.legal-body { padding: 64px 0 88px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 48px 0 14px;
  padding-top: 8px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  margin: 30px 0 10px;
}
.legal-content p { color: var(--ink-soft); margin: 0 0 16px; }
.legal-content ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--blue); word-break: break-word; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--ink); font-weight: 600; }

.legal-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 8px 0 24px;
}
.legal-card p { margin: 0 0 4px; color: var(--ink); }
.legal-card .legal-card-label { color: var(--gray); font-size: 0.9rem; margin-bottom: 8px; }

.legal-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.legal-table th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.legal-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

.legal-updated {
  display: inline-block;
  margin-top: 8px;
  color: var(--gray);
  font-size: 0.92rem;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-weight: 600;
  color: var(--blue);
}
.legal-back:hover { gap: 12px; }

@media (max-width: 520px) {
  .legal-hero { padding: 132px 0 44px; }
  .legal-body { padding: 44px 0 64px; }
}
