/* Flusskorn — Mühlsteinkreise, Sackzettel, Mehl und Regnitzgrün. */
:root {
  --mehl: #f3ead6;
  --fluss: #1f4d3a;
  --stein: #6e6a62;
  --kleie: #c9b48a;
  --wasser: #8aa8a0;
  --tinte: #243028;
  --bad: #a33b2b;
  --gut: #2b6a46;
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 106, 98, 0.12), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(31, 77, 58, 0.1), transparent 32%),
    var(--mehl);
  color: var(--tinte);
  font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  font-size: 1.03rem;
  line-height: 1.62;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fluss); }

:focus { outline: none; }
:focus-visible { outline: 2px dashed var(--fluss); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: var(--fluss);
  color: var(--mehl);
  padding: 0.35rem 0.65rem;
  z-index: 80;
}
.skip:focus { top: 0.7rem; }

/* Ticket-strip nav */
.sackleiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem auto 0;
  max-width: 56rem;
  padding: 0.7rem 1rem;
  border: 1px dashed var(--stein);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 10px,
      rgba(110, 106, 98, 0.08) 10px 12px
    );
}
.mehlmark {
  text-decoration: none;
  color: var(--fluss);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.mehlmark b {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stein);
}

.kornknopf {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--fluss);
  background: var(--mehl);
  display: none;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.kornknopf i {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--fluss);
}

.zettelzug {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.zettelzug a { text-decoration: none; color: var(--tinte); }
.zettelzug a[aria-current="page"] { color: var(--fluss); font-weight: 700; }

@media (max-width: 820px) {
  .kornknopf { display: grid; }
  .zettelzug {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #f3ead6;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: none;
    font-size: 1rem;
  }
  .zettelzug.is-open { display: flex; }
  .kornknopf { position: relative; z-index: 90; }
}

.speicher {
  max-width: 60rem;
  margin: 2rem auto 0;
  padding: 0 1.1rem 3rem;
}

.mahlstein {
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  min-height: 28rem;
}
.mahlstein::before,
.mahlstein::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 10px solid rgba(110, 106, 98, 0.22);
  pointer-events: none;
}
.mahlstein::before {
  width: min(92vw, 34rem);
  height: min(92vw, 34rem);
}
.mahlstein::after {
  width: min(70vw, 24rem);
  height: min(70vw, 24rem);
  border-width: 4px;
  border-style: dashed;
}
.stein-foto {
  width: min(58vw, 20rem);
  height: min(58vw, 20rem);
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 14px rgba(201, 180, 138, 0.35);
}
.stein-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stein-text {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
  background: var(--mehl);
  padding: 1rem 1.2rem 0;
}
.stein-text h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin: 0 0 0.6rem;
}
.losung {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stein);
}

.tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2.4rem 0 0;
}
.ticket {
  width: 15.2rem;
  padding: 0.9rem 0.9rem 1rem;
  border: 1px dashed var(--stein);
  background: #fffaf0;
  transform: rotate(-1.4deg);
}
.ticket:nth-child(2) { transform: rotate(1.1deg); }
.ticket:nth-child(3) { transform: rotate(-0.4deg); }
.ticket em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stein);
  margin-bottom: 0.35rem;
}
.ticket h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}
.ticket p { margin: 0; font-size: 0.94rem; }

.mehlbtn {
  display: inline-block;
  margin-top: 1rem;
  border: 1px solid var(--fluss);
  color: var(--fluss);
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.loft {
  max-width: 40rem;
  margin: 0 auto;
}
.loft h1,
.loft h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; }
.loft h1 { font-size: clamp(2rem, 5vw, 3.1rem); }

.page-circle {
  width: min(72vw, 18rem);
  height: min(72vw, 18rem);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 12px rgba(110, 106, 98, 0.16);
}
.page-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 70%;
}

.mahlkarte {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.mahlkarte li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--stein);
}
.mahlkarte b { font-family: Fraunces, Georgia, serif; }

.kornfeld {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.kornfeld span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stein);
}
.kornfeld input,
.kornfeld textarea {
  border: 0;
  border-bottom: 1px dashed var(--fluss);
  background: transparent;
  font: inherit;
  padding: 0.5rem 0;
}
.kornfeld textarea { min-height: 7.2rem; resize: vertical; }
.is-bad { box-shadow: inset 0 -2px 0 var(--bad); }

.agree { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.7rem 0 1rem; font-size: 0.92rem; }
.agree.is-bad { outline: 1px dashed var(--bad); padding: 0.25rem; }

.ok {
  color: var(--gut);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.3rem;
}

.kleiefuss {
  max-width: 56rem;
  margin: 0 auto 5.4rem;
  padding: 1.2rem 1rem 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
  font-size: 0.92rem;
}
@media (max-width: 720px) { .kleiefuss { grid-template-columns: 1fr; } }
.kleiefuss nav { display: flex; flex-direction: column; gap: 0.3rem; }
.winzig { color: var(--stein); font-size: 0.8rem; }

.cookie {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) rotate(-1deg);
  width: min(34rem, calc(100% - 1.4rem));
  z-index: 70;
  background: #fffaf0;
  border: 1px dashed var(--stein);
  padding: 0.9rem 1rem;
}
.cookie-actions { display: flex; gap: 0.45rem; margin-top: 0.55rem; }
.cookie-actions button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--fluss);
  background: transparent;
  color: var(--fluss);
  padding: 0.4rem 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.cookie-actions [data-cookie-accept] { background: var(--fluss); color: var(--mehl); }
