/* AIV layout aligned with the HfoeD reference; asset provenance: DESIGN_QUELLEN.md. */
:root {
  --blue: #008cd2;
  --strong-blue: #0070a6;
  --dark: #3f3f3f;
  --light: #f3f3f3;
  --line: #e6e6e6;
  --red: #b00020;
  --page-width: 940px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 14px/1.5 Arial, Verdana, Helvetica, sans-serif;
  color: var(--dark);
  background: #fff url('../Images/hfoed-hintergrund.png') left top / auto 644px repeat-x;
}
a { color: var(--dark); text-underline-offset: .16em; overflow-wrap: anywhere; }
a:hover { color: var(--strong-blue); }
:focus-visible { outline: 3px solid var(--strong-blue); outline-offset: 3px; }
.site-shell { width: min(var(--page-width), calc(100% - 32px)); margin: 20px auto 0; background: #fff; flex: 1; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 100; background: #fff; padding: 1rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* White masthead, compact service/search strip and white main navigation. */
.brand-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-height: 130px; padding: 18px 18px 30px; }
.brand { display: block; width: 235px; max-width: 65%; }
.brand img { display: block; width: 100%; height: auto; }
.state-emblem { display: block; width: 104px; height: 64px; object-fit: contain; margin-top: 4px; }
/* AIV masthead follows the reference: three blue lines beside the state emblem. */
.aiv-header-identity { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.aiv-institution-label { color: #008dc9; font-size: 17px; font-weight: 400; line-height: 20px; white-space: nowrap; text-align: right; }
.aiv-header-identity .state-emblem { flex: none; margin-top: 0; }
.utility-bar { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; min-height: 40px; background: #fff; }
.utility-bar > nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; background: var(--light); }
.utility-bar > nav a { display: block; padding: 10px 12px; font-size: 13px; text-decoration: none; border-right: 1px solid var(--line); }
.utility-bar > nav a:hover, .utility-bar > nav a:focus-visible { background: var(--strong-blue); color: #fff; }
.utility-bar > nav .utility-home { display: flex; align-items: center; justify-content: center; width: 49px; min-height: 40px; padding: 7px; }
.utility-home svg { display: block; flex: none; }
.header-search { display: flex; min-width: 0; width: 310px; max-width: 100%; background: var(--light); }
.header-search input[type=search] { width: 100%; min-width: 0; border: 1px solid var(--line); border-right: 0; border-radius: 0; padding: 9px 12px; background: var(--light); font: inherit; }
button, input[type=submit] { font: inherit; border: 0; padding: 9px 14px; background: var(--strong-blue); color: #fff; cursor: pointer; }
button:hover, input[type=submit]:hover { background: #005d8b; }
.main-navigation { background: #fff; border-bottom: 1px solid var(--line); }
.main-navigation ul { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.main-navigation li { flex: 1 1 auto; }
.main-navigation a { display: flex; align-items: center; justify-content: center; min-height: 60px; height: 100%; padding: 12px; color: #111; font-size: 16px; line-height: 1.25; font-weight: 400; text-align: center; text-decoration: none; }
.main-navigation a:hover, .main-navigation a.active, .main-navigation a:focus-visible { background: var(--strong-blue); color: #fff; }
.mobile-navigation { display: none; }

/* Blue section headings and a restrained, unboxed content column. */
.page-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding: 20px 16px 40px; min-height: 45vh; }
.page-grid:has(.section-navigation:empty) { grid-template-columns: minmax(0, 1fr); }
.section-navigation:empty { display: none; }
.section-navigation { min-width: 0; font-size: 14px; }
.section-navigation ul { list-style: none; margin: 0; padding: 0; }
.section-navigation a { display: block; position: relative; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--dark); text-decoration: none; line-height: 1.4; }
.section-navigation a:hover { color: var(--strong-blue); background: var(--light); }
.section-navigation a[aria-current=page] { color: var(--strong-blue); font-weight: 700; border-left: 4px solid var(--blue); padding-left: 10px; background: var(--light); }
.section-navigation nav > ul:first-child > li > a { padding: 10px 14px; border: 0; background: var(--strong-blue); color: #fff; font-weight: 700; }
.section-navigation nav > ul:first-child > li > a:hover { background: #005d8b; }
.section-navigation ul ul { margin-left: 15px; border-left: 1px solid var(--line); }
.section-navigation ul ul a { padding-left: 12px; font-size: 13px; }
/* All twelve AIV sections stay present; native details reveal their subpages. */
.aiv-tree summary { display: flex; align-items: stretch; list-style: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.aiv-tree summary::-webkit-details-marker { display: none; }
.aiv-tree summary::after { content: '›'; display: flex; align-items: center; justify-content: center; width: 40px; flex: none; font-size: 23px; color: var(--strong-blue); }
.aiv-tree details[open] > summary::after { transform: rotate(90deg); }
.aiv-tree summary > a { flex: 1; min-width: 0; border-bottom: 0; }
.aiv-tree-root > details > summary, .aiv-tree-root > .aiv-tree-leaf { background: var(--light); }
.aiv-tree-root > details > summary > a, .aiv-tree-root > .aiv-tree-leaf > a { font-weight: 700; }
.aiv-tree ul ul { margin-left: 12px; }
.page-grid--aiv-tree #links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid.page-grid--aiv-home { grid-template-columns: minmax(0, 1fr); }
main { min-width: 0; }
main:focus { outline: 0; }
.breadcrumbs { font-size: 12px; color: #666; margin-bottom: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li:before { content: '/'; margin-right: .4rem; color: #777; }
.breadcrumbs a { color: #555; }
h1, h2, h3, h4 { line-height: 1.3; overflow-wrap: anywhere; }
h1 { color: var(--blue); font-size: 23px; font-weight: 700; margin: 0 0 22px; }
h2 { color: var(--dark); font-size: 19px; margin: 28px 0 14px; }
h3 { color: var(--dark); font-size: 16px; margin: 24px 0 12px; }
main p { max-width: 80ch; margin: 0 0 14px; }
main img, main video { max-width: 100%; height: auto; }
.ce-gallery, .ce-column { max-width: 100%; }
main figure { margin: 20px 0; }
main figcaption { color: #666; font-size: 12px; }
main ul, main ol { padding-left: 20px; margin: 0 0 16px; }
main li { margin: 4px 0; }
main table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; font-size: inherit; }
th, td { padding: 8px; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--light); }
main .image.right { float: right; max-width: 40%; margin: 0 0 14px 20px; }
main .clear { clear: both; }
.frame { margin-bottom: 24px; }
.ce-gallery img { max-width: 100%; height: auto; }
.ce-bodytext p:empty { display: none; }

/* Retained AIV entry links, using the reference's blue/grey visual language. */
#links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
#links > .anchor, #links > p { display: none; }
#links .link_block { min-width: 0; padding: 0 14px 16px; background: var(--light); }
#links .link_block > a:first-of-type, #links .link_block > p:has(img) { display: flex; align-items: center; justify-content: center; height: 112px; margin: 0 -14px; background: #fff; overflow: hidden; }
#links .link_block > a:first-of-type img, #links .link_block > p:has(img) img { display: block; width: auto; height: 80px; max-width: 100%; object-fit: contain; }
#links .link_block h2 { margin: 0 -14px 14px; padding: 10px 14px; background: var(--strong-blue); color: #fff; font-size: 16px; }
#links .link_block h2 a { color: inherit; text-decoration: none; }
#links .link_block h2 a:hover { text-decoration: underline; }
#links .link_block li { margin: 6px 0; line-height: 1.4; }
#links .link_block p { margin: 8px 0; }
#links .link_block > p { display: none; }
#links .link_block > p:has(img) { display: flex; }
.aiv-unavailable, .aiv-disabled-form { background: #fff4d9; color: #694400; padding: 3px 6px; }
.aiv-disabled-form { padding: 14px; border-left: 4px solid #a76d00; }
.aiv-restriction-label { display: inline-block; background: #fff4d9; color: #694400; font-size: 12px; padding: 2px 6px; margin-left: 4px; }

/* Native TYPO3 search and page-wide blue footer. */
input, select, textarea { max-width: 100%; font: inherit; }
.tx-indexedsearch { padding-top: 14px; }
.tx-indexedsearch fieldset { border: 1px solid var(--line); padding: 14px; }
.tx-indexedsearch legend { font-weight: 700; }
.tx-indexedsearch input[type=text], .tx-indexedsearch input[type=search], .tx-indexedsearch select { padding: 8px; border: 1px solid #999; }
.tx-indexedsearch-searchbox > form { margin-bottom: 20px; }
.tx-indexedsearch-res { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tx-indexedsearch-res h3 { margin: 0 0 8px; }
.tx-indexedsearch-whatis { font-size: 13px; }
.tx-indexedsearch-browsebox ul { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; }
.site-footer { width: 100%; background: var(--strong-blue); color: #fff; padding: 24px 16px; }
.footer-inner { max-width: var(--page-width); margin: 0 auto; text-align: center; }
.site-footer strong { font-size: 14px; font-weight: 400; }
.site-footer p { font-size: 13px; margin: 4px 0; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin-top: 20px; font-size: 13px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fff; }

@media (max-width: 1000px) {
  .site-shell { width: calc(100% - 32px); }
  .main-navigation a { font-size: 15px; }
  .page-grid { grid-template-columns: 220px minmax(0, 1fr); }
  #links { gap: 16px; }
}
@media (max-width: 760px) {
  body { background: #fff; font-size: 15px; }
  .site-shell { width: 100%; margin: 0; }
  .brand-row { min-height: 110px; padding: 18px 16px 24px; }
  .brand-row.brand-row--institution { gap: 12px; }
  .brand-row--institution .brand { width: clamp(88px, 29vw, 190px); flex: none; }
  .aiv-header-identity { gap: 8px; }
  .aiv-institution-label { font-size: 12.6px; line-height: 14px; }
  .aiv-header-identity .state-emblem { width: 64px; height: 47px; }
  .brand { width: 210px; }
  .state-emblem { width: 80px; height: 56px; }
  .utility-bar { position: relative; padding: 0 12px; background: var(--light); }
  .utility-bar > nav { width: 100%; order: 0; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .utility-bar--links > nav { justify-content: flex-start; }
  .utility-bar > nav a { padding: 8px; font-size: 12px; border: 0; }
  .header-search { order: 2; flex: 1; width: auto; }
  .utility-bar--links > .header-search { flex: 1 0 100%; width: 100%; }
  .header-search input[type=search] { padding: 10px 8px; font-size: 14px; }
  .header-search button { padding: 10px; font-size: 14px; }
  .main-navigation { display: none; }
  .mobile-navigation { display: block; order: 1; }
  .mobile-navigation summary { cursor: pointer; list-style: none; padding: 11px 10px 11px 0; color: var(--dark); font-size: 14px; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary::before { content: '\2630'; margin-right: 6px; }
  .mobile-navigation[open] summary { color: var(--strong-blue); }
  .mobile-navigation nav { position: absolute; left: 12px; right: 12px; top: 100%; z-index: 20; background: var(--strong-blue); box-shadow: 0 5px 10px #0002; }
  .mobile-navigation ul { list-style: none; margin: 0; padding: 0; }
  .mobile-navigation li + li { border-top: 1px solid #ffffff40; }
  .mobile-navigation a { display: block; padding: 13px 16px; color: #fff; text-decoration: none; }
  .mobile-navigation a:hover, .mobile-navigation a:focus-visible { background: #005d8b; }
  .mobile-navigation :focus-visible { outline-color: #fff; outline-offset: -4px; }
  .page-grid { display: flex; flex-direction: column; padding: 20px 16px 32px; gap: 24px; }
  .page-grid main { order: 0; }
  .section-navigation { order: 1; font-size: 15px; }
  .page-grid--aiv-tree .section-navigation { order: 0; }
  .page-grid--aiv-tree main { order: 1; }
  .section-navigation ul ul a { font-size: 14px; }
  .breadcrumbs { font-size: 12px; margin-bottom: 18px; }
  h1 { font-size: 22px; }
  #links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main .image.right { float: none; max-width: 100%; margin: 0 0 16px; }
  .site-footer { padding: 24px 16px; }
  .footer-inner { text-align: left; }
  .site-footer nav { justify-content: flex-start; gap: 10px 24px; }
}
@media (max-width: 460px) {
  .brand { width: 190px; }
  .state-emblem { width: 64px; height: 48px; }
  .brand-row { gap: 16px; }
  #links { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .page-grid--aiv-tree #links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: #fff; display: block; }
  .site-shell { width: 100%; margin: 0; }
  .utility-bar, .main-navigation, .section-navigation, .skip-link, .site-footer nav { display: none; }
  .page-grid { display: block; padding: 0; }
  .brand-row { padding: 0; min-height: 100px; }
  .site-footer { background: #fff; color: #000; padding: 16px 0; }
  .footer-inner { text-align: left; }
  a { color: #000; }
}

/* Fortbildungsformulare: scoped controls and printable, private receipts. */
.aiv-fobi{max-width:62rem}.aiv-fobi fieldset{border:1px solid #aebdca;border-radius:.25rem;padding:1rem;margin:1.25rem 0;min-width:0}.aiv-fobi legend{font-weight:700;padding:0 .4rem}.fobi-field{margin:0 0 1rem}.fobi-field label,.fobi-selection>label{display:block;font-weight:600;margin-bottom:.35rem}.aiv-fobi input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.aiv-fobi select,.aiv-fobi textarea{display:block;width:100%;max-width:100%;box-sizing:border-box;padding:.6rem;border:1px solid #5e7183;border-radius:.2rem;background:#fff;color:#182e42;font:inherit}.aiv-fobi select{white-space:normal}.fobi-check{display:flex;align-items:flex-start;gap:.6rem;margin:.65rem 0}.fobi-check input{margin-top:.3rem;flex:0 0 auto}.aiv-fobi button{margin:.65rem 0;padding:.65rem 1rem;background:#174d78;color:white;border:2px solid #174d78;border-radius:.2rem;font:inherit;cursor:pointer}.aiv-fobi :focus-visible{outline:3px solid #b75600;outline-offset:3px}.fobi-error-summary{border:2px solid #a22222;padding:1rem}.fobi-error,.fobi-error-summary{color:#8d1818}.aiv-fobi [aria-invalid=true]{border-color:#a22222}.fobi-note,.fobi-print-note{font-size:.95rem}.fobi-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.fobi-receipt table{width:100%;table-layout:fixed}.fobi-receipt th,.fobi-receipt td{overflow-wrap:anywhere;text-align:left;vertical-align:top;padding:.5rem}.fobi-closed{font-size:.95rem}.fobi-selection{margin:1rem 0}.fobi-register-link{white-space:nowrap}
@media print{body:has(.fobi-receipt) .site-header,body:has(.fobi-receipt) .section-navigation,body:has(.fobi-receipt) .breadcrumbs,body:has(.fobi-receipt) .site-footer,.fobi-no-print{display:none!important}body:has(.fobi-receipt) .page-grid{display:block!important}body:has(.fobi-receipt) main{width:100%;margin:0;padding:0}.fobi-receipt tr{break-inside:avoid}.fobi-receipt a::after{content:none!important}}

/* Live seminar lists: tables scroll within the content column on small screens. */
.aiv-fobi-dynamic{max-width:100%;min-width:0}.aiv-fobi-dynamic .fobi-table-scroll{max-width:100%;overflow-x:auto;margin:1rem 0}.aiv-fobi-dynamic table{width:100%;border-collapse:collapse;min-width:42rem}.aiv-fobi-dynamic th,.aiv-fobi-dynamic td{padding:.5rem;border:1px solid #b4c0cb;text-align:left;vertical-align:top;overflow-wrap:anywhere}.aiv-fobi-dynamic th{background:#eef3f7}.aiv-fobi-dynamic caption{text-align:left;font-weight:700;margin-bottom:.6rem}.fobi-topic-list li{margin:.4rem 0}.fobi-topic-groups>li{margin-bottom:1.3rem}.fobi-year-navigation ul{display:flex;flex-wrap:wrap;gap:1rem;list-style:none;padding:0}.fobi-year-navigation [aria-current=page]{font-weight:700;text-decoration:underline}.fobi-topic-description{overflow-wrap:anywhere}.fobi-list-note{font-size:.95rem}.aiv-fobi-dynamic .fobi-sort-link[aria-current=true]{font-weight:700}.fobi-material-pending{color:#4b5863}
