/* main.css for driveautria.eu */
:root {
  --primary: #1e3a5f;
  --accent: #a855f7;
  --text: #1a1a1a;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 8px;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.site-nav {
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav .nav-brand a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav .nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  text-decoration: underline;
  color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1, h2, h3 { color: var(--primary); margin: 1.5rem 0 0.75rem; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p { margin-bottom: 1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th {
  background: var(--primary);
  color: #fff;
  padding: 0.7rem;
  text-align: left;
}

td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--border);
}

tr:nth-child(even) td { background: #f0f4ff; }

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  background: #f8fafc;
}

details[open] summary { border-bottom: 1px solid var(--border); }

aside {
  background: #f0f4ff;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #222; }

input, textarea, select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}

label { display: block; font-weight: bold; margin-bottom: 0.3rem; }

footer {
  background: var(--primary);
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer a { color: #fff; }

@media (max-width: 768px) {
  .site-nav { flex-direction: column; align-items: flex-start; }
  .site-nav .nav-links { flex-direction: column; gap: 0.5rem; }
}
