/* Startseite: Feinschliff (Wunsch Moritz 2026-11-07)
   1) Film-Fenster: nichts darf überstehen, kein gelber Rand. Bei schmalen Fenstern (Seitenverhältnis unter 3:1) wird das Video
      ganz gezeigt statt beschnitten. 2) Blasses Symbolmuster wie im Funnel auf allen Abschnitten, getönt mit der Schriftfarbe. */
.film__frame { background: var(--nacht); }
@container (max-aspect-ratio: 3 / 1) {
  .film__poster, .film__video { object-fit: contain; }
}
/* Abschnitte mit eigener Farbfläche (.surface__bg), Karten (.card__face), Fuß und Hero ohne Farbfläche */
.surface__bg::before, .card__face::before, footer.footer::before, footer.surface::before,
section.surface:not(:has(> .surface__bg))::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--fg); opacity: .07;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' width='220' height='220' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(14 16)'%3E%3Crect width='50' height='36' rx='5'/%3E%3Cpath d='M0 11h50M8 5.5h.1M14 5.5h.1'/%3E%3C/g%3E%3Cg transform='translate(128 10) rotate(-12)'%3E%3Cpath d='M0 0v28l7-7 6 13 6-3-6-12h10z'/%3E%3C/g%3E%3Cg transform='translate(150 104)'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='M20 20l12 12'/%3E%3C/g%3E%3Cg transform='translate(18 118)'%3E%3Cpath d='M0 40V0M0 40h44M9 40V24M20 40V12M31 40V28'/%3E%3C/g%3E%3Cg transform='translate(82 84)'%3E%3Ccircle cx='15' cy='15' r='15'/%3E%3Cpath d='M8 15.5l5 5 10-11'/%3E%3C/g%3E%3Cg transform='translate(96 168)'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3Ccircle cx='21' cy='9' r='9'/%3E%3C/g%3E%3Cg transform='translate(172 168)'%3E%3Cpath d='M0 10l8-8 8 8M8 2v22'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220' width='220' height='220' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(14 16)'%3E%3Crect width='50' height='36' rx='5'/%3E%3Cpath d='M0 11h50M8 5.5h.1M14 5.5h.1'/%3E%3C/g%3E%3Cg transform='translate(128 10) rotate(-12)'%3E%3Cpath d='M0 0v28l7-7 6 13 6-3-6-12h10z'/%3E%3C/g%3E%3Cg transform='translate(150 104)'%3E%3Ccircle cx='12' cy='12' r='11'/%3E%3Cpath d='M20 20l12 12'/%3E%3C/g%3E%3Cg transform='translate(18 118)'%3E%3Cpath d='M0 40V0M0 40h44M9 40V24M20 40V12M31 40V28'/%3E%3C/g%3E%3Cg transform='translate(82 84)'%3E%3Ccircle cx='15' cy='15' r='15'/%3E%3Cpath d='M8 15.5l5 5 10-11'/%3E%3C/g%3E%3Cg transform='translate(96 168)'%3E%3Ccircle cx='9' cy='9' r='9'/%3E%3Ccircle cx='21' cy='9' r='9'/%3E%3C/g%3E%3Cg transform='translate(172 168)'%3E%3Cpath d='M0 10l8-8 8 8M8 2v22'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px 220px repeat;
}
.surface__bg::before { z-index: 0; }
.card__face, footer.footer, footer.surface, section.surface:not(:has(> .surface__bg)) { isolation: isolate; }
footer.footer, footer.surface, section.surface:not(:has(> .surface__bg)) { position: relative; }
@media print { .surface__bg::before, .card__face::before, footer::before, section::before { display: none; } }

/* Handy-Stapel: der Name "aec-nuernberg.com" (17 Zeichen) ist breiter als die 7,05 Zeichen, mit denen die Schrift berechnet wird, und ragte 73 px über den Rand. Nur diese Schrift kleiner. */
@media not all and (min-width: 768px) and (min-height: 520px) {
  .case__name:has(a[href*="aec-nuernberg"]) { font-size: calc(100cqi / 9.2); }
}

/* Hero grid: a slow drift of a few pixels (32 s cycle, transform only, so the compositor does it). The layer is 14px larger than
   the hero on every side so the drift never uncovers an edge; the hero clips it sideways, the next section covers it below.
   Only the hero moves: the grids of the other sections are many large masked layers and stay still. Reduced motion: no drift. */
@keyframes raster-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(9px, -6px, 0); }
  50% { transform: translate3d(-4px, -11px, 0); }
  75% { transform: translate3d(-10px, 5px, 0); }
}
/* Die 14 px grössere Rasterschicht ragte am Handy rechts über den Rand (Seite 377 statt 360 breit): seitlich abschneiden. */
.card.hero .card__face, section.hero.surface { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) {
  section.hero.surface::before, .card.hero .card__face::before {
    inset: -14px;
    will-change: transform;
    animation: raster-drift 32s ease-in-out infinite;
  }
}

/* ---- Paket-Struktur (2026-11-09) ---- */
/* Pairing sentence under every package and hosting tier ("Dazu passt meist Hosting Basis"). */
.price__pair { font-size: var(--t-small); color: var(--muted); }
.price__pair .text-link { font-weight: 600; color: inherit; }
/* Hosting is a section of its own: the tinted band of the old combined block is not needed on the yellow surface. */
.hosting .price-group--care { background: transparent; margin-top: 0; padding-top: 0; padding-bottom: 0; }
.hosting .price--care { border-top: 1px solid var(--fg); }
.case__kind { font-weight: 600; color: var(--fg); }
/* Hero start state: the lower line stays invisible until its swing has brought it out from behind the film window
   (it used to show half hidden for a moment). */
@keyframes line-swing-b { 0% { transform: rotate(3.5deg); opacity: 0; } 45% { opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes line-swing-a { 0% { transform: rotate(-3.5deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
/* Header (2026-11-10). Wide screens: after the first scroll the bar is solid (film layout), so the small orbit mark stays visible as
   the sender and the way home; only the wordmark steps aside (and gives its click area back). Phones: the bar gets a plate in the
   colour of the card under it, so text no longer runs under logo and "Menü". */
.wordmark { overflow: hidden; max-width: 12em; transition: opacity var(--dur-moderate) var(--ease-enter), transform var(--dur-moderate) var(--ease-enter), max-width var(--dur-moderate) var(--ease-enter); }
@media (min-width: 768px) and (min-height: 520px) {
  .nav.is-solid .nav__bar .wordmark { opacity: 0; transform: translateX(-10px); max-width: 0; }
  .nav.menu-open .nav__bar .wordmark { opacity: 1; transform: none; max-width: 12em; }
}
@media not all and (min-width: 768px) and (min-height: 520px) {
  .nav__bar::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); opacity: 0;
    transition: opacity var(--dur-fast) var(--ease-exit), background-color var(--dur-fast) var(--ease-move);
  }
  .nav.is-compact .nav__bar::before { opacity: 1; transition: opacity var(--dur-fast) var(--ease-enter), background-color var(--dur-fast) var(--ease-move); }
  .nav.is-open .nav__bar::before { opacity: 0; }
  .nav.is-compact .nav__bar .wordmark { max-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .wordmark { transition: none; } }
