/* Alphütte im Valschavieltal – Gestaltung
   Farbwelt nach dem Foto: Holzbraun, Almgrün, Stein */

:root {
  --holz:      #5e4435;
  --holz-hell: #8a6045;
  --gruen:     #42654b;
  --gruen-tief:#253d2d;
  --stein:     #e7e9e5;
  --papier:    #f4f5f2;
  --weiss:     #ffffff;
  --text:      #202620;
  --text-mild: #5b625c;
  --linie:     #d7dbd5;
  --gold:      #b45f3b;
  --schatten:  0 1px 2px rgba(25,35,28,.04), 0 8px 22px rgba(25,35,28,.06);
  --radius:    8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ---------------------------------------------------------- Hero */
.hero {
  background: var(--gruen-tief);
  padding: 20px 20px 0;
  text-align: center;
}

.hero-img {
  width: min(900px, calc((100vh - 190px) * 1.326));
  max-width: 100%;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,.26);
  line-height: 0;
}

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

.hero-text {
  max-width: 1120px;
  margin: 0 auto;
  padding: 19px 8px 25px;
  color: #f4f1e8;
}

.kicker {
  margin: 0 0 5px;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c8d3b8;
}

.hero h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.hero .sub {
  margin: 5px 0 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: #dfe6d3;
  font-style: italic;
}

/* ---------------------------------------------------------- Direktnavigation */
.jump-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linie);
  box-shadow: 0 4px 14px rgba(25,35,28,.05);
}

.jump-nav-inner {
  max-width: 1180px;
  min-height: 54px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.jump-nav-inner::-webkit-scrollbar { display: none; }

.jump-nav a {
  flex: 0 0 auto;
  color: var(--text-mild);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 650;
  padding: 7px 11px;
  border-radius: 6px;
}

.jump-nav a:hover {
  background: #edf1ec;
  color: var(--gruen-tief);
}

.jump-nav .jump-primary {
  background: var(--gruen-tief);
  color: #fff;
}

.jump-nav .jump-primary:hover {
  background: var(--gruen);
  color: #fff;
}

/* ---------------------------------------------------------- Layout */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 8px;
}

.card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
  box-shadow: var(--schatten);
}

.options,
.overview-layout,
.content-layout {
  display: grid;
  gap: 18px;
}

.overview-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
}

.content-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.overview-layout .card,
.content-layout .card,
.side-stack .card { margin-bottom: 0; }

.overview-layout,
.content-layout { margin-bottom: 18px; }

.intro { border-left: 5px solid var(--gruen); }

.lead {
  margin: 0 auto;
  max-width: 900px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.58;
}

h2 {
  margin: 2px 0 12px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--holz);
  letter-spacing: 0;
  line-height: 1.25;
}

h3 {
  margin: 23px 0 9px;
  font-size: 1.05rem;
  color: var(--holz);
}

p { margin: 0 0 11px; }
p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gruen);
  background: #eef2e8;
  border-radius: 999px;
  padding: 4px 12px;
}

.note {
  background: #faf6ee;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .96rem;
  color: var(--text-mild);
}

.legal {
  background: #eef2f2;
  font-size: .96rem;
  color: var(--text-mild);
}

/* ---------------------------------------------------------- Überblick */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 20px;
  margin: 0;
}

.facts > div {
  padding: 10px 2px;
  border-bottom: 1px solid var(--linie);
}

.facts > div.wide {
  grid-column: 1 / -1;
  border-bottom: none;
  padding-bottom: 0;
}

.facts dt {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 3px;
}

.facts dd {
  margin: 0;
  font-size: .98rem;
  line-height: 1.45;
}

/* Hervorgehobene Kernaussage */
.idea {
  background: #eef2e8;
  border: 1px solid #c7d7b6;
  border-radius: 10px;
  padding: 15px 18px;
  margin: 17px 0;
}

.idea-label {
  display: block;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen);
  margin-bottom: 6px;
}

.idea p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--gruen-tief);
}

.tasklist {
  margin: 0 0 16px;
  padding-left: 20px;
  columns: 2;
  column-gap: 34px;
}

.tasklist li {
  margin-bottom: 6px;
  break-inside: avoid;
}

.tasklist li::marker { color: var(--gruen); }

@media (max-width: 700px) {
  .tasklist { columns: 1; }
}

.worklist {
  margin: 0;
  padding-left: 20px;
}

.worklist li {
  margin-bottom: 7px;
  padding-left: 3px;
}

.worklist li::marker { color: var(--gold); }

#ueberblick,
#nutzung,
#verkauf,
#zufahrt,
#rechtliches,
#lage,
#weiter,
#gebot { scroll-margin-top: 72px; }

/* ---------------------------------------------------------- Karte */
.map-card p { margin-top: 0; }

.map-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  height: 250px;
  margin: 16px 0 12px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stein);
  text-decoration: none;
  cursor: zoom-in;
}

.map-frame:hover {
  border-color: var(--gruen);
  box-shadow: var(--schatten);
}

/* fängt den Klick ab, damit die kleine Karte immer gross geöffnet wird */
.map-cover {
  position: absolute;
  inset: 0;
  display: block;
}

.map-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(37,61,45,.86);
  color: #fff;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .9rem;
  color: var(--text-mild);
}

.map-meta .coords {
  letter-spacing: .02em;
}

.map-meta .map-link {
  color: var(--gruen);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(66,101,75,.35);
}

.map-meta .map-link:hover {
  border-bottom-color: var(--gruen);
}

/* ---------------------------------------------------------- Pachten / Kaufen */
.choice { text-align: center; }

.choice-intro {
  margin: -4px 0 22px;
  color: var(--text-mild);
}

.choice-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
  text-align: center;
  text-decoration: none;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background: var(--stein);
  color: var(--holz);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}

.choice-btn:hover {
  box-shadow: var(--schatten);
  transform: translateY(-1px);
}

.choice-btn:active { transform: translateY(1px); }

.choice-main {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.choice-sub {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .86rem;
  line-height: 1.45;
  opacity: .85;
}

.choice-btn.pacht {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
}

.choice-btn.pacht:hover {
  background: #445d32;
  border-color: #445d32;
}

.choice-btn.kauf:hover {
  background: #ded7ca;
  border-color: #c8bda9;
}

.review-note {
  margin: 4px 0 22px;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .92rem;
  color: var(--text-mild);
}

/* ---------------------------------------------------------- Kontakt */
.contact { text-align: center; }

.reveal.primary-reveal {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
  font-weight: 600;
  padding: 15px 30px;
  font-size: 1.05rem;
}

.reveal.primary-reveal:hover {
  background: #445d32;
  border-color: #445d32;
}

.note-center {
  text-align: left;
  margin-top: 24px;
}

.bidding-intro {
  margin-top: -6px;
  margin-bottom: 20px;
  color: var(--text-mild);
  font-size: .98rem;
}

.signature {
  font-size: 1.3rem;
  color: var(--holz);
  margin: 18px 0 24px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.reveal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 1rem;
  padding: 13px 24px;
  border: 1px solid var(--linie);
  border-radius: 999px;
  background: var(--stein);
  color: var(--holz);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}

.reveal:hover {
  background: #ded7ca;
  border-color: #c8bda9;
}

.reveal:active { transform: translateY(1px); }

.reveal.revealed {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
  font-weight: 600;
}

.reveal .ico { font-size: 1.15rem; }

.hint {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text-mild);
  margin-top: 16px;
}

/* ---------------------------------------------------------- Gebote */
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}

.status-row.single {
  grid-template-columns: minmax(200px, 280px);
  justify-content: center;
}

.status-box {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.status-label {
  display: block;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mild);
}

.status-value {
  display: block;
  margin-top: 4px;
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--holz);
}

.steps {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .94rem;
  color: var(--text-mild);
  margin: 0 0 22px;
  padding-left: 22px;
}

.steps li { margin-bottom: 4px; }

.form { margin-bottom: 18px; }

.form label {
  display: block;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-row input {
  flex: 1 1 220px;
  font: inherit;
  font-size: 1rem;
  padding: 12px 15px;
  border: 1px solid #c9c0b2;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
}

.field-row input:focus {
  outline: 2px solid var(--gruen);
  outline-offset: 1px;
  border-color: var(--gruen);
}

.btn {
  font: inherit;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 9px;
  border: 1px solid #c9c0b2;
  background: var(--stein);
  color: var(--holz);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}

.btn:hover { background: #ded7ca; }

.btn.primary {
  background: var(--gruen);
  border-color: var(--gruen);
  color: #fff;
  font-weight: 600;
}

.btn.primary:hover { background: #445d32; }

.linkbtn {
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .88rem;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-mild);
  text-decoration: underline;
  cursor: pointer;
}

.linkbtn:hover { color: var(--holz); }

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400 !important;
  margin: 14px 0 0 !important;
  font-size: .92rem !important;
  color: var(--text-mild);
}

.check input { margin-top: 4px; }

.code-form {
  border-top: 1px dashed var(--linie);
  padding-top: 18px;
}

.bidder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 11px 16px;
  margin-bottom: 20px;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .9rem;
}

.mystatus {
  border-radius: 10px;
  padding: 15px 18px;
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.mystatus.top {
  background: #edf5e6;
  border: 1px solid #b9d3a3;
  color: #33472a;
}

.mystatus.out {
  background: #fdf3e3;
  border: 1px solid #e3cb9c;
  color: #6b4d15;
}

.inline-toggle { margin-top: -8px; }

.flash {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: .98rem;
  line-height: 1.6;
}

.flash.ok    { background: #edf5e6; border: 1px solid #b9d3a3; color: #33472a; }
.flash.warn  { background: #fdf3e3; border: 1px solid #e3cb9c; color: #6b4d15; }
.flash.error { background: #fbeceb; border: 1px solid #e2b3ae; color: #7d2b23; }
.flash.dev   { background: #eef1f7; border: 1px dashed #9fb0cd; color: #2f3f5c; word-break: break-all; }

.closed {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text-mild);
}

.bidlist {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .94rem;
}

.bidlist th {
  text-align: left;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mild);
  border-bottom: 1px solid var(--linie);
  padding: 8px 10px;
  font-weight: 600;
}

.bidlist td {
  padding: 10px;
  border-bottom: 1px solid #f0ece4;
}

.bidlist tr.lead-bid td {
  background: #f3f7ee;
  font-weight: 600;
  color: var(--gruen-tief);
}

/* ---------------------------------------------------------- Fuß */
footer {
  text-align: center;
  padding: 24px 20px 32px;
  color: var(--text-mild);
  font-family: system-ui, "Segoe UI", sans-serif;
  font-size: .9rem;
}

footer p { margin: 0 0 6px; }
footer .small { font-size: .8rem; opacity: .85; }

/* ---------------------------------------------------------- Klein */
@media (max-width: 900px) {
  .overview-layout,
  .content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; line-height: 1.56; }

  .hero {
    padding: 12px 12px 0;
  }

  .hero-text {
    padding: 15px 6px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .sub {
    font-size: 1rem;
  }

  .jump-nav-inner {
    min-height: 49px;
    justify-content: flex-start;
    padding: 7px 12px;
  }

  .jump-nav a {
    font-size: .8rem;
    padding: 6px 9px;
  }

  main {
    padding: 16px 12px 4px;
  }

  .card {
    padding: 19px 18px;
    margin-bottom: 14px;
  }

  .overview-layout,
  .content-layout,
  .side-stack {
    gap: 14px;
  }

  .overview-layout,
  .content-layout { margin-bottom: 14px; }

  .lead {
    font-size: 1.08rem;
  }

  h2 { font-size: 1.32rem; }
  h3 { margin-top: 20px; }

  .idea {
    padding: 14px 15px;
    margin: 15px 0;
  }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 9px 0; }
  .facts dd { font-size: .93rem; }

  .status-row { margin: 16px 0 20px; }
  .contact-buttons { gap: 10px; }
  .choice-buttons { grid-template-columns: 1fr; gap: 12px; }
  .map-frame { max-width: 100%; height: 210px; }
  .reveal.primary-reveal { width: 100%; justify-content: center; }
  .field-row input, .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .facts { grid-template-columns: 1fr; }
}

.choice-buttons.single { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
