/* ==========================================================================
   FOCUS Gruppe · Responsive
   Breakpoints nach Webflow (991 / 767 / 479) plus 1199 und 1100 für
   Menü, Footer und das Netzwerk der Gesellschaften.
   ========================================================================== */

@media (max-width: 1199px) {
  .menu__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu__company-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.5rem 3rem;
  }

  .footer__brand address {
    margin-top: 0;
  }

  .footer__brand .btn-row {
    margin-top: 0;
  }

}

@media (max-width: 1100px) {
  .hero__head,
  .hero__intro {
    grid-column: 1 / -1;
  }

  .hero__intro {
    max-width: 40rem;
    padding-bottom: 0;
  }

}

@media (max-width: 991px) {
  .page-head__text,
  .page-head__visual {
    grid-column: 1 / -1;
  }

  .page-head__visual {
    max-width: 34rem;
  }

  .brand-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .brand-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--color-line);
  }

  .value-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news--two {
    grid-template-columns: 1fr;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .linkgrid,
  .tiles,
  .values,
  .locations,
  .card-list,
  .points,
  .sitemap,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news__item {
    padding-block: 1.25rem 1.5rem;
  }

  .split__media,
  .split__text,
  .split--reverse .split__media,
  .split--reverse .split__text {
    grid-column: 1 / -1;
    order: 0;
  }

  .split__media {
    margin-right: 1.5rem;
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .protect-demo {
    grid-template-columns: 1fr;
  }

  .person {
    grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tool-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .tool-btn {
    width: 2.75rem;
    padding: 0;
    justify-content: center;
  }

  .switcher {
    display: none;
  }

  .menu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .menu__company-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .caption-line {
    text-align: left;
  }

  .linkgrid,
  .tiles,
  .values,
  .locations,
  .card-list,
  .points,
  .sitemap,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .person {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding: 0.75rem 0 0.1rem;
    border-bottom: 0;
  }

  .facts dd {
    padding-top: 0;
  }

  .person__photo {
    max-width: 10rem;
  }

  .logo-wall {
    grid-template-columns: 1fr;
  }

  .logo-wall__item--main img {
    height: 6.5rem;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .brand-facts {
    grid-template-columns: 1fr;
  }

  .brand-facts li,
  .brand-facts li + li,
  .brand-facts li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .brand-facts li + li {
    border-top: 1px solid var(--color-line);
  }

  .menu__grid,
  .menu__company-list {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__select {
    min-width: 0;
    width: 100%;
  }

  .footer__switch,
  .footer__switch-row {
    width: 100%;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .company__logo {
    height: 3.5rem;
  }

  .mini:not(.mini--text) {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .protect__box {
    --logo-demo: 5.5rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  .site-header,
.menu,
.search,
.rail,
.site-footer,
.skip-link {
    display: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  /* Spinne und Aufbau-Zustände: auf Papier immer vollständig */
  .js .network:not(.is-built) .netcard,
  .js .network:not(.is-built) .netmark {
    opacity: 1 !important;
    transform: none !important;
  }

  .network__lines path {
    stroke-dashoffset: 0 !important;
  }

  .network-section::before,
  .page-head::before,
  .hero::before,
  .hero--dark::after,
  .chapter--rauch::before,
  .chapter--rauch::after,
  .bild-band::before {
    display: none;
  }

  .hero--dark,
  .chapter--rauch,
  .page-head--dark {
    background: #fff;
    color: #000;
  }

  .page-head--dark::after {
    display: none;
  }

  .page-head--dark .lead,
  .page-head--dark .intro,
  .page-head--dark .breadcrumb {
    color: #000;
  }

  .hero--dark .hero__title,
  .hero--dark .kicker,
  .hero--dark .hero__lead,
  .chapter--rauch h2 {
    color: #000;
  }

  .hero--dark .hero__sheet {
    box-shadow: none;
    border: 1px solid #d9d9d9;
  }

  .netcard,
  .netcard__link {
    box-shadow: none;
    border: 1px solid #d9d9d9;
  }

  /* Dunkle Bausteine behalten ihre Fläche */
  .section--dark,
  .chapter--dark,
  .site-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Umbruch: Überschriften bleiben beim Inhalt, Karten bleiben ganz */
  h1,
  h2,
  h3,
  .kicker,
  .section-head,
  .chapter__head {
    break-after: avoid;
  }

  .card,
.netcard,
.value,
.person,
.doc,
.tile,
.figure,
.loc,
.pillar,
.area-card,
.milestone,
.split__media,
.objekt-band,
.page-hero,
.drawing,
figure {
    break-inside: avoid;
  }

  .page-head {
    break-after: avoid;
  }

  img,
  svg {
    max-width: 100% !important;
  }

  .page-hero img {
    height: 60mm;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ==========================================================================
   Version 0.3.0 – Gruppenseiten
   ========================================================================== */
@media (max-width: 1199px) {
  .menu__company-groups {
    grid-template-columns: 1fr;
  }

  .menu__company-list--2,
  .menu__company-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .profile__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .profile__feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc {
    grid-template-columns: 1fr;
  }

  .doc__status {
    justify-content: flex-start;
  }

  .figures,
.area-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .figure,
  .figure:not(:nth-child(3n + 1)) {
    padding: 1.6rem 1.25rem 1.8rem 0;
    border-left: 0;
  }

  .figure:nth-child(even) {
    padding-left: 1.25rem;
    border-left: 1px solid var(--color-line);
  }
}

@media (max-width: 767px) {
  .menu__company-list--2,
  .menu__company-list--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile__avatar {
    width: 7.5rem;
  }

  .profile__head {
    gap: 1rem 1.25rem;
  }

  .profile__feed,
.area-cards,
.pillars {
    grid-template-columns: 1fr;
  }

  .highlights {
    gap: 1rem;
  }

  .highlight {
    width: 6.5rem;
  }

  .highlight__ring {
    width: 3.75rem;
  }

  .highlight__ring .fi {
    width: 1.75rem;
    height: 1.75rem;
  }

  .milestone {
    grid-template-columns: 1fr;
    padding-left: 1.75rem;
  }

  .milestone::before {
    top: 0.9rem;
    left: 0.3rem;
  }

  .milestone::after {
    left: calc(0.3rem - 4px);
  }

  .milestone__when {
    justify-content: flex-start;
    margin-bottom: 0.4rem;
    text-align: left;
  }
}

@media (max-width: 479px) {
  .menu__company-list--2,
  .menu__company-list--3 {
    grid-template-columns: 1fr;
  }

  .profile__head {
    grid-template-columns: 1fr;
  }

  .figures {
    grid-template-columns: 1fr;
  }

  .figure,
  .figure:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

/* --- Nachtrag 0.3.0 --- */
@media (max-width: 1199px) {
  .logo-groups {
    grid-template-columns: 1fr;
  }

  .logo-wall--2,
  .logo-wall--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .logo-wall--2,
  .logo-wall--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .logo-wall--2,
  .logo-wall--3 {
    grid-template-columns: 1fr;
  }
}

/* --- Netzwerk 0.3.1 (Vorlage 17.09.2026) --- */
@media (max-width: 1199px) {
  .network__row--pair,
  .network__row--platform {
    column-gap: clamp(3.5rem, 9vw, 7rem);
  }
}

@media (max-width: 991px) {
  .network__lines {
    display: none;
  }

  .network__stage {
    gap: 0.9rem;
    max-width: 30rem;
    padding-block: 1.25rem;
  }

  .network__row--pair,
  .network__row--platform {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .network__row--solo {
    grid-template-columns: 1fr;
  }

  .network__row--platform > :last-child {
    width: 100%;
  }

  .netcard__link {
    gap: 1.1rem;
    padding: 1.05rem 1.2rem;
  }

  .netcard__logo {
    height: 2.4rem;
  }

  .netmark {
    padding-block: 1rem;
  }

  .netmark__svg {
    width: 7rem;
  }
}

@media (max-width: 991px) {
  .objekt-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .objekt-band__media img {
    margin-inline: auto;
  }
}

@media (max-width: 991px) {
  .news--media .news__item {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

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

@media (max-width: 767px) {
  .news--media .news__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .news__media {
    max-width: 18rem;
  }
}

@media (max-width: 767px) {
  .doc--cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc__cover {
    max-width: 10rem;
  }
}

/* Rechtliche Übersicht schon ab 991 px als Kartenliste (fünf Spalten mit Links werden sonst zu breit) */

@media (max-width: 1199px) {
  .objekt-band--m {
    grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .objekt-band--m,
  .objekt-band--l {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .bild-band__text {
    max-width: none;
    padding-right: 30%;
  }

  .bild-band::before {
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.85) 55%, rgba(0, 0, 0, 0.3) 100%);
  }
}

@media (max-width: 767px) {
  .bild-band__text {
    padding-right: 0;
  }

  .bild-band::before {
    background: rgba(0, 0, 0, 0.72);
  }

  .hero--dark::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.75) 100%);
  }
}

@media (max-width: 991px) {
  .hero--dark .hero__intro {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .hero--dark {
    padding-block: 3.5rem 3.5rem;
  }

  .hero--dark .hero__sheet {
    margin-top: 2.5rem;
  }
}

@media (max-width: 767px) {
  .page-head--dark::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.75) 100%);
  }
}

/* Organigramm: unterhalb von 992 px als Liste, Trenner als waagerechte gestrichelte Linie */
@media (max-width: 991px) {
  .org__branches {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 0;
  }

  .org__branches::before,
  .org__branch::before {
    display: none;
  }

  .org__root::after {
    height: 1.5rem;
  }

  .org {
    gap: 1.5rem;
  }

  .org__sep {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: auto;
    min-height: 2.5rem;
    transform: none;
  }

  .org__sep span {
    width: 100%;
    height: 0;
    margin-top: 1.25rem;
    border-left: 0;
    border-top: 1px dashed var(--focus-red);
  }

  .org__sep em {
    top: 0.3rem;
    padding: 0 0.5rem;
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 991px) {
  .profile__slogan {
    position: static;
    padding: 0.75rem 1.25rem 1.25rem;
  }
}

@media (max-width: 991px) {
  .signet-tile {
    width: min(100%, 16rem);
    margin: 0 auto;
  }
}
