@charset "utf-8";

/* -------------------------------------------------------------------------
   Gleitschirm-Gebraucht.DE
   Eine einzige Stylesheet-Datei, keine Web-Schriften, keine externen Aufrufe.
   Farben als Token auf :root, für den Dunkelmodus erneut definiert.
   ------------------------------------------------------------------------- */

:root {
  --bg:         #f4f6f9;
  --surface:    #ffffff;
  --surface-2:  #eaeff5;
  --text:       #12202c;
  --muted:      #4a5b6b;
  --line:       #d2dbe4;
  --line-soft:  #e6ecf2;

  --brand:      #0b3b66;
  --brand-2:    #0f5493;
  --on-brand:   #ffffff;

  --link:       #0a5490;
  --link-hover: #072f52;

  --head-bg:    #fdf3cf;
  --head-text:  #4a3a06;
  --head-line:  #ead9a0;

  --price-bg:   #e9f6dc;
  --price-text: #1e4a10;
  --alert:      #a4241b;

  --focus:      #0a63b8;
  --radius:     10px;
  --wrap:       76rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #0e151c;
    --surface:    #161f28;
    --surface-2:  #1d2833;
    --text:       #e7eef4;
    --muted:      #a7b6c4;
    --line:       #2b3846;
    --line-soft:  #223040;

    --brand:      #12314f;
    --brand-2:    #17436b;
    --on-brand:   #f2f7fc;

    --link:       #7cbdf5;
    --link-hover: #a9d5fb;

    --head-bg:    #332c10;
    --head-text:  #f6e6ae;
    --head-line:  #4b411c;

    --price-bg:   #1c3116;
    --price-text: #cdeeba;
    --alert:      #ff9c93;

    --focus:      #7cbdf5;
  }
}

:root[data-theme="dark"] {
  --bg:         #0e151c;
  --surface:    #161f28;
  --surface-2:  #1d2833;
  --text:       #e7eef4;
  --muted:      #a7b6c4;
  --line:       #2b3846;
  --line-soft:  #223040;

  --brand:      #12314f;
  --brand-2:    #17436b;
  --on-brand:   #f2f7fc;

  --link:       #7cbdf5;
  --link-hover: #a9d5fb;

  --head-bg:    #332c10;
  --head-text:  #f6e6ae;
  --head-line:  #4b411c;

  --price-bg:   #1c3116;
  --price-text: #cdeeba;
  --alert:      #ff9c93;

  --focus:      #7cbdf5;
}

/* ---------- Grundlagen ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.1rem); }
h2 { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.ico {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex: none;
  vertical-align: -.16em;
}

.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--surface);
  color: var(--link);
  padding: .7em 1.1em;
  border: 2px solid var(--focus);
  border-radius: 0 0 var(--radius) 0;
}
.skiplink:focus { left: 0; }

/* ---------- Kopfbereich ---------- */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 150px;
  height: auto;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand-claim {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}

.head-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.head-hours { color: var(--muted); font-size: .82rem; }

.tel {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}
.tel:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */

.site-nav { background: var(--brand); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: .8em 1.1em;
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { background: var(--brand-2); color: var(--on-brand); }

.site-nav a[aria-current="page"] {
  background: var(--brand-2);
  border-bottom-color: var(--head-bg);
}

/* ---------- Inhalt ---------- */

main { padding-block: 28px 44px; }

.lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5em 1em;
  margin: 0 0 .9em;
}

.count {
  font-weight: 700;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
}

.stand { color: var(--muted); font-size: .85rem; }

.note {
  color: var(--muted);
  font-size: .87rem;
  border-left: 3px solid var(--line);
  padding-left: .9em;
  margin-block: 1.2em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-block: 1.6em;
}

.hint {
  background: var(--head-bg);
  color: var(--head-text);
  border: 1px solid var(--head-line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-block: 1.4em;
}
.hint a { color: inherit; }

/* ---------- Vorteile ---------- */

.usp { margin-block: 2.4em; }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
  margin: 0;
}

.usp-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.usp-item dt {
  display: flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  color: var(--link);
  margin-bottom: .35em;
}

.usp-item dd {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Bestandstabelle ---------- */

.liste { margin-block: 1.2em; }

/* Kein overflow:hidden – das würde die klebenden Kopfzeilen ausschalten. */
.liste table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.liste caption {
  caption-side: top;
  text-align: left;
  color: var(--muted);
  font-size: .87rem;
  padding-bottom: .6em;
}

.liste th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--head-bg);
  color: var(--head-text);
  text-align: left;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--head-line);
  padding: 0;
}

.liste thead th:not(:last-child) { border-right: 1px solid var(--head-line); }

.liste th > span.th-label { display: block; padding: .8em .7em; }

/* Sortier-Schaltflächen werden erst per JavaScript eingesetzt. */
.liste th button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4em;
  width: 100%;
  padding: .8em .7em;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.liste th button:hover { background: var(--head-line); }

/* Der Doppelpfeil steht von Anfang an in jeder Spalte, damit erkennbar ist,
   dass sich sortieren lässt. Die aktive Spalte hebt sich zusätzlich ab. */
.liste th button .arrow {
  font-size: .95em;
  opacity: .8;
}
.liste th button:hover .arrow { opacity: 1; }

.liste th[aria-sort="ascending"] button .arrow,
.liste th[aria-sort="descending"] button .arrow {
  opacity: 1;
  font-weight: 700;
}

.liste td {
  padding: .7em;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.liste tbody tr:last-child td { border-bottom: 0; }
.liste tbody tr:nth-child(even) { background: var(--surface-2); }

.liste .artikel { width: 46%; }
.liste .artikel strong { font-size: 1.02rem; }

.liste .details {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  margin-top: .15em;
}

.liste .tagespreis { display: inline-block; }

.liste .klasse,
.liste .baujahr,
.liste .gewichtsbereich { white-space: nowrap; }

.liste .preis {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  background: var(--price-bg);
  color: var(--price-text);
}

.liste .weg { color: var(--alert); font-weight: 700; }

/* Kartenlayout auf schmalen Displays */
@media (max-width: 800px) {
  .liste table { border-radius: var(--radius); }

  .liste thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .liste tr {
    display: block;
    border-bottom: 3px solid var(--line);
  }
  .liste tbody tr:nth-child(even) { background: none; }
  .liste tbody tr:last-child { border-bottom: 0; }

  .liste td {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    text-align: right;
    font-size: .92rem;
  }

  .liste td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: .74rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: left;
    flex: none;
  }

  .liste td.artikel {
    display: block;
    width: auto;
    text-align: left;
    background: var(--surface-2);
  }
  .liste td.artikel::before { content: none; }

  .liste .tagespreis { display: block; }
  .liste .preis { border-bottom: 0; font-size: 1.05rem; }
}

/* ---------- Sortierleiste (nur mobil, per JavaScript gefüllt) ---------- */

.sortbar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  margin-bottom: 1em;
  font-size: .85rem;
}

.sortbar span { color: var(--muted); }

.sortbar button {
  font: inherit;
  padding: .45em .8em;
  background: var(--surface);
  color: var(--link);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.sortbar button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

/* Der Tabellenkopf ist auf schmalen Displays ausgeblendet, deshalb übernimmt
   dort die Sortierleiste. Beide Bedienwege steuern dieselbe Sortierfunktion. */
@media (max-width: 800px) {
  .sortbar { display: flex; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Rechtstexte ---------- */

.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

.dl-adr { margin: 0 0 1.2em; }
.dl-adr dt { font-weight: 700; margin-top: .8em; }
.dl-adr dd { margin: 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.toc ol { margin: .4em 0 0; }

/* ---------- Fussbereich ---------- */

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 2em;
  padding-block: 28px;
  font-size: .9rem;
}

.foot-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 20px 40px;
}

.foot-addr { margin: 0 0 1em; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4em 1.2em;
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.foot-note { color: var(--muted); font-size: .84rem; max-width: 46ch; }
.foot-copy { color: var(--muted); margin: 0; }

/* ---------- Bewegung und Druck ---------- */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-nav, .skiplink, .sortbar, .usp { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .liste th { position: static; }
  a { text-decoration: none; color: #000; }
}
