/* ViaSite CSS – brand: ViaTolle Schweiz | layout: docstyle | struct: glossary-dl */
:root {
  --primary: #7b2d8b;
  --accent: #43aa8b;
  --bg: #faf5ff;
  --text: #1e0a2e;
  --muted: #6b7280;
  --border: #d1d5db;
  --radius: 6px;
  --font-head: 'Segoe UI', Arial, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --max-w: 1100px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--accent); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 2rem 0 0.8rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin: 1.5rem 0 0.5rem; }
p { margin-bottom: 1rem; }
ul,ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
th { background: var(--primary); color: #fff; padding: 0.6rem 0.8rem; text-align: left; }
td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); }
tr:nth-child(even) td { background: rgba(0,0,0,0.03); }
details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.8rem; }
summary { padding: 0.7rem 1rem; cursor: pointer; font-weight: 600; background: rgba(0,0,0,0.03); }
details[open] summary { border-bottom: 1px solid var(--border); }
details > *:not(summary) { padding: 0.8rem 1rem; }
blockquote { border-left: 4px solid var(--accent); padding: 0.8rem 1.2rem; background: rgba(0,0,0,0.03); margin: 1.2rem 0; font-style: italic; }
dl { margin: 1rem 0; }
dt { font-weight: 700; color: var(--primary); margin-top: 1rem; }
dd { margin-left: 1.5rem; margin-bottom: 0.5rem; }
aside { background: rgba(0,0,0,0.04); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
figure { margin: 1.5rem 0; text-align: center; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.2rem; }
/* HEADER */
header { background: var(--primary); color: #fff; padding: 0; }
header a { color: #fff; text-decoration: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.2rem; max-width: var(--max-w); margin: 0 auto; flex-wrap: wrap; gap: 0.5rem; }
.logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 1.2rem; flex-wrap: wrap; padding: 0; margin: 0; }
nav a { font-size: 0.92rem; font-weight: 600; padding: 0.3rem 0; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
nav a:hover, nav a.active { border-bottom-color: var(--accent); }
/* HERO */
.hero { background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, #000) 100%); color: #fff; padding: 4rem 1.2rem; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); }
.hero p { font-size: 1.15rem; max-width: 700px; margin: 1rem auto 1.5rem; opacity: 0.92; }
.hero-img { margin: 2rem auto 0; max-width: 480px; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 0.7rem 1.6rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: opacity 0.2s; border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { opacity: 0.85; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
/* SECTIONS */
section { padding: 3rem 0; }
section:nth-child(even) { background: rgba(0,0,0,0.025); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.section-title p { color: var(--muted); max-width: 600px; margin: 0.5rem auto 0; }
/* CARDS */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card h3 { margin-top: 0.5rem; font-size: 1.1rem; }
.card-icon { width: 48px; height: 48px; }
/* FACT PANELS */
.fact-panel { background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.fact-panel h3 { margin-top: 0; color: var(--primary); }
/* REVIEWS */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.review-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.review-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.review-stars { color: var(--accent); font-size: 1.2rem; }
/* FOOTER */
footer { background: color-mix(in srgb, var(--primary) 90%, #000); color: #e0e0e0; padding: 2.5rem 1.2rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: var(--max-w); margin: 0 auto 2rem; }
.footer-col h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: #c0c0c0; font-size: 0.9rem; text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; font-size: 0.82rem; color: #888; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.2rem; max-width: var(--max-w); margin: 0 auto; }
/* BREADCRUMB */
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding: 0.7rem 0; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb span { margin: 0 0.3rem; }
/* CHECKLIST */
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 0.4rem 0 0.4rem 2rem; position: relative; border-bottom: 1px solid var(--border); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
/* TIMELINE */
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline li { padding: 0.5rem 0 1rem 3.5rem; position: relative; }
.timeline li::before { content: attr(data-step); position: absolute; left: 0; top: 0.3rem; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
/* CONTACT FORM */
.form-group { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
input, textarea, select { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-check input { width: auto; margin-top: 0.2rem; }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
/* COOKIE BANNER */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; color: #eee; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; z-index: 9999; flex-wrap: wrap; font-size: 0.9rem; }
#cookie-banner a { color: var(--accent); }
/* SKIP LINK */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 10000; }
.skip-link:focus { left: 0; }
/* MATRIX TABLE */
.matrix-table th:first-child { min-width: 160px; }
.matrix-table td { text-align: center; }
.matrix-table td.yes { color: #155724; font-weight: 700; }
.matrix-table td.no { color: #721c24; }
/* TOC */
.toc { background: rgba(0,0,0,0.04); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 1.5rem 0; }
.toc h4 { margin: 0 0 0.6rem; font-size: 0.95rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.92rem; }
/* RELATED LINKS */
.related-links { background: rgba(0,0,0,0.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 2rem 0; }
.related-links h4 { margin: 0 0 0.6rem; color: var(--primary); }
.related-links ul { margin: 0; padding-left: 1.2rem; }
/* RESPONSIVE */
@media (max-width: 768px) {
  nav ul { gap: 0.7rem; }
  .hero { padding: 2.5rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
