/* ============================================
   BLUEPRINT/ARCHITECTURAL THEME - DACH-CHECK
   Font: Archivo (headings) + Lato (body)
   Primary: #0369a1 | Accent: #f97316
   Dark: #0c4a6e | Light: #f0f9ff | Grid: #e0f2fe
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0369a1;
  --accent: #f97316;
  --dark: #0c4a6e;
  --light: #f0f9ff;
  --grid: #e0f2fe;
  --white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border-dash: 2px dashed var(--grid);
  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Lato', sans-serif;
  --shadow: 0 4px 24px rgba(3, 105, 161, 0.10);
  --shadow-lg: 0 8px 40px rgba(3, 105, 161, 0.15);
  --radius: 4px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

/* --- Blueprint Grid Overlay --- */
.blueprint-bg {
  position: relative;
}
.blueprint-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(3, 105, 161, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 105, 161, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }

p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Section Header --- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-light); font-size: 1.1rem; }

/* Blueprint label */
.blueprint-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.8rem;
  border: 1px dashed var(--primary);
  background: rgba(3, 105, 161, 0.05);
}

.blueprint-label svg { width: 14px; height: 14px; fill: currentColor; }

/* Technical line decoration */
.tech-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 1rem auto;
  position: relative;
}
.tech-line::before, .tech-line::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  background: var(--white);
}
.tech-line::before { left: -4px; }
.tech-line::after { right: -4px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  border-style: dashed;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  border-style: solid;
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 74, 110, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(224, 242, 254, 0.2);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(12, 74, 110, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  transition: all var(--transition);
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 70%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
}
.nav-cta:hover { background: #ea580c !important; }
.nav-cta::after { display: none !important; }

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

/* --- Hero --- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(12,74,110,0.85) 0%, rgba(7,89,133,0.85) 50%, rgba(3,105,161,0.85) 100%), url('../images/hero.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -5%;
  width: 500px;
  height: 500px;
  border: 2px dashed rgba(249, 115, 22, 0.15);
  border-radius: 50%;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; }

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(224, 242, 254, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* --- Measurement marker --- */
.measure-marker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.measure-line {
  flex: 1;
  height: 1px;
  border-top: var(--border-dash);
  position: relative;
}

.measure-line::before, .measure-line::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 1px;
  height: 10px;
  background: var(--primary);
}
.measure-line::before { left: 0; }
.measure-line::after { right: 0; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--grid);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--light);
  border: 2px dashed var(--grid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }

/* Number card variation */
.card-numbered {
  padding-left: 4.5rem;
}

.card-number {
  position: absolute;
  left: 1.5rem;
  top: 2rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--grid);
  line-height: 1;
}
.card-numbered:hover .card-number { color: var(--accent); }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

/* --- 5-Punkte Check Section --- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.check-card {
  background: var(--white);
  border: 1px solid var(--grid);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}

.check-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.check-number {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-card .check-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.check-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.check-card p { color: var(--text-light); font-size: 0.92rem; }

.check-card .check-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: var(--border-dash);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-heading);
}

/* --- Roof Type Comparison --- */
.roof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.roof-card {
  background: var(--white);
  border: 2px solid var(--grid);
  overflow: hidden;
  transition: all var(--transition);
}

.roof-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.roof-card-header {
  background: var(--dark);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roof-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
}

.roof-card-header .roof-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.roof-card-header h3 {
  color: var(--white);
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
}

.roof-card-body { padding: 1.5rem; }

.roof-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: var(--border-dash);
}

.roof-rating-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.roof-rating-bar {
  flex: 1;
  height: 8px;
  background: var(--grid);
  position: relative;
  overflow: hidden;
}

.roof-rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
}

.roof-rating-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.roof-features { list-style: none; }
.roof-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.roof-features li::before {
  content: '\2714';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

/* --- Compass / Orientation Section --- */
.compass-section { background: var(--dark); color: var(--white); position: relative; overflow: hidden; }
.compass-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.04) 1px, transparent 1px);
  background-size: 25px 25px;
}

.compass-section .section-header h2 { color: var(--white); }
.compass-section .section-header p { color: rgba(255, 255, 255, 0.7); }

.compass-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.compass-visual {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

.compass-ring {
  width: 100%;
  height: 100%;
  border: 3px dashed rgba(224, 242, 254, 0.3);
  border-radius: 50%;
  position: relative;
}

.compass-ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(224, 242, 254, 0.15);
  border-radius: 50%;
}

.compass-ring::after {
  content: '';
  position: absolute;
  inset: 50px;
  border: 1px dashed rgba(224, 242, 254, 0.1);
  border-radius: 50%;
}

.compass-point {
  position: absolute;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: all var(--transition);
  cursor: default;
}

.compass-point:hover { transform: scale(1.1); }

.compass-point .direction {
  font-size: 1rem;
  color: var(--white);
  display: block;
  margin-bottom: 0.2rem;
}

.compass-point .yield {
  font-size: 1.5rem;
  color: var(--accent);
  display: block;
}

.compass-point .yield-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Cardinal positions */
.cp-s { bottom: -60px; left: 50%; transform: translateX(-50%); }
.cp-n { top: -60px; left: 50%; transform: translateX(-50%); }
.cp-e { right: -80px; top: 50%; transform: translateY(-50%); }
.cp-w { left: -80px; top: 50%; transform: translateY(-50%); }
.cp-se { bottom: 10px; right: -20px; }
.cp-sw { bottom: 10px; left: -20px; }
.cp-ne { top: 10px; right: -20px; }
.cp-nw { top: 10px; left: -20px; }

.compass-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.orientation-info { position: relative; z-index: 1; }
.orientation-info h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.3rem; }
.orientation-info p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.5rem; }

.orientation-list { list-style: none; }
.orientation-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(224, 242, 254, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.orientation-list .dir-badge {
  width: 48px;
  min-width: 48px;
  height: 32px;
  background: rgba(3, 105, 161, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px dashed rgba(249, 115, 22, 0.3);
}

.orientation-list .dir-yield {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  white-space: nowrap;
}

/* --- Facts Section --- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.fact-card {
  background: var(--white);
  border: 1px solid var(--grid);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  transition: all var(--transition);
  position: relative;
}

.fact-card:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.fact-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.fact-card h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.fact-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* --- Blog Preview --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--grid);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

.blog-card-image .blog-icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.blog-card-image .blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 1;
}

.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: var(--border-dash);
}

.blog-card-meta a {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--grid);
  margin-bottom: 0.75rem;
  background: var(--white);
  transition: all var(--transition);
}

.faq-item:hover { border-color: var(--primary); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  gap: 1rem;
  transition: all var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  font-size: 1.2rem;
  color: var(--primary);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
  color: var(--white);
  border-style: solid;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: var(--border-dash);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin-bottom: 2rem; }

/* --- Footer --- */
.footer {
  background: #082f49;
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer p { font-size: 0.9rem; line-height: 1.6; }
.footer-brand { font-size: 0.9rem; }
.footer-brand .nav-logo { margin-bottom: 1rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover { color: var(--accent); transform: translateX(3px); }
.footer-links a::before { content: '\203A'; color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px dashed rgba(224, 242, 254, 0.1);
  text-align: center;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Blog Page --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(224, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 25px 25px;
}

.page-hero h1 { color: var(--white); position: relative; z-index: 1; }
.page-hero p { color: rgba(255, 255, 255, 0.8); position: relative; z-index: 1; margin-top: 1rem; font-size: 1.15rem; }

.page-hero .breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.page-hero .breadcrumb a:hover { color: var(--accent); }

/* Blog list page */
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
  padding: 3rem 0 5rem;
}

/* --- Blog Post Article --- */
.article-container { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.article-container h1 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: var(--border-dash);
}

.article-meta span { display: flex; align-items: center; gap: 0.3rem; }

.article-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: var(--border-dash);
}

.article-container h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }

.article-container p { margin-bottom: 1rem; font-size: 1.05rem; }
.article-container ul, .article-container ol { margin: 1rem 0; padding-left: 1.5rem; }
.article-container li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-container blockquote {
  border-left: 4px solid var(--accent);
  background: var(--light);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--dark);
}

/* Info box */
.info-box {
  background: var(--light);
  border: 2px dashed var(--grid);
  border-left: 4px solid var(--primary);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.info-box h4 { color: var(--primary); margin-bottom: 0.5rem; }
.info-box p { margin-bottom: 0; font-size: 0.95rem; }

/* Tip box */
.tip-box {
  background: #fffbeb;
  border: 2px dashed #fde68a;
  border-left: 4px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}
.tip-box h4 { color: var(--accent); margin-bottom: 0.5rem; }

/* Table */
.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.article-container table th {
  background: var(--dark);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
}

.article-container table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--grid);
}

.article-container table tr:nth-child(even) { background: var(--light); }
.article-container table tr:hover { background: var(--grid); }

/* Author box */
.author-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--light);
  border: 2px dashed var(--grid);
  margin-top: 3rem;
}

.author-avatar {
  width: 72px;
  height: 72px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.author-info h4 { margin-bottom: 0.25rem; }
.author-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* Related posts */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: var(--border-dash); }
.related-posts h3 { margin-bottom: 1.5rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.related-card {
  padding: 1.25rem;
  border: 1px solid var(--grid);
  background: var(--white);
  transition: all var(--transition);
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.related-card h4 { font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.4; }
.related-card p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0; }

/* --- Table of Contents --- */
.toc {
  background: var(--light);
  border: 2px dashed var(--grid);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.toc h4 {
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
}

.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.toc a { color: var(--primary); }
.toc a:hover { color: var(--accent); }

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.legal-content li { margin-bottom: 0.5rem; }

/* --- Wissen/Knowledge page --- */
.wissen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.wissen-card {
  background: var(--white);
  border: 2px solid var(--grid);
  padding: 2rem;
  transition: all var(--transition);
}

.wissen-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.wissen-card .wissen-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.wissen-card h3 { margin-bottom: 0.75rem; }
.wissen-card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 1rem; }
.wissen-card ul { list-style: none; }
.wissen-card ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-light);
}
.wissen-card ul li a { display: flex; align-items: center; gap: 0.4rem; }
.wissen-card ul li a::before { content: '\2192'; color: var(--accent); font-weight: bold; }

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: 2px dashed var(--grid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  font-size: 1.2rem;
}

.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .compass-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 1rem;
    border-top: 2px dashed rgba(224, 242, 254, 0.2);
  }

  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }

  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .blog-grid, .blog-list-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
  .roof-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }

  .compass-visual { width: 260px; height: 260px; }

  .author-box { flex-direction: column; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
}


/* === Mobile Logo Size === */
@media (max-width: 768px) {
  .logo img, .nav-logo img, .navbar-brand img, .nav-brand img, .navbar__logo img {
    height: 36px !important;
  }
}