/* main.css — motorwayinfoit.eu | sidebar layout | flat-duotone style */
:root {
  --primary: #2D6A4F;
  --accent: #E63946;
  --bg-light: #EBF5EE;
  --bg-dark: #1B4332;
  --text-main: #1a2e1a;
  --text-muted: #4a6a5a;
  --border: #b7d9c4;
}

body {
  background: #f8fdf9;
  color: var(--text-main);
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ── Site Layout ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.top-bar {
  background: var(--bg-dark);
  color: #c8e6c9;
  padding: 0.4rem 1.5rem;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar a { color: #E63946; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

.site-header {
  background: var(--primary);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-header .brand { color: #fff; font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: -0.5px; }
.site-header .tagline { color: #c8e6c9; font-size: 0.85rem; margin: 0; }

/* Classic nav */
nav.classic-nav {
  background: #fff;
  border-bottom: 3px solid var(--accent);
  padding: 0 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
nav.classic-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
nav.classic-nav ul li a {
  display: block;
  padding: 0.8rem 1.1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: border-color 0.15s, color 0.15s;
}
nav.classic-nav ul li a:hover,
nav.classic-nav ul li a.active-nav,
nav.classic-nav ul li a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--bg-dark);
}

/* ── Content with Sidebar ── */
.content-area {
  display: flex;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem;
  gap: 2rem;
  box-sizing: border-box;
}
.main-content { flex: 1 1 0; min-width: 0; }
.sidebar {
  width: 260px;
  flex-shrink: 0;
}

/* ── Sidebar Widgets ── */
.sidebar-widget {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border-top: 3px solid var(--accent);
}
.sidebar-widget h4 {
  color: var(--primary);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-widget ul li {
  margin-bottom: 0.4rem;
}
.sidebar-widget ul li a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.sidebar-widget ul li a:hover { text-decoration: underline; color: var(--accent); }
.sidebar-widget p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ── Section Titles ── */
.section-title {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

/* ── Compare Matrix ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
th {
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 0.8rem;
  text-align: left;
}
td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
tr:nth-child(even) td { background: #f0faf3; }
.matrix-yes { color: #2D6A4F; font-weight: 700; }
.matrix-no { color: #E63946; font-weight: 700; }

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.hero-text { flex: 1 1 300px; }
.hero-text h1 { color: #fff; font-size: 2rem; margin-bottom: 0.75rem; }
.hero-text p { color: #c8e6c9; font-size: 1.05rem; }
.hero-img { flex: 1 1 260px; text-align: center; }

/* ── CTA ── */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 1rem;
  font-size: 1rem;
}
.cta-btn:hover { background: #c0303c; }

/* ── Info Cards ── */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.info-card {
  flex: 1 1 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  padding: 1.25rem;
}
.info-card h3 { color: var(--primary); font-size: 0.95rem; margin: 0 0 0.5rem; }
.info-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ── Prev/Next Navigation (sequential) ── */
.seq-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.seq-nav a {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  flex: 1 1 140px;
  text-align: center;
}
.seq-nav a:hover { background: var(--primary); color: #fff; }
.seq-nav a.prev::before { content: "← "; }
.seq-nav a.next::after { content: " →"; }

/* ── Cookie Banner ── */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-dark);
  color: #c8e6c9;
  padding: 1rem 1.5rem;
  z-index: 9999;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-actions button { padding: 0.45rem 1rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
#cookie-accept { background: var(--accent); color: #fff; }
#cookie-decline { background: transparent; color: #aaa; border: 1px solid #aaa; }

/* ── Footer ── */
footer.site-footer {
  background: var(--bg-dark);
  color: #c8e6c9;
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
}
footer.site-footer a { color: var(--accent); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-col { flex: 1 1 180px; }
.footer-col h4 { color: #fff; margin-bottom: 0.75rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-bottom { max-width: 1200px; margin: 1.5rem auto 0; border-top: 1px solid #2d5a3a; padding-top: 1rem; font-size: 0.82rem; }

/* ── Details/FAQ ── */
details { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 0.75rem; }
details summary { cursor: pointer; font-weight: 600; color: var(--primary); padding: 0.75rem 1rem; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+ "; color: var(--accent); }
details[open] summary::before { content: "− "; }
details[open] { background: #f0faf3; }
details p { padding: 0.5rem 1rem 0.75rem; margin: 0; }

/* ── Blockquote ── */
blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  background: var(--bg-light);
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .content-area { flex-direction: column; padding: 1rem; }
  .sidebar { width: 100%; }
  .hero-section { padding: 2rem 1rem; }
  .hero-text h1 { font-size: 1.5rem; }
}
