/* =====================================
   Reset & Base
   Monochrome Sophisticated Theme
   ===================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
:root {
  /* Monochrome palette */
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-elev: #f2f2f3;
  --text: #111111;
  --text-soft: #555555;
  --muted: #777777;
  --border: #e6e6e8;
  --border-strong: #1b1b1c;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  /* Brand colors used as subtle accents only */
  --brand: #123A5B;
  --brand-2: #2E7D6B;
  --accent: #F5F7FA;
  /* Typography scale */
  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-40: 40px;
  --fs-48: 48px;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; display: flex; flex-direction: column; }

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #0b0b0c;
  margin: 0 0 12px 0;
  line-height: 1.25;
}
.h1, h1 { font-size: var(--fs-40); letter-spacing: -0.3px; }
.h2, h2 { font-size: var(--fs-32); letter-spacing: -0.2px; }
.h3, h3 { font-size: var(--fs-24); }

p { margin: 0 0 14px 0; color: var(--text); }
small, .small { font-size: var(--fs-14); color: var(--muted); }
strong { font-weight: 700; }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* Links with elegant underline */
a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: #000; color: #000; }
a:focus-visible, button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18,58,91,0.35); border-radius: 6px; }

/* =====================================
   Layout Containers (Flex Only)
   ===================================== */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* =====================================
   Header & Navigation
   ===================================== */
header { position: relative; background: #ffffff; border-bottom: 1px solid var(--border); }
header .content-wrapper { padding: 14px 0; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #0b0b0c; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: var(--fs-18); letter-spacing: 0.2px; }
.tagline { color: var(--muted); font-size: var(--fs-14); display: flex; align-items: center; }
.quick-contact { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: var(--fs-14); }
.quick-contact img { width: 18px; height: 18px; opacity: 0.8; }
.quick-contact a { color: var(--text); text-decoration: underline; }

.main-nav { display: none; align-items: center; flex-wrap: wrap; gap: 16px; padding: 10px 0 0; }
.main-nav a { color: #222; padding: 10px 12px; border-radius: 8px; text-decoration: none; letter-spacing: 0.25px; }
.main-nav a:hover { background: var(--bg-elev); color: #000; }
.main-nav a.cta { background: #111111; color: #fff; border: 1px solid #111; text-transform: none; font-weight: 600; box-shadow: var(--shadow); }
.main-nav a.cta:hover { background: #000; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #111; cursor: pointer; margin-left: auto; }
.mobile-menu-toggle:hover { background: var(--bg-elev); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: #0f0f10; color: #fff; transform: translateX(100%); transition: transform 300ms ease; z-index: 9999; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { text-decoration: none; color: #fff; font-size: var(--fs-18); padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav a:hover { background: rgba(255,255,255,0.06); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; justify-content: flex-start; }
}

/* =====================================
   Hero Sections
   ===================================== */
.hero { background: #0f0f10; color: #ffffff; padding: 60px 0; border-bottom: 1px solid #1c1c1d; }
.hero .content-wrapper { gap: 16px; }
.hero h1 { color: #ffffff; font-size: var(--fs-40); }
.hero p { color: #e9e9ea; }
.hero .trust-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #d8d8d9; font-size: var(--fs-14); }
.trust-badges .badge { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #2a2a2b; border-radius: var(--radius-sm); background: #141416; }
.trust-badges .badge img { width: 16px; height: 16px; filter: invert(1) grayscale(1); }

.utility-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #cfcfd2; font-size: var(--fs-14); }
.language-switcher { display: flex; align-items: center; gap: 8px; }
.key-contact { display: flex; align-items: center; gap: 8px; }
.key-contact img { width: 16px; height: 16px; filter: invert(1) grayscale(1); }

/* =====================================
   Buttons & CTAs
   ===================================== */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 1px solid #111; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #111; border-color: #111; }
.btn-secondary:hover { background: #111; color: #fff; }

.phone-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.phone-cta img { width: 18px; height: 18px; filter: grayscale(1); }

/* =====================================
   Feature grids, cards, sections
   ===================================== */
.feature-grid, .cards { display: flex; flex-wrap: wrap; gap: 20px; }
.text-section { background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); flex: 1 1 260px; min-width: 240px; }
.text-section h3 { margin-bottom: 4px; }
.text-section a { align-self: flex-start; font-weight: 600; }

.countries-strip { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-elev); color: var(--text-soft); }

.banner { display: flex; align-items: center; padding: 16px; border: 1px solid #111; background: #fff; border-left: 6px solid #111; border-radius: var(--radius); font-weight: 600; }

/* Steps timeline (no absolute positioning) */
.steps-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.steps-timeline li { display: flex; align-items: flex-start; gap: 12px; background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.steps-timeline li strong { font-family: Georgia, 'Times New Roman', serif; }

.documents-needed-list, .values-list { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; }

/* Testimonial cards (light background, dark text for contrast) */
.testimonial-card { background: #f8f8f9; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.testimonial-card p { color: #111; margin: 0; }
.testimonial-card .meta { color: #444; font-size: var(--fs-14); }

/* Lists & content helpers */
.contact-list { display: flex; flex-direction: column; gap: 8px; padding-left: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.contact-list img { width: 18px; height: 18px; filter: grayscale(1); }

.map-placeholder { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-elev); color: var(--muted); font-weight: 600; }

/* =====================================
   Footer
   ===================================== */
footer { background: #111; color: #e9e9ea; padding: 40px 0; border-top: 1px solid #1d1d1e; }
footer a { color: #fff; text-decoration: underline; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 40px; height: 40px; filter: invert(1) grayscale(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { background: rgba(255,255,255,0.06); padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.footer-nav a:hover { background: rgba(255,255,255,0.12); }
.newsletter, .contact-info { display: flex; flex-direction: column; gap: 8px; }
.newsletter h3 { color: #fff; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-brand { flex: 1 1 33%; }
  .footer-nav { flex: 1 1 33%; }
  .newsletter, .contact-info { flex: 1 1 33%; }
}

/* =====================================
   Typography refinements
   ===================================== */
.lead { font-size: var(--fs-18); color: var(--text-soft); }
blockquote { margin: 0; padding: 16px 16px 16px 18px; border-left: 4px solid #111; background: #fafafa; border-radius: 8px; }

/* =====================================
   Mobile-first responsive adjustments
   ===================================== */
/* Base is mobile. Enhance on wider screens */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .cta-row { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .cta-row { flex-direction: column; align-items: stretch; }
}

/* =====================================
   Tables (general safety, not used heavily)
   ===================================== */
table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
th { background: var(--bg-elev); }

/* =====================================
   Page-specific subtle elements
   ===================================== */
.hero .countries-strip { background: rgba(255,255,255,0.06); color: #ececee; border: 1px solid #2a2a2b; }

/* Ratgeber categories grid behaves like feature-grid */

/* =====================================
   Header layout refinements on desktop
   ===================================== */
@media (min-width: 992px) {
  .topbar { gap: 18px; }
  .tagline { order: 2; flex: 1 1 auto; justify-content: center; }
  .quick-contact { order: 3; }
  .brand { order: 1; }
}

/* =====================================
   Hover states & micro-interactions
   ===================================== */
.text-section:hover { border-color: #111; transform: translateY(-1px); transition: transform 160ms ease, border-color 160ms ease; }
.testimonial-card:hover { transform: translateY(-1px); transition: transform 160ms ease; }
.contact-list li:hover { background: var(--bg-elev); }

/* =====================================
   Accessibility helpers
   ===================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap; }

/* =====================================
   Cookie Consent Banner & Modal
   ===================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998; background: #0f0f10; color: #ffffff; border-top: 1px solid #1c1c1d; box-shadow: 0 -10px 24px rgba(0,0,0,0.12); }
.cookie-banner .inner { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; max-width: 1120px; margin: 0 auto; }
.cookie-banner p { margin: 0; color: #e5e5e6; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; cursor: pointer; }
.cookie-btn:hover { background: rgba(255,255,255,0.08); }
.cookie-accept { background: #ffffff; color: #111; border-color: #ffffff; font-weight: 700; }
.cookie-accept:hover { background: #f2f2f2; }
.cookie-reject { background: transparent; }
.cookie-settings { background: transparent; }
.cookie-banner.hidden { transform: translateY(100%); transition: transform 260ms ease; }

.cookie-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.open { display: flex; }
.cookie-modal .panel { display: flex; flex-direction: column; gap: 14px; background: #fff; color: #111; width: 100%; max-width: 680px; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 18px; }
.cookie-modal h3 { margin-bottom: 4px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cookie-row:last-child { border-bottom: 0; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-modal .panel .actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; }

/* =====================================
   Forms (generic)
   ===================================== */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #111; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 0 3px rgba(18,58,91,0.2); border-color: var(--brand); }
label { font-weight: 600; margin-bottom: 6px; display: inline-flex; }

/* =====================================
   Cards and generic surfaces
   ===================================== */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-container .card { flex: 1 1 260px; min-width: 240px; }

/* =====================================
   Specific content tweaks per pages (light weight)
   ===================================== */
/* Index – make features and cards breathe */
.feature-grid .text-section, .cards .text-section { min-height: 160px; }

/* Dienstleitungen banner emphasis already covered by .banner */

/* Thank you page confirmation icon */
.confirmation-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 999px; background: #1a1a1b; color: #fff; font-weight: 700; box-shadow: var(--shadow); }

/* =====================================
   Alignment safety and gaps
   ===================================== */
section .content-wrapper > * + * { margin-top: 0; }
.feature-grid > *, .cards > *, .content-grid > * { margin: 0; }

/* Ensure no overlapping spacing */
.content-wrapper { padding-top: 0; }

/* =====================================
   Desktop layout enhancements
   ===================================== */
@media (min-width: 992px) {
  .feature-grid, .cards { justify-content: space-between; }
}

/* =====================================
   Print hygiene
   ===================================== */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
