/* AG WU Kontakt-Finder: sieht aus wie ein Teil von ag-wu.at (Menüleiste, oranger Kopfbereich mit Streifen,
   eckige Karten mit orangem Rand oben, Archia-Schrift, orange Fußzeile). Mobile-first.
   Die Schrift liegt im Ordner assets/fonts (Kopie von ag-wu.at, selber Server). Farben ändern: nur die Variablen im :root-Block. */

@font-face { font-family: Archia; font-weight: 300; font-style: normal; font-display: swap; src: url("../assets/fonts/archia-light.woff") format("woff"); }
@font-face { font-family: Archia; font-weight: 400; font-style: normal; font-display: swap; src: url("../assets/fonts/archia-regular.woff") format("woff"); }
@font-face { font-family: Archia; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/archia-semibold.woff") format("woff"); }
@font-face { font-family: Archia; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/archia-bold.woff") format("woff"); }

:root {
  color-scheme: light;

  /* Marke (Orange von ag-wu.at) */
  --brand: #FB7A08;
  --brand-deep: #EC671A;
  --on-brand: #1C1207;          /* dunkle Schrift auf Orange: Kontrast ca. 6,9:1 (Weiß wäre nur 2,7:1) */
  --brand-head: #EC671A;        /* große Überschriften auf Weiß */
  --brand-ink: #B34A00;         /* kleiner orangefarbener Text auf hellem Grund (AA-Kontrast) */
  --brand-soft: #FFEFDD;
  --dark: #1C1207;              /* dunkles Braun */
  --stripe-1: #FCA252;          /* die zwei hellen Streifen unter dem Kopfbereich */
  --stripe-2: #FACA8A;

  /* Flächen und Text */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #1F2328;
  --muted: #5B6168;
  --line: #EDE6DE;
  --focus: #1F2328;
  --example-bg: #FDE9A6;
  --example-text: #4A3700;

  --shadow: 6px 9px 25px -4px rgba(0, 0, 0, .22);
  --shadow-btn: 4px 6px 16px -4px rgba(0, 0, 0, .38);

  --font: Archia, "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
a { color: inherit; }

.wrap, .wrap--wide {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left)) max(1rem, env(safe-area-inset-right));
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: .75rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.skip:focus { top: .75rem; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* ---------- Kopfbereich: orange mit zwei hellen Streifen, Menüleiste wie auf ag-wu.at ---------- */

.hero-band {
  position: relative;
  margin-bottom: 1.5rem; /* Platz für die zwei Streifen */
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 .75rem 0 0 var(--stripe-1), 0 1.5rem 0 0 var(--stripe-2);
}
.hero-band :focus-visible { outline-color: var(--on-brand); }

.site__bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: max(.75rem, env(safe-area-inset-top));
  padding-bottom: .5rem;
}
.site__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site__logo img { display: block; height: 3rem; width: auto; }

.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--on-brand);
  cursor: pointer;
}
.menu-btn .icon { width: 1.75rem; height: 1.75rem; stroke-width: 2.4; }
.menu-btn__close { display: none; }
.menu-open .menu-btn__open { display: none; }
.menu-open .menu-btn__close { display: inline; }

.mainnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: .25rem max(1rem, env(safe-area-inset-left)) 1rem;
  background: var(--brand);
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .28);
}
.menu-open .mainnav { display: block; }
.mainnav ul { margin: 0; padding: 0; list-style: none; }
.mainnav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--on-brand);
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(28, 18, 7, .25);
}
.mainnav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mainnav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.hero-band__inner { position: relative; z-index: 2; padding-block: 1rem 2rem; text-align: center; }
.hero-band__inner--slim { padding-block: .5rem 1.5rem; }
.hero-band__title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-band__title a { color: var(--on-brand); text-decoration: none; }
.hero-band__title::after {
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  margin: 1rem auto 0;
  background: var(--on-brand);
}
.hero-band__sub {
  margin: 1.125rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 3.6vw, 1.3125rem);
  font-weight: 700;
}

.search {
  position: relative;
  max-width: 36rem;
  margin: 1.5rem auto 0;
}
.search__icon {
  position: absolute;
  left: 1rem;
  top: calc(50% + 3px);
  translate: 0 -50%;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 3.5rem;
  padding: .75rem 1rem .75rem 2.9rem;
  border: 0;
  border-top: 6px solid var(--on-brand);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* mind. 16px, damit iOS nicht zoomt */
  box-shadow: var(--shadow);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline: 3px solid var(--on-brand); outline-offset: 2px; }

@media (min-width: 62rem) {
  .menu-btn { display: none; }
  .mainnav { display: block; position: static; padding: 0; background: transparent; box-shadow: none; }
  .mainnav ul { display: flex; align-items: center; gap: 1.75rem; }
  .mainnav a { min-height: 44px; border-bottom: 0; font-size: .875rem; }
  .mainnav a[aria-current="page"] { text-decoration: none; box-shadow: inset 0 -3px 0 var(--on-brand); }
  .site__logo img { height: 3.5rem; }
  .hero-band__inner { padding-block: 1.5rem 2.75rem; }
}

/* ---------- Inhalt ---------- */

#view { padding-block: 1.5rem 3rem; }
.view > * + * { margin-top: 1.25rem; }

h1, h2, h3 { line-height: 1.2; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
h1 {
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--brand-head);
}
h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: .75rem;
  background: var(--brand);
}
h1:focus { outline: none; }
h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
h3 { font-size: 1rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }

.lead { color: var(--muted); font-size: 1.125rem; margin: 1rem 0 0; max-width: 40rem; }

.back {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 44px;
  padding-right: .75rem;
  margin-left: -.25rem;
  color: var(--brand-ink);
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.back:hover { text-decoration: underline; text-underline-offset: 4px; }

.pagehead { margin-top: .25rem; }
.pagehead .kicker { display: block; margin-bottom: .25rem; font-size: 2rem; line-height: 1; }
.meta { margin: 1rem 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- Startseite ---------- */

.hero h1 { font-size: clamp(1.625rem, 6.5vw, 2.5rem); }

.choices { display: grid; gap: 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }

.choice {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 6.5rem;
  padding: 1.25rem 1.25rem 1.125rem;
  border-top: 6px solid var(--brand);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.choice--primary { background: var(--brand); border-top-color: var(--dark); color: var(--on-brand); }
.choice__emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--brand-soft);
  font-size: 1.75rem;
}
.choice--primary .choice__emoji { background: rgba(255, 255, 255, .6); }
.choice__text { flex: 1; font-size: 1.1875rem; font-weight: 800; line-height: 1.25; }
.choice .icon { color: var(--brand-ink); }
.choice--primary .icon { color: var(--on-brand); }

@media (hover: hover) {
  .choice:hover, .tile:hover { transform: translateY(-3px); }
}
.choice:active, .tile:active { transform: scale(.985); }

@media (min-width: 48rem) {
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice { min-height: 8rem; }
}

/* ---------- Kacheln ---------- */

.tiles { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.tiles--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  height: 100%;
  min-height: 6.5rem;
  padding: 1.125rem 1rem 1rem;
  border-top: 6px solid var(--brand);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.tile__title {
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.tile__sub { color: var(--muted); font-size: .8125rem; line-height: 1.3; hyphens: auto; overflow-wrap: break-word; }
.tile__count { color: var(--brand-ink); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tile .icon {
  position: absolute;
  right: .875rem;
  bottom: 1rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--brand-ink);
}

.tiles--list .tile { flex-direction: row; align-items: center; gap: 1rem; min-height: 5.5rem; padding-right: 2.75rem; }
.tiles--list .tile .icon { top: 50%; bottom: auto; translate: 0 -50%; }
.tiles--list .tile__sub { font-size: .9375rem; }
.tile__emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  background: var(--brand-soft);
  font-size: 1.5rem;
}
.tile__body { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }

@media (min-width: 36rem) {
  .tiles--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 62rem) {
  .tiles--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Personenkarten ---------- */

.people { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

.person {
  padding: 1.25rem;
  border-top: 6px solid var(--brand);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.person__head { display: flex; gap: 1rem; align-items: flex-start; }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.person__main { min-width: 0; flex: 1; }
.person__name { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.person__role { margin: .25rem 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }
.person__nocontact { margin-top: .875rem; }

.chips { display: flex; flex-wrap: wrap; gap: .375rem; margin: .625rem 0 0; padding: 0; list-style: none; }
.chip {
  padding: .1875rem .5rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
}

.badge {
  padding: .125rem .5rem;
  background: var(--example-bg);
  color: var(--example-text);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.actions { display: flex; flex-wrap: wrap; gap: .625rem; margin: 1.125rem 0 0; padding: 0; list-style: none; }
.actions li { flex: 1 1 8.25rem; display: flex; }

.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .5rem .75rem;
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform .12s ease, background-color .12s ease;
}
.actions li:first-child .btn,
.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn:hover { background: var(--brand-soft); }
.actions li:first-child .btn:hover,
.btn--primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn:active { transform: scale(.97); }

@media (min-width: 48rem) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- Zentrale Karte: weiße Karte mit orangem Rand oben, orange Überschrift ---------- */

.central {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 1.5rem;
  border-top: 6px solid var(--brand);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.central h2 { color: var(--brand-head); font-size: 1.5rem; font-weight: 800; }
.central h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin-top: .75rem;
  background: var(--brand);
}
.central p { margin: 1rem 0 0; max-width: 40rem; color: var(--muted); font-size: 1.0625rem; }
.central .actions { margin-top: 1.25rem; max-width: 36rem; }

@media (min-width: 48rem) {
  .central { padding: 2rem 2rem 2rem; }
}

/* ---------- Leere Zustände, Fallback ---------- */

.empty {
  padding: 1.25rem;
  border-top: 6px solid var(--brand);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
}
.empty strong { display: block; color: var(--text); margin-bottom: .25rem; }

.fallback { padding-block: 1.5rem; }
.fallback p { color: var(--muted); }
.fallback a { color: var(--brand-ink); font-weight: 800; }

/* ---------- Fußzeile: orange wie auf ag-wu.at ---------- */

.footer {
  background: var(--brand);
  color: var(--on-brand);
  font-size: .9375rem;
}
.footer__grid {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom));
}
.footer p, .footer ul, .footer address { margin: 0; padding: 0; list-style: none; font-style: normal; }
.footer__copy { font-weight: 800; }
.footer__copy span { font-weight: 400; font-size: .8125rem; }
.footer a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  color: var(--on-brand);
  text-decoration: none;
}
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .icon { width: 1.125rem; height: 1.125rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer__legal a { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.footer__legal a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: var(--on-brand); }

@media (min-width: 48rem) {
  .footer__grid { grid-template-columns: 1.2fr 1.2fr 1fr auto; align-items: center; gap: 2rem; }
}

/* ---------- Rechtstexte ---------- */

.legal { max-width: 48rem; }
.legal h1 { margin-bottom: 1.25rem; }
.legal h2 { margin: 1.75rem 0 .5rem; color: var(--brand-head); }
.legal h3 { margin: 1.25rem 0 .25rem; font-size: 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 .75rem; }
.legal a { color: var(--brand-ink); font-weight: 700; overflow-wrap: anywhere; }
main:has(.legal) #view, .legal#view { padding-bottom: 3rem; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .choice:hover, .tile:hover, .choice:active, .tile:active, .btn:active { transform: none; }
}
