/* Studienkolleg: fixed companion controls, scroll only the conversation log. */
.v3-companion { gap: 16px; }
.v3-conversation { display: flex; flex-direction: column; overflow: hidden; }
.v3-chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.v3-companion-top, .v3-compose, .v3-conversation > :not(.v3-chat-log) { flex-shrink: 0; }
.v3-compose button { min-width: 48px; min-height: 48px; }
.v3-gallery:empty { display: none; }
.v3-hero--no-photo .v3-hero-copy { width: 100%; max-width: 760px; }
.v3-editorial { grid-template-columns: minmax(0, 1fr); }
.v3-property > a { min-height: 48px; }
@media (max-width: 800px) {
  .v3-companion { display: flex; flex-direction: column; align-items: stretch; height: auto; max-height: none; }
  .v3-conversation { flex: 0 1 auto; }
  .v3-chat-log { flex: 0 1 auto; max-height: 14rem; }
}

.enquiry-error { display:block; color:#a42525; font-size:.875rem; line-height:1.4; margin-top:4px; }
.enquiry-error:empty { display:none; }
.v3-enquiry [aria-invalid="true"] { outline:2px solid #a42525; outline-offset:2px; }
#v3-enquiry-status:not(:empty) { padding:12px; border-left:4px solid #5b87ad; background:#eaf1f6; color:#113655; }

/* Chat-Schiene rechts bleibt an ihrem Platz (14.11.2026).
   Ursache: Die Schiene war oben angeheftet (sticky; top:0) und um die Kopfhöhe kürzer als das Fenster.
   Beim Scrollen rutschte sie deshalb um die Kopfhöhe nach oben (104 px, Arbeitsansichten 155 px),
   das Eingabefeld wanderte mit und unten blieb ein leerer Streifen.
   Behebung: unten anheften. Die Unterkante liegt immer an der Fensterunterkante, die Schiene bewegt sich nicht.
   Der Streifen über der Schiene, den die weggescrollte Kopfzeile freigibt, trägt die Farbe der Schiene. */
@media (min-width: 801px) {
  .v3-layout > .page, .layout > .page { grid-column: 1; grid-row: 1; }
  .v3-layout > .v3-companion, .layout > .assistant { grid-column: 2; grid-row: 1; align-self: end; top: auto; bottom: 0; }
  .layout > .assistant { height: calc(100dvh - 155px); }
  .v3-layout::after, .layout::after { content: ""; grid-column: 2; grid-row: 1; align-self: stretch; }
  .v3-layout::after { background: #edf3f7; border-left: 1px solid #d9e4ec; }
  .layout::after { background: var(--navy); border-left: 1px solid #254a68; }
}

/* Tippziele mindestens 24 × 24 px (WCAG 2.2 AA, 2.5.8), ohne Layoutänderung (14.11.2026).
   Technik: Innenabstand unten/rechts vergrößert die Trefferfläche, ein gleich großer negativer Außenabstand
   gleicht ihn aus. Position und Größe aller Inhalte bleiben unverändert (Bildvergleich im Pull Request).
   44 px sind Teil des Gestaltungsvorschlags, nicht dieser Regeln. */
.ecosystem-bar a { padding-bottom: 8px; margin-bottom: -8px; }
.source-strip a { padding-top: 8px; margin-top: -8px; } /* Unterlinie bleibt an ihrer Stelle */
.v3-header-actions .account-link { padding-bottom: 6px; margin-bottom: -6px; }
.system-nav a { padding-bottom: 6px; margin-bottom: -6px; }
.v3-footer-bottom a { padding-bottom: 5px; margin-bottom: -5px; padding-right: 3px; margin-right: -3px; }
.v3-card .text-link, .v3-property-bottom .text-link, .v3-contact-strip a,
details.v3-note > summary, details.sub-page > summary { padding-bottom: 4px; margin-bottom: -4px; }
.v3-social-links a { padding-bottom: 3px; margin-bottom: -3px; }
/* Nicht enthalten: die gestapelten Links der Fußzeilen-Spalten (Zeilenabstand 21,6 px). Dort würden sich vergrößerte
   Flächen überlappen; 24 px sind nur mit größerem Zeilenabstand erreichbar, also mit sichtbarer Änderung (Gestaltungsvorschlag). */
.footer-links a { padding-right: 4px; margin-right: -4px; }
.v3-breadcrumb a { padding-block: 5px; }

/* Fallback für das ausgeschlossene alte Bühnenbild: klar gekennzeichnet im Verhältnis 871 × 777. */
.v3-hero-placeholder { display: none; }
@media (min-width: 1001px) {
  .v3-hero--no-photo .v3-hero-placeholder { display: grid; place-items: center; position: absolute; right: 4%; bottom: 40px; width: 36%; max-width: 480px; aspect-ratio: 871 / 777;
    border: 2px dashed rgba(179, 205, 225, .7); border-radius: 14px; background: rgba(255, 255, 255, .05); color: #d7e7f3; font-size: 14px; line-height: 1.5; text-align: center; padding: 16px; z-index: 0; }
}
/* Fester KI-Hinweis im Seitenfuß (immer sichtbar). Kontrast für den dunklen Fuß gesetzt. */
.v3-footer .ai-notice { grid-column: 1 / -1; flex-basis: 100%; width: 100%; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; line-height: 1.5; color: #b4c7d8; opacity: .9; }
/* Redaktionsporträt (Laura Saboor, 400 px): nie über seine Dateigröße hinaus vergrößern, neben dem Text statt darüber. */
.v3-editorial > img { max-width: min(100%, 400px); }
@media (min-width: 1101px) { .v3-editorial:has(> img) { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 40px; } }

/* Abschnitt „Studienkolleg hautnah": bestehende Kurzvideos der alten Seite (Hochformat 9:16), Kundendesign (Navy-Band). Natives <video>, kein Autostart, preload="none". */
.v3-hautnah { background: linear-gradient(180deg,#0c2a44,#0e2e4a); color: #fff; border-radius: 16px; margin: 32px 0; padding: 40px 32px; }
.v3-hautnah .eyebrow { color: #9fc0dc; }
.v3-hautnah .v3-section-head p { color: #c6d6e4; }
.v3-hautnah h2, .v3-hautnah .v3-section-head h2 { color: #fff; }
.v3-video-card h3 { color: #fff; }
.v3-video-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.v3-video-card { margin: 0; }
/* Nur das Abspielelement der Startseite. Auf /campus/videos traegt der umgebende <article>
   dieselbe Klasse (v3-migration.js); mit dem allgemeinen Selektor bekam er Hochformat und den
   fast schwarzen Grund, auf dem der navyfarbene Titel mit 1,5:1 unlesbar stand. */
video.v3-video { width: 100%; height: auto; aspect-ratio: 576 / 1024; border-radius: 12px; background: #06131f; display: block; box-shadow: 0 8px 24px -8px rgba(4,20,35,.6); }
.v3-video:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.v3-video-card figcaption { margin: 12px 2px 0; }
.v3-video-cat { display: inline-block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #0c2a44; background: #B3CDE1; border-radius: 6px; padding: 3px 8px; margin: 0 0 6px; }
.v3-video-card h3 { margin: 6px 0 2px; font-size: 17px; }
.v3-video-card figcaption p { color: #c6d6e4; font-size: 14px; margin: 0; }
.v3-hautnah .v3-source-note { color: #9fb3c6; margin: 20px 0 0; }
@media (max-width: 980px) { .v3-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v3-video-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } .v3-hautnah { padding: 28px 18px; } }

.v3-video-placeholder { place-items: end center; padding: 24px 24px 28px; font-size: 15px; text-align: center; }

/* Fokusring auf den dunklen Flächen (Bühne, Fußzeile).
   design.css setzt den Ring global auf --navy (#113655) mit !important. Auf dem Bühnenverlauf
   (#0c2a44 bis #17466e) ergibt das 1,2:1 bis 1,3:1 und auf der Fußzeile (#0c2a44) 1,1:1 - der
   Ring war dort nicht zu sehen, also auch nicht bei den beiden Schaltflächen der Startseite.
   Gefordert sind 3:1. Mit dem hellen Markenton: 5,96:1 auf der Bühne, 8,90:1 auf der Fußzeile.
   Diese Datei wird als letzte geladen, darum greift die Korrektur. */
.v3-public .v3-hero :is(input,select,textarea,button,a,summary,[tabindex]):focus-visible,
.v3-public .v3-footer :is(input,select,textarea,button,a,summary,[tabindex]):focus-visible{
  outline:3px solid #b3cde1!important;outline-offset:3px!important}
