/* ==========================================================================
   avioso — Archiv der Ratgeber-Community
   Palette taken verbatim from the site's original theme stylesheet
   (wp-content/themes/Answers/skins/3-green.css, 2013 snapshot).
   Layout is hand-written: the original nav was a plain two-tier bar and
   needs no framework navbar component.
   ========================================================================== */

:root {
  --av-green:        #29841f;
  --av-green-dark:   #135b0b;
  --av-green-light:  #3fa437;
  --av-pale:         #d8ffb6;
  --av-tint:         #f7fef2;
  --av-border-green: #d2dcc0;
  --av-text:         #333333;
  --av-muted:        #666666;
  --av-warm:         #6c6858;
  --av-rule:         #e5e5e5;
  --av-bg:           #ffffff;
  --av-shell:        #f4f5f1;
  --av-radius:       3px;
  --av-measure:      68ch;

  /* Pico overrides so the classless base adopts the original palette */
  --pico-font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --pico-font-size: 100%;
  --pico-line-height: 1.62;
  --pico-primary: var(--av-green);
  --pico-primary-hover: var(--av-green-dark);
  --pico-primary-focus: rgba(41, 132, 31, 0.22);
  --pico-color: var(--av-text);
  --pico-background-color: var(--av-bg);
  --pico-border-radius: var(--av-radius);
  --pico-spacing: 1rem;
  --pico-block-spacing-vertical: 1rem;
  --pico-typography-spacing-vertical: 1rem;
  --pico-form-element-spacing-vertical: .5rem;
}

/* Safeguard: nothing on this site may depend on JavaScript to become visible. */
[data-aos] { opacity: 1 !important; transform: none !important; }
.av-fade { animation: avFade .32s ease-out both; }
@keyframes avFade { from { opacity: .35; } to { opacity: 1; } }

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

body {
  background: var(--av-shell);
  color: var(--av-text);
  margin: 0;
  padding: 0;
  max-width: none;
}

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

/* ------------------------------------------------------------------ shell */
.av-shell {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--av-bg);
  border-left: 1px solid var(--av-rule);
  border-right: 1px solid var(--av-rule);
  min-height: 100vh;
}

.av-wrap { padding: 0 clamp(1rem, 4vw, 2.25rem); }

/* ------------------------------------------------------------------- nav */
/* Two tiers, both wrap-safe. min-width:0 + flex-wrap is the fleet's
   standing fix for nav links pushed past the viewport edge. */
.av-utility {
  background: var(--av-tint);
  border-bottom: 1px solid var(--av-border-green);
  font-size: .8125rem;
}
.av-utility ul {
  list-style: none;
  margin: 0;
  padding: .4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  min-width: 0;
}
.av-utility a { color: var(--av-warm); text-decoration: none; }
.av-utility a:hover, .av-utility a:focus { color: var(--av-green-dark); text-decoration: underline; }

.av-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem 1rem;
  min-width: 0;
  padding: 1.15rem 0 .9rem;
  border-bottom: 1px solid var(--av-rule);
}
.av-logo {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--av-green);
  text-decoration: none;
  line-height: 1;
  min-width: 0;
}
.av-logo:hover, .av-logo:focus { color: var(--av-green-dark); }
.av-tagline { color: var(--av-muted); font-size: .9rem; min-width: 0; }

.av-primary { background: var(--av-green); }
.av-primary ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}
.av-primary li { min-width: 0; }
.av-primary a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: .62rem clamp(.7rem, 2.2vw, 1.15rem);
  font-size: .93rem;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,.18);
}
.av-primary a:hover, .av-primary a:focus { background: var(--av-green-dark); color: #fff; }
.av-primary a[aria-current="page"] { background: var(--av-green-dark); }

/* -------------------------------------------------------------- category */
.av-cats { border-bottom: 1px solid var(--av-rule); background: #fff; }
.av-cats ul {
  list-style: none;
  margin: 0;
  padding: .6rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-width: 0;
}
.av-cats a {
  display: inline-block;
  font-size: .8rem;
  color: var(--av-green-dark);
  background: var(--av-tint);
  border: 1px solid var(--av-border-green);
  border-radius: var(--av-radius);
  padding: .18rem .55rem;
  text-decoration: none;
}
.av-cats a:hover, .av-cats a:focus { background: var(--av-pale); }

/* ------------------------------------------------------------------ main */
main { padding: 1.6rem 0 2.4rem; }
main > h1:first-child, .av-hero + h1 { margin-top: 0; }

article, main { max-width: none; }

h1 {
  font-size: clamp(1.6rem, 4.4vw, 2.15rem);
  line-height: 1.2;
  color: var(--av-green-dark);
  margin: 0 0 .85rem;
  letter-spacing: -.015em;
}
h2 {
  font-size: clamp(1.2rem, 3vw, 1.42rem);
  color: var(--av-green-dark);
  margin: 2.1rem 0 .65rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid var(--av-border-green);
}
h3 {
  font-size: 1.08rem;
  color: var(--av-warm);
  margin: 1.5rem 0 .45rem;
}
p, li { max-width: var(--av-measure); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
li { margin-bottom: .42rem; }

a { color: var(--av-green); }
a:hover, a:focus { color: var(--av-green-dark); }

/* -------------------------------------------------------------- notices */
.archiv-hinweis {
  background: var(--av-tint);
  border-left: 4px solid var(--av-green-light);
  border-radius: 0 var(--av-radius) var(--av-radius) 0;
  padding: .8rem 1rem;
  margin: 0 0 1.5rem;
  font-size: .9rem;
  color: var(--av-warm);
  max-width: var(--av-measure);
}
.archiv-hinweis strong { color: var(--av-green-dark); }

/* ---------------------------------------------------------------- images */
.av-hero { margin: 0 0 1.5rem; }
.av-hero img {
  width: 100%;
  border-radius: var(--av-radius);
  border: 1px solid var(--av-rule);
}
.av-hero figcaption {
  font-size: .8rem;
  color: var(--av-muted);
  margin-top: .45rem;
  max-width: var(--av-measure);
}

/* ------------------------------------------------------------ question list */
.q-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.q-list li {
  max-width: var(--av-measure);
  border: 1px solid var(--av-rule);
  border-left: 4px solid var(--av-green-light);
  border-radius: 0 var(--av-radius) var(--av-radius) 0;
  padding: .7rem .9rem;
  margin-bottom: .6rem;
  background: #fff;
}
.q-list a { font-weight: 600; text-decoration: none; }
.q-list a:hover, .q-list a:focus { text-decoration: underline; }
.q-teaser {
  display: block;
  font-size: .87rem;
  color: var(--av-muted);
  margin-top: .25rem;
}

.q-stub {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  max-width: var(--av-measure);
}
.q-stub li {
  font-size: .9rem;
  color: var(--av-warm);
  padding: .32rem 0 .32rem 1.4rem;
  border-bottom: 1px dotted var(--av-rule);
  position: relative;
  margin: 0;
  max-width: none;
}
.q-stub li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: .32rem;
  width: 1rem;
  text-align: center;
  font-weight: 700;
  font-size: .78rem;
  color: var(--av-green-light);
  background: var(--av-tint);
  border-radius: 2px;
}

/* ---------------------------------------------------------------- footer */
.av-footer {
  background: var(--av-tint);
  border-top: 1px solid var(--av-border-green);
  padding: 1.5rem 0 1.9rem;
  font-size: .85rem;
  color: var(--av-warm);
}
.av-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.1rem;
  min-width: 0;
}
.av-footer a { color: var(--av-green-dark); text-decoration: none; }
.av-footer a:hover, .av-footer a:focus { text-decoration: underline; }
.av-footer p { max-width: 78ch; margin: 0 0 .55rem; }
.av-legal { font-size: .8rem; color: var(--av-muted); }

/* ------------------------------------------------------------------- 404 */
.av-404 { text-align: left; padding: 1rem 0 2rem; }
.av-404 .av-code {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 700;
  color: var(--av-border-green);
  line-height: 1;
  margin: 0 0 .4rem;
}

/* ---------------------------------------------------------------- narrow */
@media (max-width: 560px) {
  .av-primary a { border-right: none; padding-left: .6rem; padding-right: .6rem; }
  .av-shell { border-left: none; border-right: none; }
  h2 { margin-top: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .av-fade { animation: none; }
}
