/* ==========================================================================
   Bikeshop 6390 — Stylesheet
   Farbschema: automatisch nach Systemeinstellung, überschreibbar per Toggle
   (html[data-theme="light" | "dark"]). Farben laufen über light-dark().
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg:          light-dark(#f6f5f2, #141518);
  --bg-elevated: light-dark(#ffffff, #1d1f23);
  --text:        light-dark(#191a1c, #ececea);
  --text-muted:  light-dark(#5e6165, #a4a7ab);
  --border:      light-dark(#e2e0db, #2d3035);
  --accent:      light-dark(#d4530a, #f0731f);
  --accent-hover:light-dark(#b34407, #ff8534);
  --on-accent:   light-dark(#ffffff, #1b0e03);
  --shadow:      light-dark(0 1px 3px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .4));
}

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"]  { color-scheme: dark; }

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: 1.2em 0 .5em; }
h2 { font-size: 1.35rem; }

.container {
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

main.container {
  padding-block: .5rem 4rem;
  min-height: 55vh;
}

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

/* Logo-Umschaltung: helles Schema -> schwarzes Logo, dunkles -> weisses Logo.
   (light-dark() geht nur für Farben, darum hier klassisch per Selektor.) */
.logo__img--dark { display: none; }

html[data-theme="dark"] .logo__img--light { display: none; }
html[data-theme="dark"] .logo__img--dark  { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo__img--light { display: none; }
  html:not([data-theme="light"]) .logo__img--dark  { display: block; }
}

/* --- Hinweis-Banner ------------------------------------------------------ */

.banner {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 600;
  padding: .55rem 1rem;
}

/* --- Header & Navigation ------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: .7rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo__img {
  width: 52px;
  height: auto;
}

.logo__text {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo__text strong {
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.5vw, 1.6rem);
  flex-wrap: wrap;
}

.nav > a:not(.button):not(.lang-toggle) {
  color: var(--text);
  font-weight: 600;
  padding-block: .3rem;
  border-bottom: 2px solid transparent;
}

.nav > a:not(.button):not(.lang-toggle):hover {
  text-decoration: none;
  color: var(--accent);
}

.nav > a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* --- Theme-Toggle -------------------------------------------------------- */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle__icon {
  width: 19px;
  height: 19px;
  display: none;
}

/* Sprachumschalter: zeigt die Sprache, zu der gewechselt wird */
.lang-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.lang-toggle:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

/* Ohne JS bzw. im Modus «Auto» das Monitor-Symbol zeigen */
.theme-toggle:not([data-mode]) .theme-toggle__icon--auto,
.theme-toggle[data-mode="auto"]  .theme-toggle__icon--auto,
.theme-toggle[data-mode="light"] .theme-toggle__icon--light,
.theme-toggle[data-mode="dark"]  .theme-toggle__icon--dark {
  display: block;
}

/* --- Hero (Startseite) --------------------------------------------------- */

.hero {
  text-align: center;
  padding-block: clamp(2rem, 6vw, 3.5rem) 1.5rem;
}

.hero__logo {
  width: clamp(150px, 30vw, 220px);
  margin-inline: auto;
}

.hero__claim {
  margin: 1rem 0 .4em;
}

.hero__intro {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55em 1.2em;
  border: 2px solid var(--text);
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}

.button:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.button--large {
  font-size: 1.1rem;
  padding: .7em 1.6em;
}

/* --- Karten & Abschnitte --------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.1rem;
  margin-block: 2rem;
}

.cards--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}

.card__head {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .8rem;
}

.card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.card__icon .icon {
  width: 19px;
  height: 19px;
}

.card__title {
  margin: 0 0 .6rem;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}

.card__head .card__title {
  margin: 0;
}

/* Foto oben in einer Karte, randlos bis zur Kartenkante */
.card__media {
  margin: -1.3rem -1.4rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
}

.card p {
  margin: 0 0 .6rem;
}

.card__biglink {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.section {
  margin-block: 3rem;
}

.section__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
}

.section__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}

.section__icon .icon {
  width: 21px;
  height: 21px;
}

.section__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.section__head .section__title {
  margin: 0;
}

/* --- Öffnungszeiten -------------------------------------------------------- */

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1.2rem;
  margin: 0;
}

.hours dt {
  font-weight: 700;
  white-space: nowrap;
}

.hours dd {
  margin: 0;
  color: var(--text-muted);
}

/* --- Service-Tabelle -------------------------------------------------------- */

.service-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-block: 1.5rem;
}

.service-table th,
.service-table td {
  padding: .95rem 1.3rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.service-table tr:last-child th,
.service-table tr:last-child td {
  border-bottom: none;
}

.service-table th[scope="row"] {
  font-weight: 700;
}

.service-table th small {
  display: block;
  font-weight: 400;
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

.service-table__price {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}

/* Interaktive Preisliste (Service-Seite): Zeilen sind klickbar und
   öffnen ein Detailfenster */
.service-table--interactive tbody tr {
  cursor: pointer;
  transition: background-color .15s ease;
}

.service-table--interactive tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.service-table--interactive tbody tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.service-table__chevron {
  width: 1%;
  text-align: right;
  color: var(--text-muted);
}

.service-table__chevron .icon {
  width: 1.05em;
  height: 1.05em;
  transition: translate .15s ease, color .15s ease;
}

.service-table--interactive tbody tr:hover .service-table__chevron .icon {
  translate: 3px 0;
  color: var(--accent);
}

/* Zeilen blenden beim Laden gestaffelt ein (endet immer im sichtbaren
   Zustand, funktioniert deshalb auch ohne JS) */
@media (prefers-reduced-motion: no-preference) {
  .service-table--interactive tbody tr {
    animation: service-row-in .4s ease-out backwards;
  }
  .service-table--interactive tbody tr:nth-child(2) { animation-delay: .06s; }
  .service-table--interactive tbody tr:nth-child(3) { animation-delay: .12s; }
  .service-table--interactive tbody tr:nth-child(4) { animation-delay: .18s; }
  .service-table--interactive tbody tr:nth-child(5) { animation-delay: .24s; }
  .service-table--interactive tbody tr:nth-child(6) { animation-delay: .3s; }
  .service-table--interactive tbody tr:nth-child(7) { animation-delay: .36s; }
  .service-table--interactive tbody tr:nth-child(8) { animation-delay: .42s; }
  .service-table--interactive tbody tr:nth-child(n+9) { animation-delay: .48s; }
}

@keyframes service-row-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

/* Detailfenster (natives dialog-Element) */
.service-dialog {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--text);
  padding: 1.5rem 1.6rem;
  width: min(32rem, calc(100% - 2rem));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

.service-dialog::backdrop {
  background: rgba(10, 10, 12, .5);
}

@media (prefers-reduced-motion: no-preference) {
  .service-dialog[open] {
    animation: dialog-in .18s ease-out;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
}

.service-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.service-dialog__title {
  margin: 0;
  font-size: 1.3rem;
}

.service-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.service-dialog__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.service-dialog__price {
  margin: .5rem 0 .2rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
}

.service-dialog__dauer {
  margin: 0 0 .8rem;
  color: var(--text-muted);
  font-size: .95rem;
}

.service-dialog__desc {
  margin: 0 0 .6rem;
  font-weight: 600;
}

.service-dialog__details {
  margin-bottom: 1.1rem;
}

.service-dialog__details p {
  margin: 0 0 .6rem;
}

.service-dialog__details ul {
  margin: 0 0 .6rem;
  padding-left: 1.2rem;
}

.service-dialog__details li {
  margin-bottom: .25rem;
}

.note {
  color: var(--text-muted);
  font-size: .95rem;
}

.page-intro {
  max-width: 44rem;
  font-size: 1.12rem;
  color: var(--text-muted);
}

/* --- Formular --------------------------------------------------------------- */

.form {
  max-width: 40rem;
  margin-block: 1.5rem 3rem;
}

.form__row--2 {
  display: grid;
  gap: 0 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.form__field {
  margin-bottom: 1.1rem;
}

.form__field label {
  display: block;
  font-weight: 700;
  margin-bottom: .3rem;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: .65rem .8rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form__hint {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: .35rem;
}

.form__error {
  color: light-dark(#b3261e, #ff8c85);
  font-size: .92rem;
  font-weight: 600;
  margin: .3rem 0 0;
}

.form__field--captcha input {
  max-width: 8rem;
}

/* Honeypot ausserhalb des sichtbaren Bereichs */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-block: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.notice--success {
  border-color: light-dark(#7bb87e, #3e6b41);
}

.notice--error {
  border-color: light-dark(#d98a85, #7a3f3b);
}

.notice p {
  margin: 0 0 .5rem;
}

/* --- Fliesstext (Impressum etc.) --------------------------------------------- */

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
}

/* --- Footer -------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-block: 2.5rem 1.5rem;
  font-size: .97rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer__title {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin: 0 0 .7rem;
}

.site-footer a {
  color: var(--text);
}

.site-footer a:hover {
  color: var(--accent);
}

.hours--footer {
  font-size: .95rem;
}

.site-footer__copyright {
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* --- Tipps-Karten ------------------------------------------------------------- */

.tipp {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tipp.is-collapsible {
  cursor: pointer;
}

/* Einblenden beim Laden, gestaffelt */
@media (prefers-reduced-motion: no-preference) {
  .tipps .tipp {
    animation: tipp-in .5s ease-out backwards;
  }
  .tipps .tipp:nth-child(2) { animation-delay: .08s; }
  .tipps .tipp:nth-child(3) { animation-delay: .16s; }
  .tipps .tipp:nth-child(4) { animation-delay: .24s; }
  .tipps .tipp:nth-child(5) { animation-delay: .32s; }
  .tipps .tipp:nth-child(6) { animation-delay: .40s; }
  .tipps .tipp:nth-child(n+7) { animation-delay: .48s; }
}

@keyframes tipp-in {
  from { opacity: 0; translate: 0 14px; }
}

/* Hover: Karte hebt sich, Icon kippt verspielt */
.tipp.is-collapsible:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.tipp__icon {
  transition: rotate .25s ease, scale .25s ease;
}

.tipp:hover .tipp__icon {
  rotate: -12deg;
  scale: 1.08;
}

/* Text gekürzt anzeigen, bis die Karte geöffnet wird */
.tipp.is-collapsible .tipp__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}

.tipp.is-collapsible.is-open .tipp__text {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

/* Sanfter Ausblendverlauf am unteren Rand des gekürzten Textes */
.tipp.is-collapsible:not(.is-open) .tipp__text::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1.6em;
  background: linear-gradient(to bottom, transparent, var(--bg-elevated));
}

.tipp__toggle {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  margin-top: .7rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.tipp__toggle .icon {
  width: 1em;
  height: 1em;
  rotate: 90deg;
  transition: rotate .25s ease;
}

.tipp.is-open .tipp__toggle .icon {
  rotate: -90deg;
}

.tipp__toggle-weniger { display: none; }
.tipp.is-open .tipp__toggle-mehr { display: none; }
.tipp.is-open .tipp__toggle-weniger { display: inline; }

/* Ohne JS (nicht collapsible) den Knopf gar nicht zeigen */
.tipp:not(.is-collapsible) .tipp__toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .tipp,
  .tipp__icon {
    transition: none;
  }
}

/* --- FAQ-Akkordeon ------------------------------------------------------------ */

.faq {
  max-width: 44rem;
  margin-block: 1.5rem;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary .icon {
  flex: none;
  color: var(--accent);
  transition: rotate .25s ease;
}

.faq__item[open] summary .icon {
  rotate: 90deg;
}

.faq__antwort {
  padding: 0 1.2rem 1.05rem;
  color: var(--text-muted);
}

.faq__antwort p {
  margin: 0 0 .6rem;
}

.faq__item[open] .faq__antwort {
  animation: faq-auf .3s ease;
}

@keyframes faq-auf {
  from {
    opacity: 0;
    translate: 0 -6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item[open] .faq__antwort {
    animation: none;
  }
  .faq__item summary .icon {
    transition: none;
  }
}

/* --- Neuigkeiten-Slider (Startseite) ----------------------------------------- */

.news-slider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.1rem;
  padding: .6rem 1.1rem .6rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elevated));
  box-shadow: var(--shadow);
}

.news-slider__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.news-slider__icon .icon {
  width: 19px;
  height: 19px;
}

.news-slider__items {
  display: grid;
  flex: 1;
  min-width: 0;
}

.news-slider__item {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  row-gap: .2rem;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity .45s ease, translate .45s ease, visibility .45s;
}

.news-slider__item.is-active {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

a.news-slider__item:hover {
  text-decoration: none;
}

a.news-slider__item:hover .news-slider__text {
  color: var(--accent);
}

.news-slider__badge {
  flex: none;
  padding: .1em .7em;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.news-slider__text {
  font-weight: 600;
  transition: color .15s ease;
}

.news-slider__dots {
  display: flex;
  gap: .45rem;
  flex: none;
}

.news-slider__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 25%, transparent);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.news-slider__dots button.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .news-slider__item {
    transition: none;
  }
}

/* --- Animiertes Shop-Titelbild ---------------------------------------------- */

.shop-hero {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-block: 1.5rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-elevated));
  box-shadow: var(--shadow);
}

.shop-hero svg {
  display: block;
  width: 100%;
  height: clamp(170px, 26vw, 300px);
}

.shop-hero__sonne {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: shop-hero-leuchten 6s ease-in-out infinite alternate;
}

.shop-hero__berg--hinten { fill: color-mix(in srgb, var(--text) 10%, transparent); }
.shop-hero__berg--vorne  { fill: color-mix(in srgb, var(--text) 17%, transparent); }

.shop-hero__wolke {
  fill: color-mix(in srgb, var(--text) 9%, transparent);
}

.shop-hero__wolke--1 { animation: shop-hero-ziehen 55s linear infinite; }
.shop-hero__wolke--2 { animation: shop-hero-ziehen 80s linear infinite; animation-delay: -30s; }

.shop-hero__boden {
  stroke: color-mix(in srgb, var(--text) 35%, transparent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 26 20;
  animation: shop-hero-fahren .7s linear infinite;
}

.shop-hero__velo {
  animation: shop-hero-wippen 2.4s ease-in-out infinite alternate;
}

.shop-hero__reifen,
.shop-hero__rahmen,
.shop-hero__speichen line,
.shop-hero__kurbel line {
  fill: none;
  stroke: var(--text);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shop-hero__speichen line { stroke-width: 3; }
.shop-hero__speichen,
.shop-hero__kurbel {
  transform-box: fill-box;
  transform-origin: center;
  animation: shop-hero-drehen 1.6s linear infinite;
}

.shop-hero__nabe,
.shop-hero__kurbellager {
  fill: var(--accent);
}

.shop-hero__tasche rect {
  fill: var(--accent);
}

.shop-hero__henkel {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
}

@keyframes shop-hero-drehen {
  to { transform: rotate(360deg); }
}

/* Positiver Versatz schiebt das Strichmuster zum Linienanfang, die
   Striche laufen also nach links: das Velo fährt nach rechts */
@keyframes shop-hero-fahren {
  to { stroke-dashoffset: 46; }
}

@keyframes shop-hero-wippen {
  from { transform: translateY(0); }
  to   { transform: translateY(3px); }
}

/* Wolken ziehen wie der Boden nach links, nur langsamer (Tiefenwirkung) */
@keyframes shop-hero-ziehen {
  from { transform: translateX(1460px); }
  to   { transform: translateX(-260px); }
}

@keyframes shop-hero-leuchten {
  from { transform: scale(1); opacity: .85; }
  to   { transform: scale(1.06); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero__sonne,
  .shop-hero__wolke--1,
  .shop-hero__wolke--2,
  .shop-hero__boden,
  .shop-hero__velo,
  .shop-hero__speichen,
  .shop-hero__kurbel {
    animation: none;
  }
}

/* --- Über-mich-Seite -------------------------------------------------------- */

.about {
  display: grid;
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.2rem;
}

@media (min-width: 720px) {
  .about {
    grid-template-columns: 320px 1fr;
    gap: 2.2rem;
  }
}

.about__portrait {
  margin: 0;
}

.about__portrait img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.about__outro {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-block: 1.5rem;
}

/* Zeitstrahl: Linie links, Punkte in Akzentfarbe */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 44rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding: 0 0 1.9rem 2.4rem;
}

.timeline__item:last-child {
  padding-bottom: .3rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline__when {
  margin: 0 0 .15rem;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
}

.timeline__title {
  margin: 0 0 .25rem;
  font-size: 1.15rem;
}

.timeline__text {
  margin: 0;
  color: var(--text-muted);
}

/* Einblend-Animation, wird per JS aktiviert (ohne JS alles sichtbar) */
.timeline--animate .timeline__item {
  opacity: 0;
  translate: -18px 0;
  transition: opacity .55s ease, translate .55s ease;
}

.timeline--animate .timeline__item:nth-child(2) { transition-delay: .15s; }
.timeline--animate .timeline__item:nth-child(3) { transition-delay: .3s; }
.timeline--animate .timeline__item:nth-child(4) { transition-delay: .45s; }

.timeline--animate .timeline__item.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .timeline--animate .timeline__item {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* Social-Media-Symbole im Footer */
.social {
  display: flex;
  gap: .6rem;
  margin-top: 1.1rem;
}

.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
}

.social__link .icon {
  width: 19px;
  height: 19px;
}

.social__link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Icons ---------------------------------------------------------------- */

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.button .icon {
  width: 1.15em;
  height: 1.15em;
}

/* Zeile mit Icon davor (Footer, Kontaktkarte) */
.iconline {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.iconline .icon {
  color: var(--accent);
}

/* Textlink mit Pfeil */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-weight: 600;
}

.textlink .icon {
  width: 1em;
  height: 1em;
  transition: translate .15s ease;
}

.textlink:hover .icon {
  translate: 3px 0;
}

/* --- Foto-Hero (Startseite mit hochgeladenem Foto) ------------------------- */

.hero-photo {
  position: relative;
  margin-top: 1.4rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Das Bild liegt als Füllung hinter dem Inhalt. Der Inhalt bestimmt die
   Höhe und bekommt oben Luft, damit ein Stück Foto frei sichtbar bleibt —
   so kann der Text auf schmalen Bildschirmen nie abgeschnitten werden. */
.hero-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo__content {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  padding-top: clamp(150px, 28vw, 260px);
  background: linear-gradient(to top, rgba(10, 10, 12, .78), rgba(10, 10, 12, .35) 55%, transparent 85%);
  color: #fff;
}

.hero-photo__claim {
  margin: 0 0 .3em;
  color: #fff;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hero-photo__intro {
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .88);
}

.hero-photo__intro p {
  margin: 0;
}

.hero__actions--start {
  justify-content: flex-start;
  margin-top: 1.2rem;
}

/* Sekundärbutton auf dem Foto: heller Rand statt Textfarbe */
.button--onphoto {
  border-color: rgba(255, 255, 255, .85);
  color: #fff;
}

.button--onphoto:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

/* --- Titelbild auf Unterseiten ---------------------------------------------- */

.page-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 560;
  object-fit: cover;
  border-radius: 16px;
  margin-block: 1.5rem;
  box-shadow: var(--shadow);
}

/* --- Bildergalerie ------------------------------------------------------------ */

.gallery {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__item figcaption {
  padding: .6rem .9rem;
  font-size: .9rem;
  color: var(--text-muted);
}
