/* Additive Goldstandard 3.3. Bestehende Marken-CSS bleibt unangetastet. */
:root {
  --abea-header: 84px;
  --parchment: #F3EBE0;
  --umber: #2A2218;
  --sienna: #9E4B2E;
  --olive: #4F5D3C;
  --cream: #FAF6F0;

  /* Bestehende Tokens weiterverwenden, nicht ersetzen. */
  --abea-petrol: var(--green, #153f36);
  --abea-petrol-2: var(--green-2, #276a58);
  --abea-night: #0b1418;
  --abea-ink: var(--ink, #17231f);
  --abea-ink-soft: var(--ink-soft, #53635d);
  --abea-gold: var(--gold, #bd913c);
  --abea-gold-soft: var(--gold-soft, #e2cf9f);
  --abea-paper: var(--paper, #fffdf8);
  --abea-cream: var(--cream, #f7f1e7);
  --abea-burgundy: var(--burgundy, #81344e);

  /* Irisierende Akzente — sparsam, organisch. */
  --abea-sage: #8aa894;
  --abea-teal: #3d8a86;
  --abea-sky: #4a6f8f;
  --abea-violet: #6b5b8a;
  --abea-rose: #c9899a;
  --abea-coral: #d4786a;

  --abea-serif: var(--serif, Iowan Old Style, Baskerville, Georgia, serif);
  --abea-sans: var(--sans, Inter, ui-sans-serif, system-ui, sans-serif);
  --abea-hand: "Segoe Script", "Snell Roundhand", "Apple Chancery", "Bradley Hand", cursive;
  --abea-iris: linear-gradient(
    115deg,
    var(--abea-sage),
    var(--abea-teal),
    var(--abea-sky),
    var(--abea-violet),
    var(--abea-rose),
    var(--abea-coral),
    var(--abea-gold)
  );
}

.brand-mark {
  /* BrandLogo-Slot: bestehendes Zeichen kapseln, Masterlogo später tauschen. */
}

[id] {
  scroll-margin-top: calc(var(--abea-header) + 12px);
}

.hero,
.section,
.principle {
  min-width: 0;
}

.hero-copy,
.hero-lead,
.hero h1 {
  max-width: 100%;
}

.orbit img,
.brand-banner img {
  max-width: 100%;
  height: auto;
}

.abea-meaning-fallback {
  width: var(--page, min(100% - 32px, 1200px));
  margin: 0 auto;
  padding: 12px 0;
  font-size: 0.95rem;
  color: var(--abea-ink-soft);
}

.abea-meaning,
.abea-formula,
.abea-underway,
.abea-connect {
  width: var(--page, min(100% - 32px, 1200px));
  margin: 0 auto;
  padding: 28px 0 8px;
}

.abea-meaning {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.abea-meaning .abea-letters {
  margin: 0;
  font-family: var(--abea-serif);
  font-size: clamp(1.35rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.abea-meaning .abea-letters span {
  background: var(--abea-iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--abea-petrol);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .abea-meaning .abea-letters span {
    color: transparent;
  }
}

.abea-meaning .abea-actually {
  margin: 0;
  color: var(--abea-ink-soft);
  font-size: 0.95rem;
}

.abea-meaning button {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: var(--abea-petrol);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.abea-formula {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(1200px 180px at 10% 0%, #8aa89422, transparent 50%),
    var(--abea-paper);
  border: 1px solid #153f3614;
}

.abea-formula strong {
  font-family: var(--abea-serif);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.abea-formula p {
  margin: 0;
  color: var(--abea-ink-soft);
}

.abea-note {
  margin: 10px 0 0;
  font-family: var(--abea-hand);
  font-size: 1.15rem;
  color: var(--abea-burgundy);
  transform: rotate(-1.2deg);
  max-width: 22ch;
}

.doors {
  width: var(--page, min(100% - 32px, 1200px));
  margin: 0 auto;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.door-card {
  background: var(--abea-paper);
  border: 1px solid #153f361a;
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 30px #153f360c;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
}

.door-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--abea-gold);
  opacity: 0.7;
}

.door-card .eyebrow {
  margin: 0;
}

.door-card h2 {
  font-family: var(--abea-serif);
  font-size: 1.45rem;
  line-height: 1.15;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.door-card p {
  margin: 0;
  color: var(--abea-ink-soft);
  font-size: 0.95rem;
}

.abea-underway {
  display: grid;
  gap: 16px;
}

.abea-underway .abea-underway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.abea-story {
  background: var(--abea-cream);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 8px;
  border: 1px dashed #153f3626;
}

.abea-story h3 {
  margin: 0;
  font-family: var(--abea-serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.abea-story p {
  margin: 0;
  color: var(--abea-ink-soft);
  font-size: 0.95rem;
}

.abea-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 0 12px;
}

.abea-connect .abea-qr {
  width: 132px;
  height: 132px;
  background: var(--abea-paper);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 30px #153f360c;
}

.abea-connect .abea-qr img {
  width: 100%;
  height: auto;
  display: block;
}

.puli-mark {
  width: 52px;
  height: 40px;
  color: var(--abea-petrol);
  opacity: 0.85;
}

.contact-form {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 460px;
  justify-self: end;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--abea-ink);
  background: var(--abea-paper);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.contact-note,
.contact-status {
  margin: 4px 0 0;
  font-size: 13px;
  color: #f5e5e7;
}

.legal-page {
  width: var(--page, min(100% - 32px, 820px));
  margin: 0 auto;
  padding: 110px 0 80px;
}

.legal-page h1 {
  font-family: var(--abea-serif);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  margin: 12px 0 24px;
  font-weight: 500;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--abea-ink-soft);
  line-height: 1.55;
}

.legal-page ul {
  padding-left: 1.2em;
}

.footer-legal a {
  display: inline-block;
  margin-right: 16px;
}

.connect-page .abea-connect {
  padding-top: 8px;
}

@media (width <= 820px) {
  :root {
    --abea-header: 74px;
  }

  .hero {
    width: min(100% - 30px, 700px);
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch;
    min-height: auto;
  }

  .orbit {
    width: min(100%, 420px);
    margin: 36px auto 0;
    justify-self: center;
  }

  .principle {
    width: 100%;
    padding-inline: 22px;
  }

  .doors,
  .contact-form,
  .abea-underway .abea-underway-grid,
  .abea-connect {
    grid-template-columns: 1fr;
    justify-self: stretch;
    max-width: none;
  }
}

@media (width <= 980px) {
  .desktop-nav {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: relative;
  }

  .mobile-nav summary {
    cursor: pointer;
    place-content: center;
    width: 48px;
    height: 48px;
    list-style: none;
    display: grid;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary span {
    background: var(--green, #153f36);
    width: 25px;
    height: 2px;
    margin: 3px;
    display: block;
  }

  .mobile-nav:not([open]) nav {
    display: none;
  }

  .mobile-nav nav {
    z-index: 30;
    background: var(--paper, #fffdf8);
    min-width: min(220px, calc(100vw - 32px));
    box-shadow: var(--shadow, 0 24px 70px #1e2a241c);
    border: 1px solid #153f361f;
    border-radius: 18px;
    padding: 8px;
    display: grid;
    position: absolute;
    top: 56px;
    right: 0;
  }

  .mobile-nav nav a {
    padding: 12px 10px;
    font-weight: 720;
    text-decoration: none;
  }

  .hero {
    width: min(100% - 30px, 720px);
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch;
    min-height: auto;
  }

  .orbit {
    width: min(100% - 96px, 420px);
    margin: 28px auto 0;
    justify-self: center;
  }

  .section-heading,
  .section-heading > *,
  .experience,
  .experience > *,
  .experience-copy,
  .competence-list,
  .competence-list article,
  .hero-copy,
  .hero-copy > *,
  .housing-hero,
  .housing-hero > * {
    min-width: 0;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  .eyebrow,
  .abea-letters,
  .abea-formula strong {
    overflow-wrap: break-word;
  }

  .site-footer nav a,
  .footer-legal summary,
  .footer-legal a {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 15px;
  }
}

@media (width <= 540px) {
  .orbit {
    display: none;
  }

  .hero,
  .section {
    width: min(100% - 30px, 700px);
  }
}

@media (width <= 380px) {
  .hero h1,
  .housing-hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .section-heading h2,
  .experience h2,
  .stance h2,
  .lolo h2,
  .social h2,
  .contact h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .principle p {
    font-size: 26px;
  }
}

@media (height <= 500px) {
  .hero,
  .housing-hero {
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .hero .eyebrow,
  .housing-hero .eyebrow {
    margin-bottom: 8px;
  }

  .hero h1,
  .housing-hero h1 {
    font-size: clamp(30px, 4.6vw, 40px);
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .orbit,
  .housing-symbol {
    display: none;
  }
}

.site-header {
  padding-top: max(11px, env(safe-area-inset-top));
  padding-left: max(22px, 50vw - 600px, env(safe-area-inset-left));
  padding-right: max(22px, 50vw - 600px, env(safe-area-inset-right));
}

.site-footer {
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .abea-note {
    transform: none;
  }
}

a.easy-language-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.desktop-nav a.easy-language-link {
  color: var(--green, #153f36);
  background: var(--paper, #fffdf8);
  border: 1px solid #153f3640;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-nav a.easy-language-link:after {
  content: none;
}

.site-footer a.easy-language-link,
.site-footer #abea-os-entry {
  color: #fff;
}

a.easy-language-link:focus-visible {
  outline: 3px solid var(--gold, #bd913c);
  outline-offset: 3px;
}

body {
  font-size: 18px;
  line-height: 1.55;
}

.button {
  min-height: 44px;
  min-width: 44px;
}

:focus-visible {
  outline: 3px solid var(--sienna, #9E4B2E);
  outline-offset: 3px;
}

.form-privacy {
  margin: 12px 0 0;
  color: #f7f1e7;
  font-size: 18px;
  line-height: 1.5;
  max-width: 68ch;
}

.form-privacy a {
  color: #fffdf8;
}

@media (prefers-reduced-motion: reduce) {
  .button:hover {
    transform: none;
  }
}

.abea-barrier-ribbon {
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.abea-barrier-ribbon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 760px) {
  .abea-barrier-ribbon {
    height: 30px;
  }
}

@media (min-width: 1100px) {
  .abea-barrier-ribbon {
    height: 36px;
  }
}

/* Stickers sit in the page, one at a time. Not a second gallery. */

.abea-sticker {
  width: min(250px, 78vw);
  max-width: 100%;
  margin: 12px 0 0;
  line-height: 0;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(42, 34, 24, 0.2));
}

.abea-sticker img {
  display: block;
  width: 100%;
  height: auto;
}

.abea-sticker--jewel {
  width: min(230px, 64vw);
}

.abea-sticker--open {
  width: min(420px, 100%);
}

.abea-sticker--mark {
  width: min(280px, 78vw);
}

.abea-sticker--turn-l {
  transform: rotate(-2deg);
}

.abea-sticker--jewel.abea-sticker--turn-l {
  transform: rotate(-7deg);
}

.abea-sticker--turn-r {
  transform: rotate(1.6deg);
}

.abea-open,
.abea-mark {
  display: grid;
  align-items: center;
  gap: 6px 36px;
}

@media (min-width: 981px) {
  .home-next .hero.abea-open {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 460px);
    column-gap: clamp(28px, 4vw, 72px);
    align-items: center;
    row-gap: 0;
  }

  .home-next .hero.abea-open > :not(.abea-sticker) {
    grid-column: 1;
  }

  .home-next .hero.abea-open > .abea-sticker--jewel {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: end;
    width: min(228px, 100%);
    margin: 0 8px -36px 0;
    position: relative;
    z-index: 1;
  }

  .home-next .hero.abea-open > .abea-sticker--open {
    grid-column: 2;
    grid-row: 3 / 6;
    justify-self: start;
    align-self: center;
    width: min(460px, 100%);
    margin: 0;
  }

  .page-open .abea-open,
  .connect-page .abea-open {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 360px);
  }

  .abea-open > .abea-sticker--open,
  .connect-page .abea-open > .abea-sticker--jewel,
  .page-open .abea-open > .abea-sticker--jewel {
    grid-column: 2;
    grid-row: 1 / span 12;
    justify-self: end;
    align-self: center;
    margin: 0;
  }

  .page-open .abea-open > :not(.abea-sticker),
  .connect-page .abea-open > :not(.abea-sticker) {
    grid-column: 1;
  }

  .abea-mark {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .abea-mark > .abea-sticker {
    justify-self: end;
    margin: 0;
  }

  .home-next .home-intro.abea-mark {
    max-width: none;
  }

  .haltung-section .abea-mark .abea-sticker--open {
    width: min(340px, 34vw);
  }

  .connect-page .abea-sticker--jewel {
    width: min(250px, 100%);
  }
}

@media (width <= 980px) {
  .home-next .hero.abea-open > .eyebrow {
    order: 1;
  }

  .home-next .hero.abea-open > h1 {
    order: 2;
  }

  .home-next .hero.abea-open > .abea-sticker--jewel {
    order: 3;
    width: min(230px, 68vw);
    margin: 16px 0 4px auto;
  }

  .home-next .hero.abea-open > .hero-actions {
    order: 4;
  }

  .home-next .hero.abea-open > .abea-sticker--open {
    order: 5;
    width: min(340px, 94vw);
    margin: 18px 0 0;
  }

  .home-next .hero.abea-open > .home-position {
    order: 6;
  }

  .home-next .hero.abea-open > .home-place {
    order: 7;
  }

  .page-open .abea-open > .abea-sticker--open,
  .connect-page .abea-open > .abea-sticker--jewel,
  .page-open .abea-open > .abea-sticker--jewel {
    width: min(330px, 88vw);
    margin: 10px 0 12px auto;
  }
}

.example-card .abea-sticker {
  width: min(188px, 80%);
  margin: 16px 0 0 auto;
}

.memorial-card .abea-sticker {
  width: min(260px, 88%);
  margin: 8px 0 10px auto;
}

.housing-hero .abea-sticker--open {
  width: min(420px, 100%);
  margin: 4px 0 8px;
}

.search-facts .abea-sticker {
  width: min(250px, 86%);
  margin: 22px 0 0 auto;
}

.abea-qr-pair {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.abea-qr-pair .abea-sticker {
  width: min(196px, 62vw);
  margin: 0;
}
