/* =============================
   SpecterBlade Autokompass - style.css
   Creative Artistic + Brand-aligned UI
   Mobile-first • Flexbox-only • No CSS Grid/Columns
   ============================= */

/* ===== Reset & Normalize ===== */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: none; }

/* ===== CSS Variables (Brand + Artistic Accents) ===== */
:root {
  --brand-primary: #0A3D62; /* deep blue */
  --brand-secondary: #374151; /* cool gray */
  --brand-accent: #F5F7FA; /* light ui */
  --ink: #1F2937; /* body text */
  --muted: #6B7280; /* muted text */
  --surface: #FFFFFF;
  --surface-2: #FAFAFB;
  --line: #E5E7EB;
  /* Vibrant artistic helpers */
  --v1: #FF4D6D; /* rose */
  --v2: #00C2FF; /* cyan */
  --v3: #FFB703; /* amber */
  --v4: #7C3AED; /* purple */
  --shadow-soft: 0 8px 24px rgba(10, 61, 98, 0.12);
  --shadow-crisp: 0 12px 32px rgba(10, 61, 98, 0.16);
  --radius-s: 10px; 
  --radius-m: 16px;
  --radius-l: 22px;
  --focus: 0 0 0 3px rgba(0, 194, 255, 0.35);
}

/* ===== Base Typography ===== */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif; color: var(--brand-primary); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; color: var(--brand-secondary); }
.subheadline { color: var(--secondary-ink, var(--brand-secondary)); font-size: 16px; margin: 8px 0 16px; }
strong { color: var(--brand-secondary); }
p { margin: 0 0 14px; }

/* ===== Layout Primitives (Flexbox-only) ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Mandatory spacing patterns */
.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: sticky; top: 0; z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(10, 61, 98, 0.05);
}
header .container { flex-direction: column; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
.logo img { height: 38px; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--brand-secondary);
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.main-nav a:hover { color: var(--brand-primary); background: var(--brand-accent); transform: translateY(-1px); }
.header-cta { display: flex; gap: 10px; }

/* Mobile menu button */
.mobile-menu-toggle {
  position: fixed; right: 16px; top: 16px; z-index: 1100;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-crisp); background: #08405F; }
.mobile-menu-toggle:focus { box-shadow: var(--focus); }

/* Mobile off-canvas menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(10, 61, 98, 0.1);
  display: flex; align-items: stretch; justify-content: flex-end;
  pointer-events: none; opacity: 0; transition: opacity .25s ease;
}
.mobile-menu .mobile-nav {
  background: var(--surface);
  width: 84%; max-width: 360px; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-left: 6px solid var(--v2);
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu.open .mobile-nav { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; right: 8px; top: 8px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); color: var(--brand-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.mobile-nav a {
  padding: 14px 12px; border-radius: 12px;
  color: var(--brand-secondary); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line);
  transition: background-color .2s ease, transform .2s ease, border-color .2s ease;
}
.mobile-nav a:hover { background: var(--brand-accent); transform: translateX(2px); border-color: #CBD5E1; }

/* Show desktop nav on wider screens */
@media (min-width: 992px) {
  header .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ===== Hero Section (Artistic styling) ===== */
.hero { position: relative; background: var(--brand-accent); overflow: hidden; }
.hero .container { padding-top: 48px; padding-bottom: 40px; }
.hero h1 { color: var(--brand-primary); }
.hero .subheadline { color: var(--brand-secondary); }
/* Decorative shapes (purely decorative, behind content) */
.hero::before, .hero::after {
  content: ""; position: absolute; inset: auto; pointer-events: none; z-index: 0;
}
.hero::before {
  right: -80px; top: -40px; width: 220px; height: 220px; border-radius: 24px;
  background: var(--v2); opacity: .15; transform: rotate(15deg);
}
.hero::after {
  left: -60px; bottom: -60px; width: 280px; height: 160px; border-radius: 20px;
  background: var(--v1); opacity: .12; transform: rotate(-8deg);
}
.hero .content-wrapper { position: relative; z-index: 1; }

/* ===== Buttons ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap;
  padding: 12px 18px; border-radius: 14px; border: 2px solid var(--brand-primary);
  color: var(--brand-primary); background: #fff; font-weight: 700; text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: 0 2px 0 rgba(10,61,98,0.08);
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: var(--brand-accent); }
.button:focus { box-shadow: var(--focus); }

.button-primary {
  background: var(--brand-primary); color: #fff; border-color: var(--brand-primary);
  box-shadow: 0 6px 16px rgba(10,61,98,0.25);
}
.button-primary:hover { background: #093353; border-color: #093353; box-shadow: var(--shadow-crisp); }

/* ===== Common Components ===== */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { margin: 0; padding-left: 18px; }
.text-section li { margin-bottom: 8px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px dashed var(--line); background: #fff; color: var(--brand-secondary); }
.trust-badges img { width: 16px; height: 16px; }

.guarantee-note { padding: 12px 14px; border-left: 6px solid var(--v3); background: #FFF9EE; color: #8A5A00; border-radius: 12px; }

/* Service list & cards */
.service-list { display: flex; flex-wrap: wrap; gap: 20px; }
.service-card {
  flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px; box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-crisp); border-color: #D1D5DB; }
/* Artistic top bars alternating */
.service-card:nth-child(4n+1) { border-top: 6px solid var(--v1); }
.service-card:nth-child(4n+2) { border-top: 6px solid var(--v2); }
.service-card:nth-child(4n+3) { border-top: 6px solid var(--v3); }
.service-card:nth-child(4n+4) { border-top: 6px solid var(--v4); }

/* Testimonials - light background, dark text for readability */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 16px; }
.testimonial-card {
  flex: 1 1 300px; background: #ffffff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.testimonial-card p { margin: 0; }

/* Featured quote */
.featured-quote {
  display: flex; padding: 18px; border-radius: var(--radius-m);
  background: #fff; border: 2px dashed var(--v4); color: var(--brand-secondary);
}

/* Quote/star icons inside text */
.text-section img[alt="Bewertung"], .text-section img[alt="Telefon"], .text-section img[alt="E-Mail"], .text-section img[alt="Uhr"], .text-section img[alt="Adresse"], .text-section img[alt="E-Mail"], .text-section img[alt="Telefon"], .text-section img[alt="Uhr"] { width: 16px; height: 16px; display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ===== Generic sections ===== */
section { display: flex; }
section > .container { padding-top: 28px; padding-bottom: 28px; }

/* ===== Footer ===== */
footer { background: var(--brand-primary); color: #E9F2F8; margin-top: 32px; }
footer a { color: #E9F2F8; opacity: 0.95; }
footer a:hover { opacity: 1; }
footer .content-wrapper { gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links .quick-links, .footer-links .legal-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.newsletter-note { display: flex; }

/* ===== Forms / Inputs (generic future-proof) ===== */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--v2); box-shadow: var(--focus); }

/* ===== Utility / Extra Layout Classes ===== */
.card-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.align-center { display: flex; align-items: center; justify-content: center; }

/* ===== Responsive behavior ===== */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 768px) {
  .hero .container { padding-top: 64px; padding-bottom: 56px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}
@media (min-width: 1100px) {
  h1 { font-size: 48px; }
}

/* ===== Accessibility focus visible ===== */
:focus-visible { box-shadow: var(--focus); border-radius: 10px; }

/* ===== Artistic Micro-interactions ===== */
@keyframes floaty {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.button-primary:hover { animation: floaty .9s ease-in-out; }
.service-card:hover h3 { color: var(--brand-primary); }

/* ===== Content Specific Tweaks ===== */
ol.text-section { padding-left: 20px; }
blockquote { margin: 0; }

/* ===== Price/Package highlights (where applicable) ===== */
.service-card h3 { position: relative; padding-right: 8px; }
.service-card h3::after {
  content: ""; display: inline-flex; width: 24px; height: 4px; border-radius: 2px; margin-left: 6px;
  background: currentColor; opacity: .25; vertical-align: middle;
}

/* ===== Mobile spacing for link stacks ===== */
.mobile-nav a + a { margin-top: 4px; }

/* ===== Ensure min spacing between cards & sections ===== */
section + section { margin-top: 20px; }
.service-card, .testimonial-card, .card { margin-right: 0; }

/* ===== Contrast Assurance in testimonials/reviews ===== */
.testimonial-card, .testimonial-card * { color: #0B1220; }

/* ===== Cookies: Consent Banner & Modal ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
  display: flex; flex-direction: column; gap: 14px;
  background: #ffffff; border-top: 3px solid var(--v2);
  box-shadow: 0 -12px 24px rgba(10,61,98,0.12);
  padding: 16px; transform: translateY(100%); opacity: 0; transition: transform .35s ease, opacity .25s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { composes: button button-primary; }
.cookie-actions .btn-accept { display: inline-flex; padding: 10px 16px; border-radius: 12px; background: var(--brand-primary); color: #fff; border: 2px solid var(--brand-primary); }
.cookie-actions .btn-reject { display: inline-flex; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
.cookie-actions .btn-settings { display: inline-flex; padding: 10px 16px; border-radius: 12px; background: var(--brand-accent); color: var(--brand-secondary); border: 2px dashed var(--brand-secondary); }
.cookie-actions .btn-reject:hover { background: var(--brand-accent); }
.cookie-actions .btn-settings:hover { background: #EEF2F7; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 1400; background: rgba(17,24,39,0.45);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content {
  background: #fff; width: 92%; max-width: 700px; border-radius: 16px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: var(--shadow-crisp);
}
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cookie-category .desc { display: flex; flex-direction: column; gap: 4px; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ===== Legal pages readability ===== */
main p, main li { max-width: 75ch; }

/* ===== Desktop enhancements ===== */
@media (min-width: 992px) {
  .footer-links { justify-content: flex-start; }
  footer .content-wrapper { flex-direction: row; justify-content: space-between; }
}

/* ===== Alignment specifics ===== */
/* Adhere to flex alignment rules */
.content-wrapper, .cta-row, .service-list, .testimonial-list, .footer-links, .cookie-actions, .cookie-categories, .cookie-footer {
  align-items: flex-start;
}
.text-image-section { align-items: center; }

/* ===== Icon images inside buttons/links alignment ===== */
.button img { width: 16px; height: 16px; }

/* ===== Link states ===== */
a:hover { color: var(--brand-primary); }
a:focus-visible { box-shadow: var(--focus); border-radius: 8px; }

/* ===== Decorative taglines & details ===== */
.tagline, footer p strong { letter-spacing: 0.2px; }

/* ===== Ensure no overlap ===== */
section, .service-card, .testimonial-card, .card { margin-bottom: 20px; }

/* ===== Dark mode hook (optional, keeps brand) ===== */
@media (prefers-color-scheme: dark) {
  body { background: #0E1524; color: #E7ECF2; }
  header { background: #101A2A; border-bottom-color: rgba(255,255,255,0.08); }
  .main-nav a { color: #D1DAE6; }
  .main-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .hero { background: #0F1D31; }
  .service-card { background: #101A2A; border-color: rgba(255,255,255,0.08); }
  .testimonial-card { background: #101A2A; color: #E7ECF2; border-color: rgba(255,255,255,0.08); }
  .button { background: transparent; color: #E7ECF2; border-color: #2C3E55; }
  .button:hover { background: rgba(255,255,255,0.06); }
  .button-primary { background: var(--brand-primary); }
  .cookie-banner { background: #101A2A; color: #E7ECF2; }
  .cookie-modal .cookie-modal-content { background: #101A2A; color: #E7ECF2; border-color: rgba(255,255,255,0.08); }
}

/* ===== Desktop layout refinements (flex rows) ===== */
@media (min-width: 900px) {
  .footer-links { flex-direction: row; }
  .content-grid { justify-content: space-between; }
}

/* ===== Additional helper classes (safe) ===== */
.hide { display: none !important; }
.show { display: flex !important; }

/* ===== Page-specific small tweaks ===== */
/* Footer brand/contact wrappers may vary by page, keep them flexible */
.footer-brand, .footer-contact { display: flex; flex-direction: column; gap: 8px; }

/* ===== Visual separators for some sections ===== */
section:not(.hero) .content-wrapper { border-radius: 14px; }

/* Maintain required minimum gaps */
.content-wrapper > * + * { margin-top: 0; }

/* Keep nav links tappable */
.main-nav a, .mobile-nav a { min-height: 40px; }

/* ===== End of File ===== */