/* Fire Tycoon Austria – Seiten je Gemeinde (tools/orte-seiten/). Farben und Schriften wie im Spiel und auf der Webseite. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 800; font-display: swap; src: url('fraunces-800-daf58e7501.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 500; font-display: swap; src: url('nunito-500-23ae3083db.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('nunito-800-2363d3ed03.woff2') format('woff2'); }

:root {
  --papier: #f4ead5;
  --papier-hell: #fbf5e6;
  --tinte: #2a2420;
  --tinte-weich: #5b5049;
  --feuer: #c3321f;
  --feuer-dunkel: #9a2418;
  --messing: #c9a24b;
  --tanne: #24402b;
  --titel: 'Fraunces', Georgia, serif;
  --text: 'Nunito', system-ui, sans-serif;
  --breite: min(1180px, 100% - 2rem);
  --knopf-emaille: linear-gradient(180deg, #d23d25 0%, #c3321f 55%, #9a2418 100%);
  --knopf-emaille-rand: inset 0 1px 0 rgba(255, 222, 196, 0.45), inset 0 0 0 1px rgba(110, 18, 8, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  --messing-ring: 0 0 0 1px rgba(105, 68, 16, 0.85), 0 0 0 2.5px #d6ad5e, 0 0 0 3.5px rgba(105, 68, 16, 0.5);
  --messing-ring-fein: 0 0 0 1px rgba(105, 68, 16, 0.55), 0 0 0 2px #dcb76c;
  --karte-schatten: 0 1px 2px rgba(60, 35, 15, 0.08), 0 8px 24px rgba(60, 35, 15, 0.08);
  --fokus: #7a2a1c;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--tinte);
  background: var(--papier) url('pergament-f753f64ad0.webp') repeat;
  background-size: 512px;
  font: 500 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--feuer-dunkel); text-underline-offset: 0.2em; }
a:hover { color: var(--feuer); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--titel); color: var(--tinte); letter-spacing: -0.005em; text-wrap: balance; }
h2 { margin: 0 0 0.7rem; font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.15; }
p { margin: 0 0 0.9rem; }
.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.6rem 1rem; border-radius: 8px; background: var(--papier-hell); font-weight: 800; }
.sprung:focus { top: 0.6rem; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 11px;
  font: 800 1rem/1.15 var(--text);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.14s ease-out, filter 0.14s;
}
.knopf--rot { color: #fff; background: var(--knopf-emaille) #c3321f; box-shadow: var(--knopf-emaille-rand), var(--messing-ring), 0 4px 12px rgba(150, 30, 10, 0.3); text-shadow: 0 1px 0 rgba(90, 15, 5, 0.35); }
.knopf--rot:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }
.knopf--gross { min-height: 3.4rem; padding: 0.85rem 1.6rem; font-size: 1.1rem; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 5; background: rgba(251, 245, 230, 0.97); border-bottom: 3px double rgba(160, 118, 40, 0.7); box-shadow: 0 6px 18px rgba(60, 35, 15, 0.08); }
.kopf__innen { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.6rem); width: var(--breite); min-height: 4.25rem; margin-inline: auto; }
.kopf__marke { flex: none; line-height: 0; }
.kopf__marke img { width: 112px; }
.kopf__nav { display: flex; gap: clamp(0.5rem, 2vw, 1.4rem); margin-right: auto; }
.kopf__nav a { padding: 0.5rem 0.15rem; font-weight: 800; color: var(--tinte); text-decoration: none; white-space: nowrap; }
.kopf__nav a:hover, .kopf__nav a[aria-current] { color: var(--feuer-dunkel); text-decoration: underline; text-decoration-thickness: 2px; }
.sprache { display: flex; gap: 0.15rem; font-weight: 800; font-size: 0.9rem; }
.sprache a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.3rem 0.55rem; border-radius: 8px; color: var(--tinte); text-decoration: none; }
.sprache a[aria-current] { background: rgba(201, 162, 75, 0.25); box-shadow: var(--messing-ring-fein); }
.kopf .knopf { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.95rem; }
.kurz { display: none; }

/* ---------- Inhalt ---------- */
main { width: var(--breite); margin-inline: auto; padding: 1rem 0 clamp(2.5rem, 6vw, 4rem); }
.pfad ol { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin: 0.4rem 0 1.2rem; padding: 0; list-style: none; font-size: 0.92rem; color: var(--tinte-weich); }
.pfad li + li::before { content: '›'; margin-right: 0.5rem; color: var(--messing); }
.pfad a { color: var(--tinte-weich); }

.held { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.2rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(1.8rem, 5vw, 3rem); }
.kicker { margin: 0 0 0.4rem; font-weight: 800; font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--feuer-dunkel); }
.held h1 { margin: 0 0 0.9rem; font-weight: 800; font-size: clamp(2.05rem, 4.6vw, 3.3rem); line-height: 1.06; }
.lead { font-size: 1.12rem; color: var(--tinte-weich); max-width: 60ch; }
.held__knopf { margin: 1.4rem 0 0.6rem; }
.klein { font-size: 0.92rem; color: var(--tinte-weich); }
.bild { margin: 0; }
.bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 0 0 1px rgba(105, 68, 16, 0.35), 0 0 0 5px var(--papier-hell), 0 0 0 6px rgba(160, 118, 40, 0.55), 0 14px 32px rgba(60, 35, 15, 0.22); }
.bild figcaption { margin-top: 0.85rem; font-size: 0.9rem; color: var(--tinte-weich); }

.block { margin: 0 0 1.4rem; padding: clamp(1.1rem, 3vw, 1.8rem); border-radius: 16px; background: rgba(251, 245, 230, 0.86); box-shadow: 0 0 0 1px rgba(107, 74, 46, 0.14), var(--karte-schatten); }
.block > :last-child { margin-bottom: 0; }
.spalten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-bottom: 1.4rem; }
.spalten > .block { margin: 0; }

.orte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.orte a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.9rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(107, 74, 46, 0.22), 0 1px 2px rgba(60, 35, 15, 0.06);
  color: var(--tinte);
  font-weight: 800;
  text-decoration: none;
}
.orte a::after { content: '›'; margin-left: 0.2rem; color: var(--feuer); font-size: 1.2rem; line-height: 1; }
.orte a:hover { box-shadow: inset 0 0 0 2px var(--feuer), 0 2px 6px rgba(150, 30, 10, 0.12); color: var(--feuer-dunkel); }
.orte__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.orte__hoehe { flex: none; font-weight: 500; font-size: 0.86rem; color: var(--tinte-weich); }
.orte-gruppe { margin: 1.3rem 0 0; font: 800 1.08rem/1.3 var(--titel); }

.fakten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1rem; margin: 0.9rem 0; }
.fakten dt { font-weight: 800; }
.fakten dd { margin: 0; color: var(--tinte-weich); }
.quelle { font-size: 0.85rem; color: var(--tinte-weich); }
.ff h3 { margin: 1rem 0 0.4rem; font: 800 1.05rem/1.3 var(--titel); }
.ff ul, .links { margin: 0; padding-left: 1.15rem; }
.ff li, .links li { margin: 0.15rem 0; }
.ff li span, .links li span { color: var(--tinte-weich); font-size: 0.92rem; }
.links { columns: 2 14rem; column-gap: 2rem; }
.links li { break-inside: avoid; }
.schritte { margin: 0.4rem 0 1.2rem; padding-left: 1.4rem; }
.schritte li { margin: 0.35rem 0; }
.schritte li::marker { font-family: var(--titel); font-weight: 800; color: var(--feuer); }

/* ---------- Übersichten ---------- */
.laender { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.laender a { display: block; height: 100%; padding: 0.7rem 0.7rem 1rem; border-radius: 14px; background: #fffaf0; box-shadow: 0 0 0 1px rgba(107, 74, 46, 0.18), var(--karte-schatten); color: var(--tinte); text-decoration: none; }
.laender a:hover { box-shadow: 0 0 0 2px var(--feuer), var(--karte-schatten); }
.laender img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; }
.laender strong { display: block; margin: 0.7rem 0.2rem 0.1rem; font: 800 1.3rem/1.2 var(--titel); }
.laender span { display: block; margin: 0 0.2rem; font-size: 0.95rem; color: var(--tinte-weich); }
.gemeinden { columns: 3 15rem; column-gap: 2rem; margin: 0.4rem 0 0; padding: 0; list-style: none; }
.gemeinden li { break-inside: avoid; margin: 0; }
.gemeinden a { display: inline-block; padding: 0.3rem 0; font-weight: 800; }
.gemeinden span { color: var(--tinte-weich); font-size: 0.88rem; }
.bezirk + .bezirk { margin-top: 1.4rem; }
.bezirk h2 { font-size: 1.3rem; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tanne) linear-gradient(180deg, #2c4c33, #203a26); color: #f4ead5; border-top: 3px double rgba(214, 173, 94, 0.75); --fokus: #f3d27a; }
.fuss__innen { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; width: var(--breite); margin-inline: auto; padding: 2.4rem 0 1.6rem; }
.fuss p { color: #e9dcc0; font-size: 0.98rem; }
.fuss h2 { margin: 0 0 0.6rem; font-size: 1.05rem; color: #fbf5e6; }
.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss a { display: inline-block; padding: 0.35rem 0; color: #fbf5e6; text-decoration-color: rgba(214, 173, 94, 0.6); }
.fuss a:hover { color: #ffd9a0; }
.fuss__marke img { width: 150px; margin-bottom: 0.8rem; }
.fuss .sprache { margin-top: 0.8rem; gap: 0.4rem; }
.fuss .sprache a { padding: 0.3rem 0.7rem; color: #fbf5e6; text-decoration: none; }
.fuss .sprache a[aria-current] { background: rgba(244, 234, 213, 0.14); box-shadow: var(--messing-ring-fein); }
.fuss__unten { width: var(--breite); margin-inline: auto; padding: 1rem 0 1.6rem; border-top: 1px solid rgba(244, 234, 213, 0.18); font-size: 0.88rem; color: #d9cba9; }
.fuss__unten p { margin: 0 0 0.3rem; font-size: inherit; color: inherit; }
.fuss__unten a { display: inline; padding: 0; color: #f4ead5; }

@media (max-width: 860px) {
  .held, .spalten, .fuss__innen { grid-template-columns: minmax(0, 1fr); }
  .kopf__nav a + a { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .kopf__innen { gap: 0.5rem; }
  .kopf__marke img { width: 84px; }
  .kopf__nav { display: none; }
  .sprache { margin-left: auto; }
  .lang { display: none; }
  .kurz { display: inline; }
  .knopf--gross { width: 100%; }
  .fakten { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .fakten dd { margin-bottom: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .knopf { transition: none; }
}
