/* A-Gentur · a-gentur.com · Prefinal 01 (2026-11-02)
   Papier & Linie: weißes Zeichenpapier (Milas Scan), Grafit, eine Safran-Sonne, Vollkorn.
   Klassen-Präfix ag- · Breakpoints 600 / 1024 px · keine externen Schriften, keine CDNs. */

@font-face { font-family: "Vollkorn"; src: url(../fonts/vollkorn-var.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url(../fonts/vollkorn-italic-var.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --ag-ink: #1A1917;
  --ag-soft: #5C5852;
  --ag-sun: #F0B23A;
  --ag-sun-deep: #8E6512;
  --ag-paper: #FFFFFF;
  --ag-rule: rgba(26, 25, 23, .22);
  --ag-tex: url(../img/kagit-weiss-kraeftig-1024.webp);   /* Rückfall; siehe @supports darunter */
  --ag-ease: cubic-bezier(.16, 1, .3, 1);
  --ag-pad: 72px;
}
/* Papier: gleiche Kachel in zwei Auflösungen. Einfache Bildschirme laden 512 px (30 KB), Retina 1024 px. */
@supports (background-image: image-set(url("x.webp") 1x)) {
  :root { --ag-tex: image-set(url(../img/kagit-weiss-kraeftig-512.webp) 1x, url(../img/kagit-weiss-kraeftig-1024.webp) 2x); }
}
@media (max-width: 1024px) { :root { --ag-pad: 24px; } }
@media (max-width: 600px) { :root { --ag-pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ag-paper); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ag-ink);
  font-family: "Vollkorn", Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.55;
  background: var(--ag-paper) var(--ag-tex) repeat; background-size: 512px 512px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: var(--ag-sun-deep); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: rgba(142, 101, 18, .55); }
a:hover { color: var(--ag-ink); text-decoration-color: var(--ag-ink); }
:focus-visible { outline: 2px solid var(--ag-ink); outline-offset: 3px; }
::selection { background: var(--ag-sun); color: var(--ag-ink); }
button { font: inherit; color: inherit; }

.ag-skip { position: absolute; left: -999px; top: 8px; background: var(--ag-ink); color: var(--ag-paper); padding: 8px 14px; z-index: 200; }
.ag-skip:focus { left: 8px; }

.ag-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--ag-pad); padding-right: var(--ag-pad); }

/* Kopfzeile */
.ag-top { position: absolute; left: 0; right: 0; top: 0; z-index: 10; }
.ag-top__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 76px; }
.ag-top__logo img { height: 36px; width: 116px; }
.ag-nav { display: flex; align-items: center; gap: 36px; font-size: 17px; font-weight: 500; }
.ag-nav a { color: var(--ag-ink); text-decoration: none; position: relative; padding: 6px 0; }
.ag-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ag-ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ag-ease); }
.ag-nav a:hover::after, .ag-nav a:focus-visible::after { transform: scaleX(1); }
.ag-nav .ag-nav__k { display: inline-flex; align-items: center; gap: 10px; }
.ag-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ag-sun); flex: none; }
@media (max-width: 1024px) { .ag-nav a:not(.ag-nav__k) { display: none; } }

/* Intro: Platz des Films. Prefinal: das Zeichen wird mit Kohle gezeichnet (Canvas). */
.ag-intro { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.ag-intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ag-intro__still { position: absolute; left: 50%; top: 48%; width: min(62vw, 1040px); transform: translate(-50%, -50%); }
.ag-intro.is-js .ag-intro__still { display: none; }
.ag-intro__copy { position: absolute; left: calc(var(--ag-pad) + 24px); bottom: 104px; max-width: 34ch; }
.ag-intro__copy p:first-child { font-size: 22px; font-weight: 500; line-height: 1.4; }
.ag-intro__copy p + p { margin-top: 6px; font-size: 15px; color: var(--ag-soft); }
.ag-intro__ctl { position: absolute; right: var(--ag-pad); bottom: 56px; display: flex; gap: 8px; }
.ag-btn-pill { min-width: 44px; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--ag-ink); background: rgba(255,255,255,.6); color: var(--ag-ink); font-size: 14px; cursor: pointer; }
.ag-btn-pill:hover { background: var(--ag-ink); color: var(--ag-paper); }
.ag-intro__down { position: absolute; left: 50%; bottom: 48px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; color: var(--ag-ink); }
@media (max-width: 600px) {
  .ag-intro__copy { left: 20px; right: 20px; bottom: 112px; }
  .ag-intro__ctl { bottom: 24px; right: 20px; }
  .ag-intro__down { left: 20px; transform: none; bottom: 24px; }
  .ag-intro__still { width: 86vw; }
}

/* Die Linie führt weiter */
.ag-linie { display: block; width: 100%; height: 40px; overflow: visible; }
.ag-linie path { fill: none; stroke: var(--ag-ink); stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.is-js .ag-linie path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* Abschnitte, Typografie */
.ag-sec { padding: 96px 0 128px; }
.ag-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ag-h1 { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.06; font-weight: 500; letter-spacing: -.01em; }
.ag-h2 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; font-weight: 500; letter-spacing: -.01em; }
.ag-h3 { font-size: clamp(24px, 2.1vw, 30px); line-height: 1.2; font-weight: 500; }
.ag-lead { font-size: 20px; line-height: 1.55; }
.ag-soft { color: var(--ag-soft); }
.ag-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ag-ink); color: var(--ag-paper); text-decoration: none; font-size: 17px; font-weight: 500; position: relative; }
.ag-btn:hover { color: var(--ag-paper); }
.ag-btn__ring { position: absolute; inset: -7px; pointer-events: none; }
.ag-btn__ring path { fill: none; stroke: var(--ag-ink); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ag-ease); }
.ag-btn:hover .ag-btn__ring path, .ag-btn:focus-visible .ag-btn__ring path { stroke-dashoffset: 0; }

.ag-einleitung .ag-h1 { grid-column: 1 / span 7; max-width: 14ch; }
.ag-einleitung__text { grid-column: 9 / span 4; padding-top: 14px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 1024px) { .ag-einleitung .ag-h1, .ag-einleitung__text { grid-column: 1 / -1; } }

/* Leistungen: der Tisch. Eine Linie zeichnet die Blätter, die Sonne reist auf ihr. */
.ag-tisch { position: relative; padding: 64px 0 160px; }
.ag-tisch__kopf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; margin-bottom: 96px; }
.ag-tisch__kopf .ag-h2 { grid-column: 1 / span 6; }
.ag-tisch__kopf p { grid-column: 7 / span 5; padding-top: 14px; }
.ag-tisch__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ag-tisch__svg path { fill: none; stroke: var(--ag-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1025px) { .ag-tisch__svg path { filter: url(#ag-kohle); } } /* leichte Kohle-Unruhe, nur Desktop */
.ag-sonne { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ag-sun); pointer-events: none; display: none; will-change: transform; }
.is-js .ag-sonne { display: block; }
.ag-blaetter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; position: relative; }
.ag-blatt { position: relative; background: var(--ag-paper) var(--ag-tex) repeat; background-size: 512px 512px; border: 1px solid var(--ag-rule); padding: 36px 36px 40px; min-height: 264px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 1px 0 rgba(26,25,23,.05), 0 28px 44px -36px rgba(26,25,23,.55); transition: transform .55s var(--ag-ease), box-shadow .55s var(--ag-ease); }
.is-js .ag-blatt { border-color: transparent; }
.ag-blatt:hover, .ag-blatt:focus-within { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(26,25,23,.05), 0 40px 56px -36px rgba(26,25,23,.6); }
.ag-blatt__icon { width: 40px; height: 40px; }
.ag-blatt__icon path, .ag-blatt__icon circle, .ag-blatt__icon rect { fill: none; stroke: var(--ag-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.4s var(--ag-ease); }
.ag-blatt.is-in .ag-blatt__icon path, .ag-blatt.is-in .ag-blatt__icon circle, .ag-blatt.is-in .ag-blatt__icon rect, .ag-blatt:hover .ag-blatt__icon path, .ag-blatt:hover .ag-blatt__icon circle, .ag-blatt:hover .ag-blatt__icon rect { stroke-dashoffset: 0; }
.ag-blatt h3 a { color: var(--ag-ink); text-decoration: none; }
.ag-blatt h3 a::after { content: ""; position: absolute; inset: 0; }
.ag-blatt p { color: var(--ag-soft); font-size: 17px; }
.ag-blatt__mehr { margin-top: auto; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; color: var(--ag-ink); }
.ag-blatt__mehr svg { width: 18px; height: 18px; transition: transform .45s var(--ag-ease); }
.ag-blatt:hover .ag-blatt__mehr svg { transform: translateX(6px); }
/* Zickzack auf dem Tisch: ein Blatt je Reihe, die Linie läuft zwischen ihnen hindurch */
.ag-blatt:nth-child(odd) { grid-column: 1 / span 6; }
.ag-blatt:nth-child(even) { grid-column: 6 / span 7; }
.ag-blatt:nth-child(3) { grid-column: 2 / span 6; }
.ag-blatt:nth-child(4) { grid-column: 7 / span 6; }
.ag-blatt:nth-child(7) { grid-column: 3 / span 7; }
.ag-tisch__svg, .ag-sonne { z-index: 2; }
@media (max-width: 1024px) {
  .ag-tisch__kopf .ag-h2, .ag-tisch__kopf p { grid-column: 1 / -1; }
  .ag-blatt:nth-child(n) { grid-column: 1 / -1; min-height: 0; }
  .ag-blaetter { row-gap: 56px; }
}

/* Branchen */
.ag-branchen__kopf { margin-bottom: 48px; }
.ag-branchen__kopf .ag-h2 { grid-column: 1 / span 6; }
.ag-branchen__kopf p { grid-column: 7 / span 5; padding-top: 14px; }
.ag-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-bottom: 1px solid var(--ag-rule); }
.ag-liste li { display: flex; align-items: center; gap: 22px; padding: 26px 0; border-top: 1px solid var(--ag-rule); }
.ag-liste svg { width: 28px; height: 28px; flex: none; }
.ag-liste svg path, .ag-liste svg circle { fill: none; stroke: var(--ag-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.2s var(--ag-ease); }
.ag-liste li.is-in svg path, .ag-liste li.is-in svg circle, .ag-liste li:hover svg path, .ag-liste li:hover svg circle { stroke-dashoffset: 0; }
.ag-liste a { font-size: clamp(22px, 2vw, 28px); font-weight: 500; color: var(--ag-ink); text-decoration: none; }
.ag-liste a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
@media (max-width: 1024px) { .ag-branchen__kopf .ag-h2, .ag-branchen__kopf p { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ag-liste { grid-template-columns: 1fr; } }

/* Referenzen: Logo wird gezeichnet, dann erscheint das Blatt mit der Arbeit */
.ag-ref__kopf { margin-bottom: 56px; }
.ag-ref__kopf .ag-h2 { grid-column: 1 / span 6; }
.ag-ref__kopf p { grid-column: 7 / span 5; padding-top: 14px; }
.ag-ref__buehne { grid-column: 1 / span 6; position: relative; min-height: 360px; display: grid; place-items: center; }
.ag-ref__zeichen { width: 100%; max-width: 560px; }
.ag-ref__zeichen polyline { fill: none; stroke: var(--ag-ink); stroke-width: 74; stroke-linecap: round; stroke-linejoin: round; }
.is-js .ag-ref__zeichen polyline { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ag-ref__zeichen circle { fill: var(--ag-sun); transform-origin: 273.5px 180px; }
.is-js .ag-ref__zeichen circle { transform: scale(0); transition: transform .9s var(--ag-ease); }
.is-js .ag-ref__zeichen.is-done circle { transform: scale(1); }
.ag-ref__blatt { grid-column: 7 / span 6; background: var(--ag-paper) var(--ag-tex) repeat; background-size: 512px 512px; border: 1px solid var(--ag-rule); padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 28px 44px -36px rgba(26,25,23,.55); transition: transform .9s var(--ag-ease), opacity .9s var(--ag-ease); }
.is-js .ag-ref__blatt { transform: translateY(24px); }
.is-js .ag-ref__blatt.is-in { transform: none; }
.ag-ref__blatt .ag-platz { aspect-ratio: 16 / 10; display: grid; place-items: center; border: 1px dashed var(--ag-rule); color: var(--ag-soft); font-size: 15px; text-align: center; padding: 16px; filter: grayscale(1); }
.ag-ref__blatt dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; }
.ag-ref__blatt dt { color: var(--ag-soft); } .ag-ref__blatt dd { margin: 0; }
@media (max-width: 1024px) { .ag-ref__kopf .ag-h2, .ag-ref__kopf p, .ag-ref__buehne, .ag-ref__blatt { grid-column: 1 / -1; } }

/* Haltung: einzige dunkle Fläche */
.ag-haltung { background: var(--ag-ink); color: var(--ag-paper); }
.ag-haltung .ag-h2 { grid-column: 1 / span 6; color: var(--ag-paper); }
.ag-haltung__text { grid-column: 8 / span 5; padding-top: 10px; display: flex; flex-direction: column; gap: 20px; }
.ag-haltung__text .ag-soft { color: #D4D4D4; }
.ag-haltung a { color: var(--ag-sun); text-decoration-color: rgba(240,178,58,.6); }
.ag-haltung a:hover { color: var(--ag-paper); text-decoration-color: var(--ag-paper); }
.ag-haltung__logo { grid-column: 1 / span 3; height: 56px; width: 180px; margin-top: 40px; }
@media (max-width: 1024px) { .ag-haltung .ag-h2, .ag-haltung__text { grid-column: 1 / -1; } }

/* Kontakt + Fuß */
.ag-kontakt .ag-h2 { grid-column: 1 / span 7; max-width: 16ch; font-size: clamp(36px, 4.2vw, 60px); }
.ag-kontakt__text { grid-column: 9 / span 4; padding-top: 12px; display: flex; flex-direction: column; gap: 22px; }
.ag-kontakt__text ul { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
@media (max-width: 1024px) { .ag-kontakt .ag-h2, .ag-kontakt__text { grid-column: 1 / -1; } }
.ag-fuss { padding: 56px 0; border-top: 1px solid var(--ag-rule); }
.ag-fuss__marke { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 18px; }
.ag-fuss__marke img { height: 48px; width: 155px; }
.ag-fuss__sp { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.ag-fuss__sp a { color: var(--ag-ink); text-decoration: none; } .ag-fuss__sp a:hover { text-decoration: underline; }
.ag-fuss__sp:nth-of-type(2) { grid-column: 6 / span 2; } .ag-fuss__sp:nth-of-type(3) { grid-column: 8 / span 2; } .ag-fuss__sp:nth-of-type(4) { grid-column: 10 / span 3; }
.ag-fuss__unten { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 15px; color: var(--ag-soft); padding-top: 24px; border-top: 1px solid var(--ag-rule); }
.ag-fuss__unten a { color: var(--ag-soft); text-decoration: none; margin-right: 20px; }
@media (max-width: 1024px) { .ag-fuss__marke, .ag-fuss__sp:nth-of-type(n) { grid-column: span 6; } }
@media (max-width: 600px) { .ag-fuss__marke, .ag-fuss__sp:nth-of-type(n) { grid-column: 1 / -1; } }

/* Mauszeiger: Kohlepunkt (nur feine Zeiger) */
.ag-cursor { position: fixed; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ag-ink); pointer-events: none; z-index: 300; display: none; transition: width .25s var(--ag-ease), height .25s var(--ag-ease), margin .25s var(--ag-ease), background .25s, border-color .25s; }
.ag-cursor.is-link { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: transparent; border: 1.5px solid var(--ag-ink); }
@media (hover: hover) and (pointer: fine) { .has-cursor .ag-cursor { display: block; } .has-cursor, .has-cursor a, .has-cursor button { cursor: none; } }

.ag-mila { color: var(--ag-sun-deep); } /* [MILA BESTÄTIGT]-Lücken sichtbar lassen */

/* Schrift: Wörter werden mit Kohlespitze geschrieben (schrift.js setzt --ag-delay / --ag-d je Zeile) */
.ag-schrift { padding: 40px 0 120px; }
.ag-schrift__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; }
.ag-schrift__sp { grid-column: span 5; }
.ag-schrift__sp + .ag-schrift__sp { grid-column: 8 / span 5; }
.ag-schrift h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; margin-bottom: 28px; }
.ag-schrift ul { border-bottom: 0; }
.ag-schrift li { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.3; }
.ag-schrift li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ag-rule); transform-origin: left; }
.ag-schrift li:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ag-rule); transform-origin: left; }
.ag-schrift li svg { width: 26px; height: 26px; flex: none; }
.ag-schrift li svg path, .ag-schrift li svg circle, .ag-schrift li svg rect { fill: none; stroke: var(--ag-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-schreib { position: relative; display: inline-block; }
.ag-schreib__t { display: inline-block; }
@media (max-width: 1024px) { .ag-schrift__sp, .ag-schrift__sp + .ag-schrift__sp { grid-column: 1 / -1; } }

/* Bewegung nur mit JS, nur ohne reduzierte Bewegung */
.is-js [data-ag-schreiben]:not(.is-still) .ag-schreib__t { clip-path: inset(-0.25em 100% -0.35em 0); }
.is-js [data-ag-schreiben]:not(.is-still) li::before, .is-js [data-ag-schreiben]:not(.is-still) li:last-child::after { transform: scaleX(0); }
.is-js [data-ag-schreiben]:not(.is-still) li svg :is(path, circle, rect) { stroke-dasharray: 140; stroke-dashoffset: 140; }
[data-ag-schreiben].is-in:not(.is-still) .ag-schreib__t { animation: ag-schreiben var(--ag-d, 700ms) cubic-bezier(.45, .05, .55, .95) var(--ag-delay, 0ms) both; }
[data-ag-schreiben].is-in:not(.is-still) .ag-schreib::after { content: ""; position: absolute; top: 52%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ag-ink); animation: ag-spitze var(--ag-d, 700ms) cubic-bezier(.45, .05, .55, .95) var(--ag-delay, 0ms) both; pointer-events: none; }
[data-ag-schreiben].is-in:not(.is-still) li::before { animation: ag-strich calc(var(--ag-d, 700ms) + 300ms) cubic-bezier(.16, 1, .3, 1) var(--ag-delay, 0ms) both; }
[data-ag-schreiben].is-in:not(.is-still) li:last-child::after { animation: ag-strich 900ms cubic-bezier(.16, 1, .3, 1) calc(var(--ag-delay, 0ms) + var(--ag-d, 700ms)) both; }
[data-ag-schreiben].is-in:not(.is-still) li svg :is(path, circle, rect) { animation: ag-zeichnen 700ms ease-out calc(var(--ag-delay, 0ms) - 80ms) both; }
@keyframes ag-schreiben { from { clip-path: inset(-0.25em 100% -0.35em 0); } to { clip-path: inset(-0.25em 0 -0.35em 0); } }
@keyframes ag-spitze { 0% { left: 0; transform: scale(0); } 6% { transform: scale(1); } 94% { left: 100%; transform: scale(1); } 100% { left: 100%; transform: scale(0); } }
@keyframes ag-strich { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ag-zeichnen { from { stroke-dashoffset: 140; } to { stroke-dashoffset: 0; } }

/* Rechtstexte */
.ag-text { max-width: 68ch; padding: 140px 0 96px; }
.ag-text h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; font-weight: 500; margin-bottom: 36px; }
.ag-text h2 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 36px 0 10px; }
.ag-text p, .ag-text li { font-size: 18px; line-height: 1.6; }
.ag-text p + p { margin-top: 10px; }
.ag-text ul { list-style: disc; padding-left: 1.2em; margin-top: 8px; }
.ag-text__stand { margin-top: 48px; font-size: 15px; color: var(--ag-soft); }
.ag-mini-fuss { padding: 28px 0 40px; border-top: 1px solid var(--ag-rule); display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ag-soft); }
.ag-mini-fuss a { color: var(--ag-soft); text-decoration: none; } .ag-mini-fuss a:hover { color: var(--ag-ink); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .is-js .ag-linie path, .ag-blatt__icon path, .ag-blatt__icon circle, .ag-blatt__icon rect, .ag-liste svg path, .ag-liste svg circle, .is-js .ag-ref__zeichen polyline, .ag-btn__ring path { stroke-dashoffset: 0 !important; }
  .is-js .ag-ref__zeichen circle { transform: none !important; }
  .is-js .ag-ref__blatt { transform: none; }
  .ag-cursor { display: none !important; } .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
}

/* Kontaktformular (zweiter Kontaktweg neben E-Mail, § 5 DDG) */
.ag-form { margin-top: 40px; display: grid; gap: 22px; }
.ag-form__feld { display: grid; gap: 8px; }
.ag-form__feld label { font-size: 16px; font-weight: 600; }
.ag-form__frei { font-weight: 400; color: var(--ag-soft); }
.ag-form input, .ag-form textarea { font: inherit; font-size: 18px; color: var(--ag-ink); background: rgba(255,255,255,.72); border: 1px solid var(--ag-rule); border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; }
.ag-form textarea { resize: vertical; line-height: 1.5; }
.ag-form input:focus-visible, .ag-form textarea:focus-visible { outline: 2px solid var(--ag-ink); outline-offset: 2px; border-color: var(--ag-ink); }
.ag-form__falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-form__hinweis { font-size: 15px !important; color: var(--ag-soft); }
.ag-form__hinweis a { color: var(--ag-soft); }
.ag-form__senden { justify-self: start; min-height: 48px; padding: 0 26px; border-radius: 24px; border: 1px solid var(--ag-ink); background: var(--ag-ink); color: var(--ag-paper); font: inherit; font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.ag-form__senden:hover { background: transparent; color: var(--ag-ink); }
.ag-form__fehler { margin-top: 28px; padding: 14px 16px; border-left: 3px solid var(--ag-sun-deep); font-size: 16px !important; }
.ag-danke__zeichen { width: 120px; height: auto; margin-bottom: 36px; }
.ag-danke__wege { margin-top: 28px !important; }
.ag-form__fehler:focus { outline: none; }

/* ───────── Unterseiten: Kopf mit Navigation, Lesespalten, Ablauf (2026-11-17, Kassenlösungen) ───────── */
.ag-nav a { padding: 9px 0; margin: -3px 0; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; } /* Touch-Ziel 44 px */
.ag-nav a::after { bottom: 3px; }
.ag-nav a[aria-current="page"]::after { transform: scaleX(1); }
.ag-top--linie { position: static; border-bottom: 1px solid var(--ag-rule); }
.ag-schrift li a { color: var(--ag-ink); text-decoration-color: var(--ag-rule); display: inline-block; padding: 9px 0; margin: -9px 0; } /* Touch-Ziel 44 px ohne Höhenänderung */
.ag-schrift li a:hover { text-decoration-color: var(--ag-ink); }

.ag-lauf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; padding: 72px 0 96px; }
.ag-lauf h2 { grid-column: 1 / span 4; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; font-weight: 500; letter-spacing: -.01em; }
.ag-lauf__text { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; max-width: 68ch; }
.ag-lauf + .ag-lauf { border-top: 1px solid var(--ag-rule); }
.ag-lauf__stand { font-size: 15px; color: var(--ag-soft); }
@media (max-width: 1024px) { .ag-lauf h2, .ag-lauf__text { grid-column: 1 / -1; } .ag-lauf { padding: 56px 0 72px; } }

/* Ablauf: Schritte untereinander, die Zahl hat einen Grund (Reihenfolge) */
.ag-schritte { counter-reset: schritt; border-top: 1px solid var(--ag-rule); }
.ag-schritte li { counter-increment: schritt; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 24px; row-gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--ag-rule); }
.ag-schritte li::before { content: counter(schritt) "."; grid-row: 1 / span 2; font-size: 26px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
.ag-schritte h3 { grid-column: 2; font-size: 22px; line-height: 1.25; font-weight: 500; }
.ag-schritte p { grid-column: 2; }
@media (max-width: 600px) { .ag-schritte li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; } }

/* Kassenlösungen · Kopf: links das Angebot, rechts die Zeichnung (Tontafel → Linie → Kassenbon) */
.ag-kasse-kopf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: center; padding: 72px 0 88px; min-height: calc(100svh - 77px); }
.ag-kasse-kopf__text { grid-column: 1 / span 7; }
.ag-kasse-kopf h1 { font-size: clamp(33px, 3.6vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -.01em; max-width: 22ch; }
.ag-kasse-kopf .ag-lead { margin-top: 26px; max-width: 46ch; }
.ag-kasse-kopf__wege { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.ag-kasse-kopf__wege > a:not(.ag-btn) { color: var(--ag-ink); display: inline-flex; align-items: center; min-height: 44px; }
.ag-kasse-kopf__fakten { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--ag-rule); font-size: 16px; color: var(--ag-soft); max-width: 46ch; }
.ag-kasse-bild { grid-column: 8 / span 5; }
.ag-kasse-bild__svg { width: 100%; height: auto; overflow: visible; }
.ag-kasse-bild__svg path { fill: none; stroke: var(--ag-ink); stroke-linecap: round; stroke-linejoin: round; }
.ag-kasse-bild__svg .a { stroke-width: 2.8; } .ag-kasse-bild__svg .b { stroke-width: 2.1; }
.ag-kasse-bild.is-vor path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ag-kasse-bild.is-zeichnen path { animation: ag-kb .7s cubic-bezier(.45, .05, .55, .95) calc(var(--i, 0) * 70ms + 250ms) both; }
@keyframes ag-kb { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ag-kasse-bild figcaption { margin-top: 22px; }
.ag-kasse-bild__satz { font-size: clamp(22px, 2.1vw, 31px); line-height: 1.2; font-style: italic; font-weight: 500; }
.ag-kasse-bild__klein { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--ag-soft); max-width: 40ch; }
@media (max-width: 1024px) {
  .ag-kasse-kopf { min-height: 0; padding: 40px 0 64px; row-gap: 44px; }
  .ag-kasse-kopf__text, .ag-kasse-bild { grid-column: 1 / -1; }
  .ag-kasse-bild { order: -1; max-width: 520px; } /* mobil: erst das Bild, dann der Text */
}

/* Kassenlösungen · Listen mit Trennlinien (kein Kartenraster) */
.ag-kasse-dl { border-top: 1px solid var(--ag-rule); margin: 0; }
.ag-kasse-dl > div { padding: 22px 0 24px; border-bottom: 1px solid var(--ag-rule); }
.ag-kasse-dl dt { font-size: 22px; line-height: 1.25; font-weight: 500; }
.ag-kasse-dl dd { margin: 8px 0 0; }
.ag-kasse-zitat { margin: 10px 0 0; padding-left: 22px; border-left: 2px solid var(--ag-ink); }
.ag-kasse-zitat p { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.35; font-style: italic; }
.ag-kasse-zitat footer { margin-top: 10px; font-size: 16px; color: var(--ag-soft); }

/* Kassen-Check: sechs Fragen, Antworten bleiben im Browser */
.ag-check { border-top: 1px solid var(--ag-rule); counter-reset: frage; }
.ag-check li { counter-increment: frage; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ag-rule); }
.ag-check__antwort { display: flex; gap: 8px; }
.ag-check li > span::before { content: counter(frage) ". "; font-variant-numeric: tabular-nums; }
.ag-check__antwort button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid rgba(26, 25, 23, .5); background: transparent; font-size: 16px; cursor: pointer; white-space: nowrap; }
.ag-check__antwort button:hover { border-color: var(--ag-ink); }
.ag-check__antwort button[aria-pressed="true"] { background: var(--ag-ink); border-color: var(--ag-ink); color: var(--ag-paper); }
.ag-check__ergebnis { font-weight: 500; min-height: 1.6em; }
.ag-check__weiter { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 600px) { .ag-check li { grid-template-columns: 1fr; } }

/* Häufige Fragen */
.ag-faq { border-top: 1px solid var(--ag-rule); }
.ag-faq details { border-bottom: 1px solid var(--ag-rule); }
.ag-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: 14px 0; font-size: 20px; line-height: 1.3; font-weight: 500; }
.ag-faq summary::-webkit-details-marker { display: none; }
.ag-faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ag-ink), var(--ag-ink)) center / 100% 1.6px no-repeat, linear-gradient(var(--ag-ink), var(--ag-ink)) center / 1.6px 100% no-repeat; transition: transform .35s var(--ag-ease); }
.ag-faq details[open] summary::after { transform: rotate(45deg); }
.ag-faq details p { padding: 0 34px 22px 0; }

/* Abschluss: einzige dunkle Fläche der Seite, mit dem Formular */
.ag-kasse-ende { background: var(--ag-ink); color: var(--ag-paper); padding: 96px 0 112px; }
.ag-kasse-ende__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.ag-kasse-ende__text { grid-column: 1 / span 5; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 20px; }
.ag-kasse-ende h2 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.06; font-weight: 500; letter-spacing: -.01em; }
.ag-kasse-ende__text p { font-size: 19px; line-height: 1.55; max-width: 38ch; }
.ag-kasse-ende a { color: var(--ag-paper); text-decoration-color: rgba(255, 255, 255, .55); } /* Safran bleibt Punkt und Fokus, nicht Textfarbe */
.ag-kasse-ende a:hover { text-decoration-color: var(--ag-paper); text-decoration-thickness: 2px; }
.ag-kasse-ende :focus-visible { outline-color: var(--ag-sun); }
.ag-kasse-ende .ag-form { grid-column: 7 / span 6; margin-top: 0; }
.ag-kasse-ende .ag-form input:not([type="checkbox"]), .ag-kasse-ende .ag-form textarea, .ag-form select { background: var(--ag-paper); }
.ag-form select { font: inherit; font-size: 18px; color: var(--ag-ink); border: 1px solid var(--ag-rule); border-radius: 2px; padding: 12px 14px; min-height: 48px; width: 100%; }
.ag-kasse-ende .ag-form input:focus-visible, .ag-kasse-ende .ag-form textarea:focus-visible, .ag-kasse-ende .ag-form select:focus-visible { outline: 2px solid var(--ag-sun); outline-offset: 2px; }
.ag-kasse-ende .ag-form__frei, .ag-kasse-ende .ag-form__hinweis, .ag-kasse-ende .ag-form__hinweis a { color: #D4D4D4; }
.ag-form__paar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.ag-form__wahl { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; cursor: pointer; }
.ag-form__wahl input { width: 22px; height: 22px; min-height: 0; flex: none; accent-color: var(--ag-sun); }
.ag-kasse-ende .ag-form__senden { background: var(--ag-paper); border-color: var(--ag-paper); color: var(--ag-ink); }
.ag-kasse-ende .ag-form__senden:hover { background: transparent; color: var(--ag-paper); }
.ag-kasse-ende .ag-form__fehler { grid-column: 7 / span 6; align-self: start; margin-top: 0; border-left-color: var(--ag-sun); }
@media (max-width: 1024px) { .ag-kasse-ende__text, .ag-kasse-ende .ag-form, .ag-kasse-ende .ag-form__fehler { grid-column: 1 / -1; } .ag-kasse-ende__text { grid-row: auto; } .ag-kasse-ende { padding: 64px 0 80px; } }
@media (max-width: 600px) { .ag-form__paar { grid-template-columns: 1fr; } }
.ag-kasse-quellen { padding: 28px 0 8px; font-size: 14px; line-height: 1.5; color: var(--ag-soft); max-width: 90ch; }
.ag-kasse-quellen a { color: var(--ag-soft); }

.ag-voll { min-height: 100svh; } /* Papier bis zum unteren Fensterrand (Danke-Seite) */

/* Startseite: Hinweis auf Kassenlösungen */
.ag-bald__mehr { margin-top: 72px; border-top: 1px solid var(--ag-rule); padding-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 14px; }
.ag-bald__mehr h2 { grid-column: 1 / span 5; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; font-weight: 500; }
.ag-bald__mehr div { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 10px; }
.ag-bald__mehr p { font-size: 18px; line-height: 1.55; }
.ag-bald__mehr a { color: var(--ag-ink); display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 1024px) { .ag-bald__mehr h2, .ag-bald__mehr div { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .ag-kasse-bild path { stroke-dashoffset: 0 !important; } }

/* ───────── Startseite · Kapak (2026-11-17): großer Satz, darunter Milas Kohlezeichnung auf einer Linie ───────── */
.ag-kapak { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 108px 0 104px; }
.ag-kapak__in { display: flex; flex-direction: column; }
.ag-kapak__text { text-align: center; }
.ag-kapak h1 { font-size: clamp(38px, min(6.4vw, 12.5vh), 104px); line-height: 1.02; font-weight: 500; letter-spacing: -.015em; }
.ag-kapak h1 span { display: block; }
.ag-kapak__text p { text-wrap: balance; }
.ag-kapak__text p { margin-top: clamp(16px, 1.7vw, 26px); font-size: clamp(17px, 1.4vw, 21px); color: var(--ag-soft); }
.ag-kapak__band { margin-top: clamp(28px, 4.6vh, 64px); overflow: hidden; }
.ag-kapak__zug { position: relative; }
.ag-kapak__zug img { width: 100%; height: auto; }
.ag-kapak__sonne { position: absolute; left: 81.7%; top: 27.6%; width: 3.06%; aspect-ratio: 1; border-radius: 50%; background: var(--ag-sun); }
/* Bewegung startet erst, wenn das Bild geladen ist (Klassen setzt das kleine Skript in index.html); ohne JS steht alles sofort da */
.ag-kapak__zug.is-wartet img { clip-path: inset(0 100% 0 0); }
.ag-kapak__zug.is-wartet .ag-kapak__sonne { transform: scale(0); }
.ag-kapak__zug.is-da img { animation: ag-kapak-linie 2.8s cubic-bezier(.45, .05, .55, .95) .15s both; }   /* die Linie zeichnet sich von links */
.ag-kapak__zug.is-da .ag-kapak__sonne { animation: ag-kapak-sonne .9s var(--ag-ease) 2.55s both; }        /* zuletzt geht die Sonne auf */
@keyframes ag-kapak-linie { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ag-kapak-sonne { from { transform: scale(0); } to { transform: scale(1); } }
@media (max-height: 700px) and (min-width: 601px) { .ag-kapak { padding: 88px 0 84px; } .ag-kapak__band { margin-top: 18px; } }
@media (max-width: 600px) {
  .ag-kapak { padding: 96px 0 96px; }
  .ag-kapak h1 { font-size: min(38px, 9.6vw); }                               /* bleibt bis 320 px zweizeilig */
  .ag-kapak__band { order: -1; margin: 0 calc(var(--ag-pad) * -1) 36px; }   /* mobil: erst das Bild, dann der Satz */
  .ag-kapak__zug { width: 172%; margin-left: -58%; }                          /* Ausschnitt: Stein, Zeichen, Bogen, Sonne */
}

/* Zweiter Bildschirm: das Zeichen in der Mitte, Leistungen links, Branchen rechts */
.ag-schrift--mitte { padding: 72px 0 120px; }
.ag-schrift--mitte .ag-schrift__grid { align-items: start; row-gap: 56px; }
.ag-schrift--mitte .ag-schrift__sp { grid-column: 1 / span 4; grid-row: 1; }
.ag-schrift--mitte .ag-schrift__sp:last-child { grid-column: 9 / span 4; }
.ag-schrift--mitte .ag-schrift__zeichen { grid-column: 5 / span 4; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ag-schrift--mitte .ag-intro { width: 100%; height: clamp(300px, 31vw, 470px); min-height: 0; }
.ag-schrift--mitte .ag-intro__still { width: 86%; top: 50%; }
.ag-schrift--mitte .ag-schrift__sp h2 { font-size: clamp(34px, 3.5vw, 52px); margin-bottom: 30px; }
.ag-schrift--mitte .ag-schrift__sp li { font-size: clamp(21px, 1.72vw, 26px); padding: 20px 0; gap: 20px; }
.ag-schrift--mitte .ag-schrift__sp li svg { width: 30px; height: 30px; }
@media (min-width: 1025px) and (max-width: 1180px) { .ag-schrift--mitte .ag-schrift__sp li { font-size: 19px; gap: 14px; } }
@media (max-width: 1024px) {
  .ag-schrift--mitte .ag-schrift__sp, .ag-schrift--mitte .ag-schrift__sp:last-child, .ag-schrift--mitte .ag-schrift__zeichen { grid-column: 1 / -1; grid-row: auto; }
  .ag-schrift--mitte .ag-schrift__zeichen { order: -1; }                      /* schmal: erst das Zeichen, dann die Listen */
  .ag-schrift--mitte .ag-intro { height: clamp(260px, 52vw, 420px); }
}

/* Fokus und Touch-Ziele (Prüfung 17.11.2026) */
.ag-schreib__t:focus-within { clip-path: none !important; animation: none !important; }   /* Fokusrahmen eines Links in einer geschriebenen Zeile bleibt sichtbar */
.ag-mini-fuss a { display: inline-flex; align-items: center; min-height: 44px; margin: -11px 0; }
.ag-top__logo { display: inline-flex; align-items: center; min-height: 44px; }
#inhalt:focus { outline: none; }

/* ==========================================================================
   Menü E „Ring“ · A-Gentur, Stuttgart · 2026-11-18
   Vollbild-Menü auf dem Papier: eine dünne Safran-Linie als Ring, die Seiten
   untereinander in der Mitte. Wenig Bewegung: Ring zeichnet sich einmal,
   unter dem Link zieht sich beim Zeigen ein Kohlestrich. Skript: menue.js
   ========================================================================== */

/* Knopf im Kopf („Menü“ + Sonnenpunkt). Ohne JS ein Link auf die Seitenliste im Fuß. */
.ag-menue-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 0; margin: -3px 0; border: 0; background: none; color: var(--ag-ink); font: inherit; font-size: 17px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; position: relative; white-space: nowrap; }
.ag-menue-knopf::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: var(--ag-ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ag-ease); }
.ag-menue-knopf:hover::after, .ag-menue-knopf:focus-visible::after { transform: scaleX(1); }
.ag-menue-knopf:hover { color: var(--ag-ink); }
.ag-menue-knopf .ag-dot { width: 9px; height: 9px; }
.ag-nav .ag-menue-knopf { padding: 9px 0; }
.ag-nav .ag-menue-knopf::after { bottom: 3px; }

/* Ebene */
.ag-menue { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--ag-paper) var(--ag-tex) repeat; background-size: 512px 512px; color: var(--ag-ink); font-family: "Vollkorn", Georgia, serif; }
.ag-menue::backdrop { background: transparent; }
.ag-menue[open] { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
html.is-menue-offen { overflow: hidden; }

/* Linker Streifen: oben schließen, unten das Logo quer */
.ag-menue__streifen { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0 28px; border-right: 1px solid var(--ag-rule); min-height: 100%; }
.ag-menue__zu { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 44px; min-height: 44px; padding: 10px 6px; border: 0; background: none; color: var(--ag-ink); cursor: pointer; font: inherit; }
.ag-menue__zu svg { width: 24px; height: 24px; flex: none; }
.ag-menue__zu svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ag-menue__zu span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 16px; line-height: 1; color: var(--ag-soft); letter-spacing: .02em; }
.ag-menue__zu:hover span { color: var(--ag-ink); }
.ag-menue__logo { display: flex; align-items: center; justify-content: center; width: 60px; height: 194px; }
.ag-menue__logo img { width: 194px; height: 60px; max-width: none; transform: rotate(-90deg); flex: none; }

/* Bühne: Ring und Links in der Mitte, darunter die Fußzeile */
.ag-menue__haupt { display: flex; flex-direction: column; min-height: 100%; min-width: 0; }
.ag-menue__buehne { position: relative; flex: 1 0 auto; display: grid; place-items: center; padding: 40px 24px; overflow: hidden; overflow: clip; }
.ag-menue__ring { position: absolute; left: 50%; top: 50%; width: min(80vh, 58vw); height: min(80vh, 58vw); transform: translate(-50%, -50%) rotate(-90deg); overflow: visible; pointer-events: none; }
.ag-menue__ring circle { fill: none; stroke: var(--ag-sun); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ag-ease); }
.ag-menue.is-offen .ag-menue__ring circle { stroke-dashoffset: 0; }
.ag-menue__liste { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; list-style: none; opacity: 0; transition: opacity .2s ease-out; }
.ag-menue.is-offen .ag-menue__liste { opacity: 1; }
.ag-menue__liste a { position: relative; display: inline-block; padding: .36em .5em; font-size: clamp(34px, 5.6vh, 54px); font-weight: 400; line-height: 1.1; color: var(--ag-ink); text-decoration: none; }
.ag-menue__liste a:hover { color: var(--ag-ink); }
.ag-menue__liste a[aria-current="page"]::before { content: ""; position: absolute; left: -.06em; top: 50%; width: .3em; height: .3em; margin-top: -.15em; border-radius: 50%; background: var(--ag-sun); }
.ag-menue__strich { position: absolute; left: .5em; right: .5em; bottom: calc(.2em - 3px); width: calc(100% - 1em); height: 10px; overflow: visible; pointer-events: none; }   /* Höhe 10 px = viewBox-Höhe: Strich bleibt 1,7 px */
.ag-menue__strich path { fill: none; stroke: var(--ag-ink); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ag-ease); }
.ag-menue__strich path { opacity: 0; }   /* runde Kappe sonst als Punkt sichtbar */
.ag-menue__liste a:hover .ag-menue__strich path, .ag-menue__liste a:focus-visible .ag-menue__strich path { stroke-dashoffset: 0; opacity: 1; }
.ag-menue__unten { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding: 0 40px 26px; font-size: 15px; color: var(--ag-soft); }
.ag-menue__unten p { margin: 0; }
.ag-menue__unten nav { display: flex; align-items: center; gap: 6px; }
.ag-menue__unten a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; color: var(--ag-soft); text-decoration: none; }
.ag-menue__unten a:hover, .ag-menue__unten a[aria-current="page"] { color: var(--ag-ink); }

/* Schmal: Streifen wird Kopfleiste, Ring läuft seitlich aus dem Bild */
@media (max-width: 1024px) {
  .ag-menue[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 68px minmax(0, 1fr); }
  .ag-menue__streifen { flex-direction: row-reverse; padding: 0 var(--ag-pad); border-right: 0; border-bottom: 1px solid var(--ag-rule); min-height: 0; }
  .ag-menue__zu { flex-direction: row; gap: 10px; padding: 10px 0; }
  .ag-menue__zu span { writing-mode: horizontal-tb; transform: none; }
  .ag-menue__logo { width: 116px; height: 44px; }   /* Touch-Ziel 44 px, Bild 36 px mittig */
  .ag-menue__logo img { width: 116px; height: 36px; transform: none; }
  .ag-menue__ring { width: 104vw; height: 104vw; max-width: none; }
  .ag-menue__liste a { font-size: 34px; }
  .ag-menue__unten { flex-direction: column; align-items: center; text-align: center; padding: 0 var(--ag-pad) 22px; }
}
/* Querformat am Telefon: Ring an der Höhe ausrichten */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) { .ag-menue__ring { width: 86vh; height: 86vh; } .ag-menue__buehne { padding: 16px; } }

@media (max-width: 1024px) { .ag-nav .ag-nav__gross { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ag-menue__ring circle, .ag-menue__strich path { transition: none !important; }
  .ag-menue__ring circle { stroke-dashoffset: 0; }
  .ag-menue__liste { opacity: 1; transition: none !important; }
}
.ag-menue-ziel:focus { outline: none; }   /* Sprungziel aus dem Menü: Fokus ohne Rahmen um den ganzen Abschnitt */

/* Startseite, zweiter Bildschirm: vier Leistungsbereiche, acht Branchen (Konzept 18.11.2026).
   Etwas kleiner gesetzt, damit „Vereine, Verbände & Institutionen“ ab 1280 px in einer Zeile steht. */
@media (min-width: 1181px) {
  .ag-schrift--mitte .ag-schrift__sp li { font-size: clamp(19px, 1.56vw, 23px); gap: 16px; }
  .ag-schrift--mitte .ag-schrift__sp li svg { width: 26px; height: 26px; }
}
