/* Ingenieurbüro IRION – gemeinsames Stylesheet für Bildschirm und Druck. */
:root {
  --navy:#102e4e;
  --orange:#ee7600;
  --line:#dce4ec;
  --ink:#24384a;
  --page-background:#fff;
  --heading-1:clamp(1.45rem,3vw,2.1rem);
  --heading-2:1.125rem;
  --heading-section:calc((var(--heading-1) + var(--heading-2)) / 2);
  --heading-3:1.05rem;
  --heading-gap-1:1rem;
  --heading-gap-2:.65rem;
  --heading-gap-3:.3rem;
  font:100%/1.65 system-ui,sans-serif;
  color:var(--ink);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  height:100vh;
  height:100dvh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:var(--page-background);
}
.shell {
  width:min(100% - 3rem,76rem);
  margin-inline:auto;
}
.header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
}
a {
  color:var(--navy);
}
.brand {
  display:flex;
  align-items:center;
  gap:.9rem;
  text-decoration:none;
  font-size:1rem;
  font-weight:750;
  line-height:1.12;
}
.brand strong {
  font-size:1.75rem;
  letter-spacing:.03em;
}
.brand img {
  width:5.4rem;
  height:auto;
}
.brand span {
  border-left:2px solid var(--orange);
  padding-left:.9rem;
}
nav {
  display:flex;
  gap:clamp(1rem,3vw,2.6rem);
  flex-wrap:wrap;
}
nav a {
  font-weight:650;
  text-decoration:none;
  padding:.45rem 0;
  border-bottom:3px solid transparent;
}
nav a:hover,
nav [aria-current] {
  border-color:var(--orange);
}
.reader {
  width:min(100% - 3rem,49rem);
  margin:0 auto;
  padding:clamp(2rem,5vw,4rem) 0;
  flex:1;
}
article+article {
  border-top:1px solid var(--line);
  margin-top:2rem;
  padding-top:2rem;
}
.reader :is(h1,h2,h3) {
  color:var(--navy);
  font-weight:700;
  margin:0;
  overflow-wrap:break-word;
}
.reader h1,
.reader .view-title {
  font-size:var(--heading-1);
  line-height:1.15;
  letter-spacing:-.025em;
  margin-block-end:var(--heading-gap-1);
}
.reader .section-title {
  font-size:var(--heading-section);
  line-height:1.2;
  margin-block-end:calc((var(--heading-gap-1) + var(--heading-gap-2)) / 2);
}
.reader h2 {
  font-size:var(--heading-2);
  line-height:1.25;
  margin-block-end:var(--heading-gap-2);
}
.reader h3 {
  font-size:var(--heading-3);
  line-height:1.3;
  margin-block-end:var(--heading-gap-3);
}
p {
  margin:0 0 1rem;
}
li+li {
  margin-top:.5rem;
}
.carousel.enhanced {
  position:relative;
}
.js-scroll .has-text-arrows > .text-scroll {
  touch-action:pan-y pinch-zoom;
}
.enhanced article+article {
  border:0;
  margin:0;
  padding:0;
}
button {
  font:inherit;
  color:var(--navy);
  background:white;
  border:1px solid #a3b4c6;
  border-radius:.2rem;
  padding:.35rem .8rem;
  cursor:pointer;
}
button:hover {
  background:#edf2f7;
}
:focus-visible {
  outline:3px solid #b65300;
  outline-offset:3px;
}
.hero {
  background:var(--page-background);
}
.hero-media {
  position:relative;
  width:100%;
  overflow:hidden;
  isolation:isolate;
}
.hero-pictures {
  position:absolute;
  inset:0;
  z-index:0;
  isolation:isolate;
  overflow:hidden;
}
.hero-media::after { z-index:1; }
.hero-message {
  position:absolute;
  z-index:2;
  left:max(1.5rem,calc((100vw - 76rem)/2));
  top:50%;
  transform:translate3d(0,-50%,0);
  width:clamp(175px,25vw,355px);
  color:white;
  text-shadow:0 1px 3px #102e4e55;
}
.hero-headline {
  font-size:clamp(1.15rem,2.25vw,2.35rem);
  line-height:1.09;
  font-weight:800;
  letter-spacing:-.025em;
}
.hero-rule {
  height:5px;
  width:clamp(36px,5vw,80px);
  background:var(--orange);
  margin:clamp(8px,1.1vw,15px) 0;
}
.hero-claim {
  font-size:clamp(.72rem,1.15vw,1.1rem);
  line-height:1.25;
  white-space:nowrap;
}
.hero .version-label {
  z-index:1;
  color:var(--orange);
  font-size:clamp(.55rem,.75vw,.8rem);
  line-height:1.1;
  font-weight:650;
  white-space:nowrap;
  text-shadow:0 1px 2px #102e4e;
}
header,
.hero {
  flex:none;
}
.text-frame {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.text-scroll {
  flex:1;
  min-width:0;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}
.page-entry-focus.is-pointer-entry:focus-visible {
  outline:none;
}
.text-scroll:focus-visible {
  outline-offset:-3px;
}
@media (max-height:460px){
.hero-message {
  left:clamp(12px,5vw,45px);
  width:29vw;
}
.hero-headline {
  font-size:clamp(.82rem,1.7vw,1.15rem);
}
.hero-rule {
  height:3px;
  margin:5px 0;
}
.hero-claim {
  font-size:clamp(.52rem,1.05vw,.8rem);
}
.hero .version-label {
  font-size:.52rem;
}
}
.hero + .text-frame .reader {
  padding-top:clamp(.8rem,1.6vw,1.35rem);
}
.grundwerte .reference-section > h2 {
  line-height:1.25;
  margin-block-end:var(--heading-gap-3);
}
.grundwerte .reference-items > p {
  margin:0;
}
.references .reference-section + .reference-section {
  margin-top:1rem;
}
.references .reference-item > p {
  margin:0;
}
.references .reference-item > .reference-link {
  display:block;
}
.references .reference-item + .reference-item {
  margin-top:1rem;
}
.reader .content-brand,
.reader .content-emphasis {
  color:var(--navy);
  font-weight:700;
}
.legal-reader article > * {
  margin-block:0;
}
.legal-reader article > * + * {
  margin-block-start:.65rem;
}
/* Gleichrangige Kapitel erhalten unabhängig von der Ansicht dieselbe Typografie. */
.legal-reader article > h1 + * {
  margin-block-start:var(--heading-gap-1);
}
.legal-reader article > h2 + * {
  margin-block-start:var(--heading-gap-2);
}
.legal-reader article > p + h2 {
  margin-block-start:var(--heading-gap-1);
}
/* Die Spalten trennen Text und Abschnittspfeile. Die Höhe der gemeinsamen
   Zeile legt die @media-screen-Regel am Dateiende fest. */
.js-scroll .text-frame.has-text-arrows {
  display:grid;
  grid-template-columns:minmax(2.75rem,1fr) minmax(0,49rem) minmax(2.75rem,1fr);
}
/* Der Mittelbereich liegt bereits vor der Aktivierung der Pfeile
   in der endgueltigen Spalte (kein horizontaler Startsprung). */
.js-scroll .text-frame.has-text-arrows > .text-scroll { grid-column:2; grid-row:1; }
.js-scroll .text-frame.has-text-arrows > .text-arrow-left { grid-column:1; grid-row:1; }
.js-scroll .text-frame.has-text-arrows > .text-arrow-right { grid-column:3; grid-row:1; }
.js-scroll .has-text-arrows .reader {
  width:100%;
}
.text-arrow {
  position:relative;
  align-self:center;
  display:grid;
  place-items:center;
  width:2.75rem;
  height:2.75rem;
  padding:0;
  border:0;
  background:transparent;
  color:var(--orange);
}
/* Der abgerundete Fokusrahmen bleibt innerhalb der Schaltfläche. */
.text-arrow:focus-visible {
  outline:none;
}
.text-arrow:focus-visible::after {
  content:"";
  position:absolute;
  inset:2px;
  border:3px solid #b65300;
  border-radius:7px;
  pointer-events:none;
}
.text-arrow[hidden] {
  display:none;
}
.text-arrow-left {
  justify-self:end;
}
.text-arrow-right {
  justify-self:start;
}
.text-arrow::before {
  content:"";
  width:1.15rem;
  height:1.15rem;
  border:solid currentColor;
  border-width:0 .26rem .26rem 0;
  transform:rotate(-45deg);
}
.text-arrow-left::before {
  transform:rotate(135deg);
}
@media (max-width:650px){
.header {
  width:calc(100% - 1rem);
}
.hero-message {
  left:12px;
  width:39vw;
}
.hero-headline {
  font-size:clamp(.85rem,3.3vw,1.25rem);
}
.hero-rule {
  height:3px;
  margin:7px 0;
}
.hero-claim {
  font-size:clamp(.56rem,2vw,.8rem);
  white-space:normal;
}
.hero .version-label {
  font-size:.5rem;
}
:root { --heading-1:1.3rem; --heading-2:1.125rem; --heading-3:1rem; }
}
.main-nav {
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
}
.main-nav details {
  position:relative;
}
.main-nav summary {
  display:grid;
  place-items:center;
  min-width:2.75rem;
  cursor:pointer;
  color:var(--navy);
  align-content:center;
  line-height:1;
  border-bottom:3px solid transparent;
}
.main-nav summary::-webkit-details-marker {
  display:none;
}
.mobile-menu {
  position:absolute;
  z-index:2;
  inset-inline-end:0;
  top:100%;
  width:max-content;
  max-width:calc(100vw - 1rem);
  padding:.25rem .85rem;
  background:white;
  border:1px solid var(--line);
  box-shadow:0 .3rem .8rem #102e4e26;
  max-height:70vh;
  max-height:70dvh;
  overflow-y:auto;
}
.mobile-menu a {
  display:block;
}
.main-nav .menu-label {
  margin-top:.15rem;
}
.main-nav summary:hover {
  border-bottom-color:var(--orange);
}
@media (max-width:740px){
.header {
  flex-wrap:nowrap;
}
}
.skip-link {
  position:fixed;
  z-index:20;
  top:.5rem;
  left:.5rem;
  transform:translateY(-200%);
  padding:.5rem .85rem;
  background:#fff;
  color:var(--navy);
  border:2px solid var(--navy);
  font-weight:700;
}
.skip-link:focus {
  transform:none;
}
.main-nav .contact-link {
  white-space:nowrap;
}
.screenreader-status {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.contact-obfuscated {
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
  cursor:default;
}
.contact-obfuscated span {
  -webkit-user-select:none;
  user-select:none;
}
@media (max-width:480px) and (orientation:portrait) and (hover:none) and (pointer:coarse){
.main-nav summary {
  min-width:2.4rem;
}
.mobile-menu {
  font-size:.88rem;
}
.main-nav .contact-link,
.mobile-menu a {
  font-weight:400;
}
.reader {
  font-size:.96rem;
  line-height:1.6;
}
:root { --heading-1:1.2rem; --heading-2:1.08rem; --heading-3:1rem; }
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape) and (hover:none) and (pointer:coarse){
.mobile-menu {
  font-size:.88rem;
}
.main-nav .contact-link,
.mobile-menu a {
  font-weight:400;
}
.reader {
  font-size:.96rem;
  line-height:1.6;
}
:root { --heading-1:1.25rem; --heading-2:1.12rem; --heading-3:1rem; }
}
@media (max-width:950px) and (orientation:landscape) and (max-height:500px){
.hero-message {
  left:clamp(10px,3vw,24px);
  width:32vw;
}
.hero-headline {
  font-size:clamp(.86rem,2.3vw,1.2rem);
}
.hero-rule {
  height:3px;
  margin:5px 0;
}
.hero-claim {
  font-size:clamp(.55rem,1.45vw,.75rem);
  white-space:nowrap;
}
.hero .version-label {
  font-size:.5rem;
}
}
.hero-media {
  --hero-height:clamp(125px,19vw,295px);
  height:var(--hero-height);
}
.hero :is(.hero-first, .hero-variant-2, .hero-tree) {
  position:absolute;
  display:block;
  max-width:none;
  width:max(100%,calc(var(--hero-height) * 2172 / 410));
  height:auto;
  top:calc(-1 * max(100vw,var(--hero-height) * 2172 / 410) * 115 / 2172);
  left:0;
  object-fit:initial;
  object-position:initial;
}
/* Auf breiten Touch-Displays das Band und den Bildausschnitt an derselben
   bereits ausgelegten Breite ausrichten, auch beim ersten Seitenaufruf. */
@supports (width:1cqw) {
  @media screen and (hover:none) and (pointer:coarse) {
    .hero { container-type:inline-size; }
    @container (min-width:651px) {
      .hero-media {
        --hero-height:clamp(125px,19cqw,295px);
        --photo-width:max(100cqw,calc(var(--hero-height) * 2172 / 410));
      }
      .hero :is(.hero-first, .hero-variant-2, .hero-tree) {
        width:var(--photo-width);
        top:calc(var(--photo-width) * -115 / 2172);
      }
    }
  }
}
@media (max-width:650px) and (orientation:portrait){
.hero-media {
  --hero-height:clamp(125px,34vw,155px);
}
.hero-message {
  left:10px;
  width:36vw;
}
.hero-headline {
  font-size:clamp(.75rem,3.2vw,1rem);
}
.hero-claim {
  font-size:clamp(.5rem,1.8vw,.7rem);
  white-space:normal;
}
.hero-rule {
  margin:5px 0;
  height:3px;
}
.hero .version-label {
  font-size:.48rem;
}
}
@media (max-width:950px) and (orientation:landscape) and (max-height:500px){
.hero-media {
  --hero-height:clamp(120px,19vw,170px);
}
}
@media (min-width:951px) and (orientation:landscape) and (hover:hover) and (pointer:fine){
.hero-media {
  --hero-height:clamp(285px,22.5vw,335px);
}
.hero :is(.hero-first, .hero-variant-2, .hero-tree) {
  width:max(97vw,calc(var(--hero-height) * 2172 / 435));
  left:3vw;
  top:calc(-1 * max(97vw,var(--hero-height) * 2172 / 435) * 112 / 2172);
}
.hero-media::after {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:39%;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(16,46,78,.70) 0%,rgba(16,46,78,.52) 55%,rgba(16,46,78,0) 100%);
}
.hero-message {
  left:max(1.5rem,calc((100vw - 76rem)/2));
  width:min(24vw,315px);
}
.hero-headline {
  font-size:clamp(1.15rem,2vw,2.05rem);
}
}
@media (max-width:650px) and (orientation:portrait) and (hover:none) and (pointer:coarse){
.hero :is(.hero-first, .hero-variant-2, .hero-tree) {
  left:-14vw;
}
.hero-media::after {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:47%;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(16,46,78,.92) 0%,rgba(16,46,78,.82) 68%,rgba(16,46,78,0) 100%);
}
}
/* Eigene Zeile für Scrollpfeile und Abschnittszähler. */
.text-controls {
  grid-column:1 / -1;
  grid-row:2;
  display:grid;
  grid-template-columns:2rem max-content 2rem;
  justify-content:center;
  align-items:center;
  gap:.5rem;
}
.js-scroll .text-controls {
  min-height:2.4rem;
}
.text-controls .controls {
  grid-column:2;
  grid-row:1;
  text-align:center;
  font-size:.75rem;
  color:var(--navy);
  font-variant-numeric:tabular-nums;
}
.text-controls .position {
  white-space:nowrap;
}
.hero .hero-stamp {
  position:absolute;
  z-index:3;
  transform:translateZ(0);
  left:max(1.5rem,calc((100vw - 76rem)/2));
  bottom:4%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  pointer-events:none;
}
.hero .hero-stamp .version-label {
  display:block;
}
.hero .hero-copyright {
  display:block;
  color:#fff;
  font-size:clamp(.52rem,.72vw,.74rem);
  line-height:1.15;
  white-space:nowrap;
  text-shadow:0 1px 3px #102e4e66;
}
@media (max-height:460px){
.hero .hero-stamp {
  left:clamp(12px,5vw,45px);
  bottom:3%;
}
}
@media (max-width:650px){
.hero .hero-stamp {
  left:10px;
  bottom:3%;
}
.hero .hero-copyright {
  font-size:.5rem;
}
}
@media (max-width:950px) and (max-height:500px) and (orientation:landscape){
.hero .hero-stamp {
  left:clamp(10px,3vw,24px);
  bottom:2%;
}
}
.scroll-step {
  grid-row:1;
  display:grid;
  place-items:center;
  width:2rem;
  height:2rem;
  padding:0;
  border:1px solid #b5c4d1;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--navy);
  box-shadow:0 1px 6px #102e4e35;
  font-size:1.25rem;
  line-height:1;
  cursor:pointer;
}
.scroll-step[hidden] {
  display:none!important;
}
.scroll-step:hover {
  background:#edf2f7;
}
.scroll-step:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:2px;
}
.scroll-step-up { grid-column:1; }
.scroll-step-down { grid-column:3; }
/* Native Scrollleiste als barrierearme Rueckfallebene ohne JavaScript.
   Nur nach erfolgreicher Aktivierung der Scrollsteuerung ausblenden. */
.text-scroll.scroll-active {
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.text-scroll.scroll-active::-webkit-scrollbar {
  display:none;
}

/* Die Navigation zeigt jeden Link je nach verfügbarer Breite
   direkt in der Kopfzeile oder im Menü. */
.main-nav{
 margin-left:auto;flex:none;flex-wrap:nowrap;
 white-space:nowrap;
 gap:clamp(.45rem,1.7vw,1.45rem);
}
.main-nav .direct-link{display:none}
.main-nav .overflow-link{display:block}
.main-nav .contact-link{display:block;order:1}
.main-nav .nav-menu{order:2}
.main-nav .nav-menu > summary{border-bottom-color:transparent}
.main-nav .nav-menu > summary:hover{border-bottom-color:var(--orange)}
/* Highlight menu if and only if the current page resides there at this width. */
.main-nav .nav-menu.menu-current-1 > summary,
.main-nav .nav-menu.menu-current-2 > summary,
.main-nav .nav-menu.menu-current-3 > summary,
.main-nav .nav-menu.menu-current-4 > summary,
.main-nav .nav-menu.menu-current-5 > summary,
.main-nav .nav-menu.menu-current-6 > summary,
.main-nav .nav-menu.menu-current-7 > summary{border-bottom-color:var(--orange)}
@media (min-width:540px) and (max-width:740px), (min-width:741px) {
  .main-nav .direct-link.nav-tier-1 { display:block; }
  .main-nav .overflow-link.nav-tier-1 { display:none; }
  .main-nav .nav-menu.menu-current-1 > summary { border-bottom-color:transparent; }
}
@media (min-width:610px) and (max-width:740px), (min-width:741px) {
  .main-nav .direct-link.nav-tier-2 { display:block; }
  .main-nav .overflow-link.nav-tier-2 { display:none; }
  .main-nav .nav-menu.menu-current-2 > summary { border-bottom-color:transparent; }
}
@media (min-width:690px) and (max-width:740px), (min-width:741px),
       (min-width:600px) and (max-width:689px) and (max-height:430px)
       and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  .main-nav .direct-link.nav-tier-3 { display:block; }
  .main-nav .overflow-link.nav-tier-3 { display:none; }
  .main-nav .nav-menu.menu-current-3 > summary { border-bottom-color:transparent; }
}
@media (min-width:980px),
       (min-width:741px) and (max-width:979px) and (hover:none) and (pointer:coarse) {
  .main-nav .direct-link.nav-tier-4 { display:block; }
  .main-nav .overflow-link.nav-tier-4 { display:none; }
  .main-nav .nav-menu.menu-current-4 > summary { border-bottom-color:transparent; }
}
@media (min-width:1160px),
       (min-width:900px) and (max-width:1159px) and (orientation:landscape)
       and (hover:none) and (pointer:coarse) {
  .main-nav .direct-link.nav-tier-5 { display:block; }
  .main-nav .overflow-link.nav-tier-5 { display:none; }
  .main-nav .nav-menu.menu-current-5 > summary { border-bottom-color:transparent; }
}
/* Compact headings as in the existing responsive design; ensure touch targets. */
@media(max-width:740px){
 .main-nav{gap:clamp(.3rem,1.25vw,.7rem)}
}

/* iOS text autosizing stabilisieren; Nutzerzoom bleibt erhalten. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }

/* Telefonnummern bleiben normaler Text. Die Browser-Erkennung kann
   plattformseitig nicht vollstaendig garantiert ausgeschaltet werden. */
.phone-static, .phone-static * { pointer-events:none; -webkit-touch-callout:none; cursor:default; }
a[x-apple-data-detectors] { color:inherit!important; text-decoration:none!important; }

/* Reading typography grows slightly on larger landscape screens, but never
   shrinks below the standard 1rem used in portrait. Maintain 49rem line cap. */
@media (min-width:951px) and (orientation:landscape) {
  .text-scroll { font-size:clamp(1rem,calc(.905rem + .16vw),1.05rem); }
}

/* Device-independent header proportions.
   The logo is the fixed reference; orientation does not change logo,
   header height, brand or navigation typography. Only link tiers/gap adapt.
   Screen zoom/text enlargement may require exceptional reflow. */
:root {
  --cir-shield-height:3.35rem;
  --cir-header-height:4.25rem;
  --cir-brand-font:.90rem;
  --cir-nav-font:.90rem;
}
.header,
.header.shell {
  height:var(--cir-header-height);
  min-height:var(--cir-header-height);
  max-height:var(--cir-header-height);
  padding-block:.35rem;
  gap:.75rem;
}
.header .brand,
.header .brand:is(:link,:visited) {
  font-size:var(--cir-brand-font);
  gap:.85em;
  flex-shrink:0;
  min-width:0;
}
.header .brand img { width:auto; height:var(--cir-shield-height); flex-shrink:0; }
.header .brand strong { font-size:1.32em; font-weight:550; letter-spacing:0; }
.header .brand span { padding-left:.85em; border-left-width:.125em; }
.main-nav {
  font-size:var(--cir-nav-font);
  flex-shrink:0;
}
.main-nav .contact-link { font-size:inherit; font-weight:650; }
.main-nav summary {
  font-size:1.2rem;
  min-height:2.75rem;
  min-width:2.75rem;
}
.main-nav .menu-label { font-size:.8rem; }
/* Auf schmalen Displays schaffen kleinere Abstände Platz für den zweizeiligen Firmennamen. */
@media (max-width:430px) {
  .header.shell { width:calc(100% - 2rem); }
  .header .brand { gap:.5em; }
  .header .brand span { font-size:inherit; padding-left:.55em; }
}
@media (max-width:389px) {
  .header .brand { gap:.4em; }
  .header .brand span { padding-left:.35em; }
}
@media (max-width:350px) {
  .header .brand { gap:.45rem; }
}

/* Compact small-smartphone header, orientation-independent.
   The same proportions apply to the phone in portrait and landscape.
   Tablets retain the established R71 header. */
@media (max-width:430px) and (hover:none) and (pointer:coarse),
       (max-height:430px) and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  :root {
    --cir-header-height:4rem;
    --cir-shield-height:2.8rem;
    --cir-brand-font:.81rem;
    --cir-nav-font:.81rem;
  }
  .header.shell { width:calc(100% - 1.5rem); gap:.35rem; }
  .header .brand { gap:.4em; }
  .header .brand span { padding-left:.4em; }
  .main-nav { gap:.2rem; }
  .main-nav summary { font-size:1.08rem; min-width:2.2rem; min-height:2.4rem; }
  .main-nav .menu-label { font-size:.72rem; }
}
/* On compact touch phones in landscape, use available space for
   a third direct link and for readable spacing. Keep the R72 header size,
   brand typography, logo and portrait menu completely unchanged. */
@media (min-width:540px) and (max-height:430px) and (orientation:landscape)
       and (hover:none) and (pointer:coarse) {
  .main-nav { gap:clamp(.6rem,1.6vw,1rem); }
}

/* Textspaltenbreite bei knappem Vertikalraum.
   Nur breite Touch-Displays im Querformat: bislang auf 49rem begrenzte
   Textansichten erhalten abhängig von der sichtbaren Höhe etwas mehr Breite.
   Die Zeilenhöhe, die Typografie und die feste Kopfzeile bleiben unverändert.
   Ohne JS bleibt die gleiche Regel für den linearen Lesebereich wirksam. */
@media (min-width:951px) and (max-height:900px) and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  :root {
    --cir-reader-landscape-width:clamp(49rem,calc(49rem + (900px - 100dvh)*1.2),65rem);
  }
  .reader {
    width:min(calc(100% - 3rem),var(--cir-reader-landscape-width));
  }
  .js-scroll .text-frame.has-text-arrows {
    grid-template-columns:minmax(2.75rem,1fr) minmax(0,var(--cir-reader-landscape-width)) minmax(2.75rem,1fr);
  }
}

/* BEGINN GENERIERTE PANORAMA-ANIMATION */
/* Bildwechsel: Zeiten aus panorama.json. Saisonmotive haben synchronisierte Zeitpunkte. */
.hero-media :is(.hero-variant-2, .hero-tree) {
  opacity:0;
  pointer-events:none;
}
.hero-media .hero-variant-2.is-ready,
.hero-media.tree-only .hero-tree {
  animation:cir-hero-alternation 30s ease-in-out infinite;
}
.hero-media.seasonal .hero-variant-2.is-ready {
  animation:cir-hero-season-container 45s ease-in-out infinite;
}
.hero-media.seasonal .hero-tree {
  animation:cir-hero-season-tree 45s ease-in-out infinite;
}
@keyframes cir-hero-alternation {
  0%,33.333333% {opacity:0}
  50%,83.333333% {opacity:1}
  100% {opacity:0}
}
@keyframes cir-hero-season-container {
  0%,22.222222% {opacity:0}
  33.333333%,55.555556% {opacity:1}
  66.666667%,100% {opacity:0}
}
@keyframes cir-hero-season-tree {
  0%,55.555556% {opacity:0}
  66.666667%,88.888889% {opacity:1}
  100% {opacity:0}
}
@media (prefers-reduced-motion:reduce), print {
  .hero-media .hero-variant-2.is-ready,
  .hero-media.tree-only .hero-tree,
  .hero-media.seasonal :is(.hero-variant-2.is-ready, .hero-tree) {
    animation:none;
    opacity:0;
  }
}
/* ENDE GENERIERTE PANORAMA-ANIMATION */


/* Wechselansichten: minmax(0, 1fr) lässt die Rasterzeile unter die Inhaltshöhe
   schrumpfen. Langer Text scrollt dadurch in .text-scroll innerhalb des
   sichtbaren Rahmens. Die zugehörigen Spalten stehen bei .text-frame.has-text-arrows. */
@media screen {
  .js-scroll .text-frame.has-text-arrows { grid-template-rows:minmax(0,1fr) auto; }
}

/* Der Ersatz liegt innerhalb des bestehenden, höhenfesten Bildbands. */
.hero-fallback {
  position:absolute;
  inset:0;
}
.hero-media.photo-failed .hero-fallback {
  box-shadow:inset 0 0 0 1px var(--line);
}
.hero-fallback span {
  position:absolute;
  right:3%;
  bottom:10%;
  max-width:42%;
  padding:.15em .4em;
  color:var(--navy);
  background:white;
  font-size:clamp(.75rem,1.2vw,1rem);
}
.hero-media img.unavailable { visibility:hidden; }
.hero-media img.hero-variant-2.standalone { animation:none; opacity:1; }



/* Die Abdunklung dient nur der Lesbarkeit auf einem geladenen Motiv. */
.hero-media:not(.has-photo)::after { display:none; }
.hero-media.has-photo { background-color:var(--navy); }

/* R110: Nur die Bildebene einblenden. Der gemeinsame Container und die
   festen Textebenen bleiben ohne Opazitätsanimation (WebKit/Touch). */
.js-panorama .hero-media:not(.has-photo):not(.photo-failed) .hero-pictures {
  opacity:0;
}
.js-panorama .hero-media.has-photo .hero-pictures {
  animation:panorama-einblenden .5s ease-in-out;
}
@keyframes panorama-einblenden {
  from { opacity:0; }
  to { opacity:1; }
}
@media (prefers-reduced-motion:reduce) {
  .js-panorama .hero-media.has-photo .hero-pictures { animation:none; }
}

/* Lesbarer Text bei Bildausfall und ohne aktive Panoramasteuerung. */
.js-panorama .hero-media:not(.has-photo) :is(.hero-message, .hero-copyright),
.hero-media.photo-failed :is(.hero-message, .hero-copyright),
html:not(.js-panorama) .hero-media :is(.hero-message, .hero-copyright) {
  color:var(--navy);
  text-shadow:none;
}
html:not(.js-panorama) .hero-media :is(.hero-message, .hero-stamp) {
  background:var(--page-background);
}

/* Breite Touch-Tablets im Querformat: einheitliche, mit der
   Benutzerschriftgröße skalierende Titel statt Viewport-Schriftgrößen. */
@media screen and (min-width:900px) and (min-height:501px) and (orientation:landscape) and (hover:none) and (pointer:coarse) {
  :root { --heading-1:1.45rem; }
  .hero-headline { font-size:1.2rem; }
  .hero-claim { font-size:.72rem; }
  .hero-rule { width:2.25rem; }
}

/* Saisonmotiv: rechte Parkfläche mit Baum, Geschenken und Schlitten. */
.hero .hero-tree {
  aspect-ratio:2172 / 556;
}
.hero-tree-image {
  position:absolute;
  right:0;
  top:0;
  width:34.161%;
  height:100%;
}
/* Warmweiße Lichtpunkte bleiben an den Kerzen des Fotos verankert. */
.tree-candle {
  position:absolute;
  left:var(--x);
  top:var(--y);
  width:.32%;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#fff6c8;
  box-shadow:0 0 4px 1px #ffdc86bb,0 0 7px 1px #ffcc6670;
  animation:cir-candle-glow var(--tempo) ease-in-out var(--offset) infinite alternate;
}
@keyframes cir-candle-glow {
  0%,12% {opacity:.25}
  55% {opacity:.95}
  100% {opacity:.55}
}
@media (prefers-reduced-motion:reduce), print {
  .tree-candle {animation:none;opacity:.65}
}

/* Auf schmalen Displays steht Kontakt im Menü und der Schriftzug braucht weniger Platz. */
.main-nav .menu-contact-link { display:none; }
@media (max-width:500px) {
  .header .brand:is(:link,:visited) {
    font-size:.78rem;
    flex-shrink:1;
  }
  .header .brand-name { min-width:0; }
  .main-nav .contact-link { display:none; }
  .main-nav .menu-contact-link { display:block; }
  .main-nav .nav-menu.menu-current-contact > summary { border-bottom-color:var(--orange); }
}

.header .brand span { font-weight:400; }
.header .brand strong { font-weight:600; }

.header .brand .brand-name {
  position:relative;
  border-left-color:transparent;
}
.header .brand .brand-name::before {
  content:"";
  position:absolute;
  inset-block:.28em .19em;
  left:-.125em;
  width:.125em;
  background:var(--orange);
}
.header .brand .brand-name strong { font-size:1.38em; }

.print-notice {
  display:none;
}

@media print {
  html,
  body {
    display:block;
    height:auto;
    overflow:visible;
    background:#fff;
    color:#000;
  }
  body > :not(.print-notice) {
    display:none !important;
  }
  .print-notice {
    display:block;
    margin:1em 0;
  }
}
