/* ==========================================================================
   Geschützte Seiten: Anmeldung, interner Bereich, Aufträge der Landwirte
   Baut auf styles/main.css auf (.content, .form, .field, .pill, .form-note).
   ========================================================================== */

.content--login .form { max-width: 24em; }
.content--login .form-note,
.content--lw .form-note { margin-top: 0; }

/* Abmelden: unauffällig unter dem Inhalt */
.logout { margin-top: 2.5em; }
.logout button {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(var(--cream-rgb) / .7);
  font: inherit;
  font-size: .9em;
  cursor: pointer;
}
.logout button:hover { color: var(--amber); }
.logout button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Kacheln im internen Bereich */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}
.content .tile {
  display: block;
  height: 100%;
  padding: 1.1em 1.25em;
  border: 1px solid rgb(var(--cream-rgb) / .18);
  border-radius: .5rem;
  color: var(--cream);
  text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.content .tile:hover,
.content .tile:focus-visible {
  border-color: var(--amber);
  background: rgb(var(--cream-rgb) / .04);
  outline: none;
}
.tile__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.3em;
  line-height: 1.2;
}
.tile__text {
  display: block;
  margin-top: .35em;
  font-size: .9em;
  opacity: .75;
}

/* Einsatzanfragen eines Landwirts: Liste wie /auftraege_alle (liste.css), breiter als Fließtext */
.content--lw { max-width: 68rem; }
.content--lw .at-liste { margin-top: .5em; font-size: 1rem; line-height: 1.5; }
.at-leer { padding: .9rem .25rem; border-top: 1px solid rgb(var(--cream-rgb) / .14); opacity: .75; }

/* Frühere Kalenderjahre: eingeklappt, Klick blendet ein */
.at-jahr { margin-top: 1.5rem; }
.at-jahr summary {
  display: flex;
  align-items: baseline;
  gap: .5em;
  padding: .4rem .25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.at-jahr summary::-webkit-details-marker { display: none; }
.at-jahr summary::before { content: "▸"; color: var(--amber); transition: transform .2s; }
.at-jahr[open] summary::before { transform: rotate(90deg); }
.at-jahr summary span { font-family: var(--sans); font-size: .8rem; opacity: .7; }
.at-jahr summary:hover { color: var(--amber); }
.at-jahr summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Links unter Anmelde- und Passwortformularen */
.login__links { margin-top: 1.4em; font-size: .95em; }
.login__links a { color: var(--amber); }

/* Karten: Bereiche einer Seite optisch zusammenfassen und voneinander abgrenzen
   (Profil, Benutzerverwaltung) */
.karten { display: grid; gap: clamp(1.5rem, 4vw, 2.25rem); margin-top: 2rem; }
.karte {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgb(var(--cream-rgb) / .12);
  border-radius: 16px;
  background: rgb(var(--cream-rgb) / .045);
  box-shadow: 0 10px 30px -18px rgb(0 0 0 / .5);
}
.karte__kopf { margin-bottom: 1.5rem; }
.content h2.karte__titel { margin: 0; font-family: var(--serif); font-weight: var(--weight-regular); font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.2; }
.content .karte__text { margin-top: .35rem; font-size: .95em; opacity: .75; }

/* Anmeldung der Landwirte (/anmelden, includes/lw-anmeldeformular.php) */
.content .lw-login__links { margin: 0; font-size: .95em; }
