/*
  Versioned stylesheet for long cache lifetimes.
  When you change styles, bump the filename (e.g. style.v3.css) and update HTML links.
*/

/* style.css – Bildschirmversion, freundlich & kompakt */

:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#111;
  --muted:#555; /* Darkened for better contrast */
  --accent:#005ea5; /* Standardized blue */
  --accent-hover:#00447a;
  --border:#e6e9ee;
  --focus:#d9534f; /* High contrast focus color */
  --maxw:900px;
  --radius:10px;
}

*{box-sizing:border-box}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}
.skip-link:focus {
  top: 0;
}

html,body{height:100%;margin:0;font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; background:var(--bg); color:var(--text); line-height: 1.6;}

/* Focus states for WCAG */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.wrapper{max-width:var(--maxw);margin:28px auto;padding:20px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius); position: relative; overflow: hidden;}

/* Navigation */
.nav-main {
  min-height: 52px; /* Reserve space to reduce layout shift before CSS is applied */
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 20px;
}
.nav-main ul {
  display: flex;
  flex-wrap: nowrap; /* keep on one line (avoid 2-line nav on desktop) */
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0 10px;
  justify-content: center;
}
.nav-main a {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}
.nav-main a:hover, .nav-main a[aria-current="page"] {
  background: var(--bg);
  color: var(--accent);
}

/* On smaller screens: avoid wrapping by enabling horizontal scroll */
@media (max-width: 820px) {
  .nav-main ul {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .nav-main ul::-webkit-scrollbar { display: none; }
}

/* Sub-Navigation for Spickzettels */
.nav-sub {
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 20px;
  font-size: 0.95em;
}
.nav-sub ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}
.nav-sub a {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.2;
}
.nav-sub a:hover, .nav-sub a[aria-current="page"] {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Tux Creative Usage */
.tux-mascot {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px; /* fixed to prevent any flicker/CLS */
  display: block;
  opacity: 0.12;
  transform: rotate(15deg);
  pointer-events: none;
}

/* No hover effects for tux mascot (intentionally static) */

header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:14px; position: relative; z-index: 2}
.title h1{margin:0;font-size:20px}
.title .subtitle{margin:6px 0 0;color:var(--muted)}
.meta p{margin:2px 0;color:var(--muted);font-size:13px;text-align:right}
main{display:block}
.box{padding:12px;border-radius:8px;background:linear-gradient(180deg,#fff,#fbfcfe);border:1px solid var(--border);margin-bottom:12px}

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: white;
}
summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--accent);
}
summary:focus {
  outline: none;
  text-decoration: underline;
}

h2{margin:0 0 8px 0;font-size:1.4rem; color: var(--accent);}
h3{margin:12px 0 6px 0;font-size:1.1rem; font-weight: 600;}
p,li{font-size:14px;line-height:1.45;color:var(--text)}
ul,ol{margin:6px 0 12px 24px}
.note{margin-top:12px;padding:12px;border-left:4px solid var(--accent);background:#f3f9ff;color:var(--text); border-radius: 4px;}
footer{display:flex;justify-content:center;gap:20px;flex-wrap: wrap; text-align: center; color:var(--muted);font-size:13px;padding-top:20px;margin-top: 20px; border-top:1px solid var(--border)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline; color: var(--accent-hover);}

/* Spickzettel list on start page: improve touch targets */
.spick-list {
  column-count: 2;
  column-gap: 2rem;
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.spick-list li {
  break-inside: avoid;
  margin: 0 0 8px 0;
}
.spick-list a {
  display: inline-block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.25;
}
.spick-list a:hover {
  text-decoration: none;
  background: var(--bg);
}

/* Timeline Styles for Linux Comparison */
.timeline {
  border-left: 2px solid var(--border);
  margin: 20px 0;
  padding-left: 20px;
}
.timeline-item {
  margin-bottom: 20px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid white;
}
.timeline-date {
  font-weight: bold;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}

/* Tables */
.table{
  width:100%;
  border-collapse:collapse;
}
.table th,
.table td{
  text-align:left;
  padding:8px;
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
.table thead th{
  background:#f0f0f0;
}

/* Print adjustments */
@media print {
  .nav-main, .skip-link, .tux-mascot { display: none; }
  .wrapper { border: none; margin: 0; width: 100%; max-width: none; box-shadow: none; }
  body { background: white; }
}

@media (max-width:720px){
  header{flex-direction:column;align-items:flex-start}
  .meta{text-align:left}
  .spick-list {
    column-count: 1;
  }
  .spick-grid{grid-template-columns:1fr;}
}

img { vertical-align: middle; }

/* Spickzettel overview (spick-index.html) */
.spick-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:10px;
}
.spick-card{
  display:block;
  padding:12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#fbfcfe);
  color:var(--text);
}
.spick-card strong{
  display:block;
  margin-bottom:4px;
}
.spick-card span{
  display:block;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.spick-card:hover{
  text-decoration:none;
  border-color:#cfd6e2;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
}
