/* ══════════════════════════════════════════════════════════════════════════
   chrome.css — EIN Kopf und EIN Fuß für alle öffentlichen Seiten
   von wilhelm-media.at (Startseite, /de/, /exploration/, Unterseiten, /agb/).
   Das Markup dazu kommt aus _seo/chrome.py — nicht von Hand in Seiten ändern.
   Eigenständig: hängt an keinen Variablen der einzelnen Seiten.
   ══════════════════════════════════════════════════════════════════════════ */

.wm-nav, .wm-foot {
  --wm-deep: #2B3332; --wm-deeper: #222928; --wm-mid: #356964; --wm-accent: #32938B; --wm-bright: #02E8D3;
  --wm-ink: #111827; --wm-ink-mid: #4B5563; --wm-ink-muted: #8A939E; --wm-line: rgba(0,0,0,.07);
  --wm-sans: 'Outfit', system-ui, sans-serif; --wm-serif: 'Cormorant Garamond', Georgia, serif;
  --wm-ease: cubic-bezier(.4,0,.2,1);
  font-family: var(--wm-sans); font-weight: 400; line-height: 1.5; box-sizing: border-box;
}
.wm-nav *, .wm-foot * { box-sizing: border-box; margin: 0; padding: 0; }
.wm-nav a, .wm-foot a { text-decoration: none; }

/* zweisprachige Seiten (Startseite, Exploration): beide Fassungen stehen im Markup, <html lang> wählt */
.wm-l[lang="en"] { display: none; }
html[lang|="en"] .wm-l[lang="en"] { display: inline; }
html[lang|="en"] .wm-l[lang="de"] { display: none; }

/* ── KOPF ─────────────────────────────────────────────────────────────────── */
.wm-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245,250,249,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--wm-line);
}
.wm-nav-in {
  max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem);
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wm-logo { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.wm-logo img { height: 22px; width: auto; display: block; animation: wmLogoBreath 9s ease-in-out infinite; }
@keyframes wmLogoBreath {
  0%, 100% { filter: brightness(1) opacity(.85); }
  45%, 55% { filter: brightness(.5) opacity(.5) drop-shadow(0 0 5px rgba(2,232,211,.55)); }
}
.wm-logo span {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--wm-ink); white-space: nowrap;
}
.wm-menu { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2rem); margin-left: auto; }
.wm-menu a {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--wm-ink-mid); white-space: nowrap;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .2s var(--wm-ease), border-color .2s var(--wm-ease);
}
.wm-menu a:hover { color: var(--wm-mid); border-bottom-color: var(--wm-mid); }
.wm-menu a[aria-current="page"] { color: var(--wm-accent); border-bottom-color: var(--wm-accent); }
.wm-nav-right { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

/* Exploration: der eine Knopf — auf jeder Seite an derselben Stelle */
.wm-nav a.wm-cta {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: var(--wm-deep);
  padding: .62em 1.15em; border-radius: 999px; border: 1px solid var(--wm-deep);
  transition: background .2s var(--wm-ease), border-color .2s var(--wm-ease), color .2s var(--wm-ease);
}
.wm-nav a.wm-cta::after { content: '→'; font-size: 1.05em; line-height: 1; transition: transform .2s var(--wm-ease); }
.wm-nav a.wm-cta:hover { background: var(--wm-accent); border-color: var(--wm-accent); color: #fff; }
.wm-nav a.wm-cta:hover::after { transform: translateX(3px); }
.wm-nav a.wm-cta[aria-current="page"] { background: transparent; color: var(--wm-accent); border-color: var(--wm-accent); }
.wm-nav a.wm-cta[aria-current="page"]::after { content: '↓'; }

.wm-nav .lang-toggle {
  display: flex; align-items: center; gap: .3rem;
  background: none; border: 1px solid var(--wm-line); border-radius: 999px; padding: .3em .8em;
  cursor: pointer; font-family: var(--wm-sans); font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  color: var(--wm-ink-muted); transition: border-color .2s, color .2s; line-height: 1.5;
}
.wm-nav .lang-toggle:hover { border-color: var(--wm-accent); color: var(--wm-accent); }
.wm-nav .lang-sep { opacity: .3; }
.wm-nav .lang-opt.active { color: var(--wm-accent); }

.wm-burger {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 30px; height: 30px; padding: 4px; background: none; border: 0; cursor: pointer;
}
.wm-burger span {
  display: block; height: 1.5px; width: 100%; background: var(--wm-ink); border-radius: 2px;
  transition: transform .25s var(--wm-ease), opacity .2s;
}
.wm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.wm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.wm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .wm-burger { display: flex; }
  .wm-menu {
    position: absolute; top: 58px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #F5FAF9; box-shadow: 0 18px 30px -18px rgba(17,24,39,.35);
    border-bottom: 1px solid var(--wm-line);
    padding: .3rem clamp(1.25rem, 5vw, 3rem) 1.1rem;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s var(--wm-ease), transform .2s var(--wm-ease), visibility 0s .2s;
  }
  .wm-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .wm-menu a { padding: .95rem 0; border-bottom: 1px solid var(--wm-line); font-size: .78rem; }
  .wm-menu a:last-child { border-bottom: 0; }
  .wm-menu a[aria-current="page"] { border-bottom-color: var(--wm-line); }
}
@media (max-width: 460px) {
  .wm-logo span { display: none; }
  .wm-nav-right { gap: .5rem; }
}

/* ── FUSS ─────────────────────────────────────────────────────────────────── */
.wm-foot {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--wm-deeper); color: rgba(217,226,223,.62);
  border-top: 1px solid rgba(2,232,211,.14);
  font-size: .9rem; font-weight: 300;
}
/* zwei Knicklinien — dasselbe Papier wie auf der Exploration */
.wm-foot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, transparent 61.9%, rgba(2,232,211,.06) 61.97%, rgba(2,232,211,.06) 62.03%, transparent 62.1%),
    linear-gradient(243deg, transparent 77.9%, rgba(2,232,211,.04) 77.97%, rgba(2,232,211,.04) 78.03%, transparent 78.1%),
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(53,105,100,.28), transparent 60%);
}
.wm-foot-in {
  position: relative; max-width: 1100px; margin-inline: auto;
  padding: clamp(2.6rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.2rem clamp(1.5rem, 4vw, 3.5rem);
}
.wm-foot-mark { font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: #EDF2F0; }
.wm-foot-mark i { font-style: normal; color: var(--wm-bright); }
.wm-foot-claim { font-family: var(--wm-serif); font-style: italic; font-size: 1.32rem; line-height: 1.3; color: #D9E2DF; margin-top: .7rem; }
.wm-foot address { font-style: normal; margin-top: 1.1rem; font-size: .86rem; line-height: 1.6; }
.wm-foot h2 {
  font-family: var(--wm-sans); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--wm-bright); opacity: .8; margin-bottom: .9rem; line-height: 1.5; max-width: none;
}
.wm-foot ul { list-style: none; }
.wm-foot li { margin: 0; padding: .26rem 0; border: 0; color: inherit; }
.wm-foot a { color: rgba(237,242,240,.86); transition: color .2s var(--wm-ease); }
.wm-foot a:hover { color: var(--wm-bright); }
.wm-foot-cta { color: var(--wm-bright) !important; font-weight: 500; }
.wm-foot-bar {
  position: relative; max-width: 1100px; margin-inline: auto;
  padding: 1.15rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
  border-top: 1px solid rgba(2,232,211,.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .76rem; color: rgba(143,163,158,.75);
}
.wm-foot-bar a { color: rgba(217,226,223,.75); }
.wm-foot-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
@media (max-width: 860px) { .wm-foot-in { grid-template-columns: 1fr 1fr; } .wm-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .wm-foot-in { grid-template-columns: 1fr; } }
@media print { .wm-nav, .wm-foot { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .wm-logo img { animation: none; } }
.wm-nav :focus-visible, .wm-foot :focus-visible { outline: 2px solid var(--wm-accent); outline-offset: 3px; border-radius: 2px; }
