/* =====================================================================
   Haidbauer Freizeitbedarf – Stylesheet
   Farbschema: Weiß / Grau / Sand
   ===================================================================== */

:root {
  --sand:        #d8c7ad;
  --sand-light:  #ece3d4;
  --sand-dark:   #b9a079;
  --grey-900:    #2c2c2c;
  --grey-700:    #4a4a4a;
  --grey-500:    #767676;   /* WCAG AA auf Weiß */
  --grey-300:    #cfcfcf;
  --grey-100:    #f4f3f1;
  --white:       #ffffff;
  --green-free:  #2e7d4f;
  --red-busy:    #b23b3b;
  --radius:      10px;
  --shadow:      0 2px 10px rgba(0,0,0,.06);
  --maxw:        1140px;
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}

/* ---- Skip-Link (Barrierefreiheit) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--grey-900);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---- Sichtbarer Fokus für Tastaturnutzer ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sand-dark);
  outline-offset: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

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

a { color: var(--grey-900); }

/* =================== HEADER / NAV =================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--grey-300);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 1.05rem;
  color: var(--grey-900);
  /* gleiche optische Breite wie der Untertitel */
}
.brand-sub {
  font-weight: 500;
  letter-spacing: .085em;
  font-size: .82rem;
  color: var(--grey-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: .5rem .7rem;
  font-size: 1rem;
  cursor: pointer;
  align-items: center;
  gap: .4rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: block;
  text-decoration: none;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--grey-700);
}
.nav-menu a:hover { background: var(--grey-100); color: var(--grey-900); }
.nav-menu a[aria-current="page"] {
  background: var(--sand-light);
  color: var(--grey-900);
}

/* =================== HERO =================== */
.hero {
  background: linear-gradient(180deg, var(--sand-light), var(--white));
  padding: 4rem 0 3.5rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; max-width: 60ch; color: var(--grey-700); }
.hero .actions { margin-top: 1.75rem; display: flex; gap: .9rem; flex-wrap: wrap; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}
.btn-primary { background: var(--grey-900); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-secondary { background: var(--sand); color: var(--grey-900); }
.btn-secondary:hover { background: var(--sand-dark); }
.btn-ghost { background: #fff; border-color: var(--grey-300); color: var(--grey-900); }
.btn-ghost:hover { border-color: var(--grey-700); }

/* =================== SECTIONS =================== */
section { padding: 3rem 0; }
.section-title { font-size: 1.9rem; margin: 0 0 .5rem; }
.section-intro { color: var(--grey-700); max-width: 70ch; margin: 0 0 2rem; }
.bg-alt { background: var(--grey-100); }

/* =================== GRID / CARDS =================== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* =================== ARTIKEL (Verleih) =================== */
.article {
  background: #fff;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.article h2 { margin-top: 0; }
.price-badge {
  display: inline-block;
  background: var(--sand-light);
  border: 1px solid var(--sand-dark);
  color: var(--grey-900);
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 999px;
  margin: .2rem .4rem .2rem 0;
}
.specs { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.specs th, .specs td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--grey-300); }
.specs th { width: 40%; color: var(--grey-700); font-weight: 600; }

/* =================== KALENDER =================== */
.calendar { margin-top: 1.25rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.cal-nav { display: flex; gap: .4rem; }
.cal-nav button {
  border: 1px solid var(--grey-300);
  background: #fff;
  border-radius: var(--radius);
  padding: .4rem .8rem;
  cursor: pointer;
  font-size: 1rem;
}
.cal-nav button:hover { background: var(--grey-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: .75rem; text-align: center; color: var(--grey-500); font-weight: 700; padding: .25rem 0; }
.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: .85rem;
  background: var(--grey-100);
  color: var(--grey-700);
}
.cal-cell.empty { background: transparent; }
.cal-cell.free  { background: #e3f1e8; color: var(--green-free); font-weight: 600; }
.cal-cell.busy  { background: #f6e1e1; color: var(--red-busy); font-weight: 600; text-decoration: line-through; }
.cal-cell.past  { background: transparent; color: var(--grey-300); }
.cal-legend { display: flex; gap: 1.2rem; margin-top: .75rem; font-size: .85rem; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.dot-free { background: #e3f1e8; border: 1px solid var(--green-free); }
.dot-busy { background: #f6e1e1; border: 1px solid var(--red-busy); }

/* =================== ABLAUF (Schritte) =================== */
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--sand);
  color: var(--grey-900);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* =================== FORMULAR =================== */
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form-field .req { color: var(--red-busy); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-hint { font-size: .85rem; color: var(--grey-500); margin-top: .3rem; }
.form-note {
  background: var(--grey-100);
  border-left: 4px solid var(--sand-dark);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #e3f1e8; border: 1px solid var(--green-free); color: #1e5235; }
.alert-error   { background: #f6e1e1; border: 1px solid var(--red-busy); color: #7c2727; }

/* =================== PROSE (Impressum etc.) =================== */
.prose { max-width: 75ch; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.placeholder {
  background: #fff7cc;
  border: 1px dashed #d4b106;
  padding: .1rem .4rem;
  border-radius: 4px;
  font-weight: 600;
}

/* =================== FOOTER =================== */
.site-footer {
  background: var(--grey-900);
  color: #e9e9e9;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--sand); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: .85rem;
  color: #b9b9b9;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 860px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--grey-300);
    padding: .5rem 1.25rem 1rem;
    gap: .15rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .8rem .85rem; }
}

/* Respektiert Nutzer-Einstellung „weniger Bewegung“ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
