/* Hägele Datenservice – haegeleonline.de Landingpage */
:root {
  --navy: #0e1f47;
  --navy-2: #142a5c;
  --navy-deep: #0a1733;
  --gold: #e6b422;
  --gold-light: #f5d98a;
  --gold-dark: #c8941a;
  --ink: #1d2433;
  --muted: #5b6577;
  --light: #eef2fb;
  --light-muted: #aab6d3;
  --bg-soft: #f5f7fc;
  --white: #ffffff;
  --ok: #1b7f4a;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(10, 23, 51, 0.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }
.center { text-align: center; }
.gold { color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #2a2105;
  box-shadow: 0 10px 24px rgba(230, 180, 34, .35);
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(230, 180, 34, .12); }
.btn-ghost {
  color: var(--light);
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark-outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-dark-outline:hover { background: rgba(14, 31, 71, .06); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 23, 51, .97);
  border-bottom: 1px solid rgba(230, 180, 34, .15);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .02em;
}
.brand-name span { color: var(--gold); }
.brand-tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--light-muted);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: .9rem;
}
.main-nav a {
  color: var(--light-muted);
  padding: 6px 4px;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--gold); }
.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Hero */
.hero {
  background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: var(--light);
  padding: 72px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; }
}
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 18px;
  color: var(--white);
}
.hero .lead {
  font-size: 1.08rem;
  color: var(--light-muted);
  margin-bottom: 24px;
  max-width: 54ch;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hero-trust {
  font-size: .88rem;
  color: var(--light-muted);
}
.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(230, 180, 34, .25);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.hero-card ul {
  list-style: none;
  font-size: .92rem;
  color: var(--light-muted);
}
.hero-card li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Sections */
.section { padding: 72px 0; }
.section-dark {
  background: var(--navy);
  color: var(--light);
}
.section-soft { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  text-align: center;
}
.section-title.light { color: var(--white); }
.section-sub {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--muted);
}
.section-sub.light { color: var(--light-muted); }

/* Pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
}
.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.pillar-card p {
  font-size: .92rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 18px;
}
.pillar-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

/* Service tiles */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-tile {
  background: var(--white);
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid rgba(14, 31, 71, .08);
  transition: border-color .15s, box-shadow .15s;
}
.service-tile:hover {
  border-color: rgba(230, 180, 34, .45);
  box-shadow: 0 8px 24px rgba(10, 23, 51, .08);
}
.service-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.service-tile p {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.service-tile a.more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.service-tile a.more:hover { text-decoration: underline; }

/* Detail blocks */
.detail-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.detail-block h2 {
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: 14px;
  scroll-margin-top: 90px;
}
.detail-block p, .detail-block li {
  color: var(--muted);
  font-size: .95rem;
}
.detail-block p { margin-bottom: 12px; }
.detail-block ul {
  margin: 12px 0 12px 20px;
}
.detail-block .cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  margin: 16px 0;
}
.data-table th, .data-table td {
  border: 1px solid rgba(14, 31, 71, .12);
  padding: 10px 12px;
  text-align: left;
}
.data-table th {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
}

/* Chips list */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.chip-list span {
  font-size: .78rem;
  padding: 5px 10px;
  background: var(--bg-soft);
  border-radius: 999px;
  color: var(--navy);
  border: 1px solid rgba(14, 31, 71, .1);
}

/* Product highlight */
.product-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.product-band:last-child { border-bottom: none; }
@media (min-width: 800px) {
  .product-band { grid-template-columns: auto 1fr; }
}
.product-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.product-band h2 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
}
.product-band p {
  color: var(--light-muted);
  margin-bottom: 16px;
  font-size: .95rem;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid rgba(14, 31, 71, .08);
}
.faq-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.faq-item p {
  font-size: .9rem;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(230, 180, 34, .2);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--light);
}
.contact-card h3 {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.contact-card a {
  color: var(--gold-light);
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { margin-bottom: 8px; font-size: .95rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--light-muted);
  padding: 40px 0 28px;
  font-size: .88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a:hover { color: var(--gold); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal-title { margin-bottom: 28px; color: var(--navy); }
.legal h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: var(--navy);
}
.legal p, .legal li {
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.legal-portrait {
  width: 160px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* Mobile nav */
@media (max-width: 900px) {
  .main-nav { width: 100%; order: 3; }
  .header-inner { justify-content: center; text-align: center; }
  .header-actions { justify-content: center; width: 100%; }
}

.notdienst-bar {
  background: linear-gradient(90deg, #8b1a1a, #b52a2a);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: .88rem;
  font-weight: 600;
}
.notdienst-bar a { color: var(--gold-light); text-decoration: underline; }
