/* ============================================
   DIN-17024.com — Hauptstylesheet
   Ästhetik: Refined Legal Authority
   Fonts: Playfair Display + Source Sans 3
============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy:      #1a3a5c;
  --navy-dark: #0f2540;
  --blue:      #2d6a9f;
  --gold:      #c8a84b;
  --gold-lt:   #e8c96b;
  --cream:     #faf8f4;
  --gray-100:  #f5f5f0;
  --gray-200:  #e8e6e0;
  --gray-400:  #9a9590;
  --gray-700:  #4a4540;
  --white:     #ffffff;
  --shadow-sm: 0 2px 8px rgba(26,58,92,0.08);
  --shadow-md: 0 8px 32px rgba(26,58,92,0.14);
  --shadow-lg: 0 20px 60px rgba(26,58,92,0.18);
  --radius:    4px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--gray-700);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
a  { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.lead {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.8;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── HEADER / NAVIGATION ── */
header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img { height: 48px; }
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-text .brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--white); font-weight: 700; letter-spacing: 1px; }
.logo-text .brand span { color: var(--gold); }
.logo-text .tagline { font-size: 0.65rem; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-top: -2px; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--gold-lt); color: var(--navy-dark) !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4e78 100%);
  color: white;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,168,75,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.4);
  color: var(--gold-lt);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: white; margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold-lt); font-style: normal; }
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}
.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: white;
  color: white;
  background: rgba(255,255,255,0.08);
}
.btn-navy {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: white;
  transform: translateY(-2px);
}

/* ── STAT STRIP ── */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; }

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card:hover::before { transform: scaleY(1); }
.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: white;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 0.6rem; font-size: 1.1rem; }
.card p { font-size: 0.92rem; color: var(--gray-400); margin: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.3px;
}
.card-link:hover { color: var(--gold); }

/* ── SECTION HEADINGS ── */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--gray-400); }
.divider-gold {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  margin: 1.2rem auto;
  border-radius: 2px;
}

/* ── INFO BOXES ── */
.info-box {
  background: var(--gray-100);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box.navy {
  background: var(--navy-dark);
  border-left-color: var(--gold);
  color: rgba(255,255,255,0.85);
}
.info-box.navy h4 { color: var(--gold-lt); }
.info-box h4 { margin-bottom: 0.5rem; color: var(--navy); }

/* ── PROCESS STEPS ── */
.process-steps { counter-reset: step; }
.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}
.step-num {
  counter-increment: step;
  min-width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-num::after { content: counter(step); }
.step-content h4 { margin-bottom: 0.3rem; }
.step-content p { margin: 0; font-size: 0.92rem; color: var(--gray-400); }

/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}
th {
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-200); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-100); }
tr:hover td { background: #eef3f8; }

/* ── FAQ ACCORDION ── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  gap: 1rem;
}
.faq-question .chevron {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--transition);
  font-size: 1.2rem;
}
.faq-item.open .chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner { padding-bottom: 1.25rem; font-size: 0.95rem; color: var(--gray-400); line-height: 1.8; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200,168,75,0.1) 0%, transparent 70%);
}
.cta-banner h2 { color: white; margin-bottom: 1rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; position: relative; }
.cta-banner .btn { position: relative; }

/* ── BREADCRUMBS ── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
}
.breadcrumb ol { display: flex; list-style: none; gap: 0.5rem; font-size: 0.85rem; align-items: center; }
.breadcrumb li + li::before { content: '›'; color: var(--gray-400); }
.breadcrumb a { color: var(--blue); }
.breadcrumb .current { color: var(--gray-400); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: white;
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: white; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); margin: 0; }

/* ── TWO-COLUMN LAYOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── SIDEBAR ── */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.sidebar-nav { list-style: none; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--gray-700);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.sidebar-nav a:hover { color: var(--navy); padding-left: 4px; }
.sidebar-nav a.active { color: var(--navy); font-weight: 600; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.5rem;
}
.footer-brand .brand-name span { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 1rem; }
footer h5 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 1rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.5rem; }
footer ul a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--gold); }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4e78 100%);
  color: white;
  padding: 2.5rem;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.highlight-box::before {
  content: '§';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}
.highlight-box h3 { color: var(--gold-lt); margin-bottom: 0.75rem; }
.highlight-box p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.95rem; }

/* ── CONTACT FORM ── */
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  background: white;
  transition: border-color var(--transition);
  color: var(--gray-700);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45,106,159,0.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; }
  .nav-links.open a { padding: 0.75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-toggle { display: block; }
  header nav { position: relative; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse { direction: ltr; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 4rem 0; }
  .section { padding: 3rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  h1 { font-size: 1.8rem; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.bg-cream { background: var(--cream); }
.bg-white { background: white; }
.bg-navy { background: var(--navy-dark); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.tag {
  display: inline-block;
  background: rgba(45,106,159,0.1);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
