/* Shared app header and device-local desktop layout. */
:root { --hu-page-width:1120px; --hu-form-width:1040px; }
.app-kopf { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 auto 18px; padding:8px 2px 14px; border-bottom:1px solid var(--hu-line,#dbe5ec); }
.app-marke { display:inline-flex; align-items:center; gap:9px; color:var(--hu-ink-strong,#183246); text-decoration:none; font-size:19px; font-weight:750; line-height:1; direction:ltr; }
.app-marke img { display:block; width:32px; height:32px; border-radius:8px; }
.app-einstellungen { display:flex; align-items:center; gap:8px; min-width:0; }
.app-kopf .app-sprache,.app-kopf .app-ansicht summary { display:flex; align-items:center; justify-content:center; gap:8px; width:auto; min-width:0; min-height:42px; margin:0; padding:9px 12px; border:1px solid var(--hu-line-strong,#bfd1df); border-radius:11px; background:#fff; color:var(--hu-blue-dark,#165b88); box-shadow:none; font:inherit; font-size:13px; font-weight:600; line-height:1.3; cursor:pointer; transform:none; }
.app-kopf svg { width:19px; height:19px; flex:none; }
.app-sprache strong { font-weight:650; color:var(--hu-ink,#284b66); }
.app-ansicht { position:relative; width:auto; margin:0; padding:0; border:0; background:transparent; box-shadow:none; color:inherit; }
.app-ansicht summary { list-style:none; }
.app-ansicht summary::-webkit-details-marker { display:none; }
.app-ansicht[open] summary { background:#edf6fc; border-color:#1f78b4; }
.ansicht-panel { position:absolute; inset-inline-end:0; top:calc(100% + 10px); z-index:9300; width:330px; max-width:calc(100vw - 40px); padding:16px; border:1px solid #cfdee9; border-radius:16px; background:#fff; box-shadow:0 16px 45px rgba(21,55,80,.18); text-align:start; }
.ansicht-panel p { margin:0 0 12px; font-size:13px; color:#587086; font-weight:650; }
.ansicht-panel button { position:relative; display:grid; gap:4px; width:100%; min-width:0; min-height:66px; margin:0 0 8px; padding:12px 36px 12px 13px; border:1px solid #dbe5ec; border-radius:10px; background:#fff; color:#183246; box-shadow:none; text-align:start; font:inherit; font-size:14px; transform:none; }
.ansicht-panel button:last-child { margin-bottom:0; }
.ansicht-panel button { padding-inline-start:13px; padding-inline-end:36px; }
html[dir="rtl"] :is(input[type="email"],input[type="tel"],input[inputmode="decimal"],input[inputmode="numeric"]) { direction:ltr; text-align:start; }
.ansicht-panel button span { font-size:12px; line-height:1.4; color:#587086; }
.ansicht-panel button[aria-pressed="true"] { background:#edf6fc; border-color:#1f78b4; }
.ansicht-panel button[aria-pressed="true"]::after { content:"✓"; position:absolute; inset-inline-end:13px; top:13px; color:#17658f; font-weight:800; }
.ansicht-panel button:focus-visible,.app-kopf summary:focus-visible,.app-kopf button:focus-visible { outline:3px solid #65bbef; outline-offset:3px; }
.kunden-sprachdialog-karte { position:relative; }
.kunden-sprachdialog-karte .sprachdialog-schliessen { position:absolute; inset-inline-end:12px; top:12px; width:36px; min-width:36px; min-height:36px; margin:0; padding:0; border:0; border-radius:50%; box-shadow:none; background:#edf3f7; color:#31546c; font-size:25px; line-height:1; }
.kundenportal-kopfaktionen,#kundenportalIntro { width:100%; max-width:var(--hu-form-width); margin-inline:auto; box-sizing:border-box; }
.kundenportal-kopfaktionen { display:grid; grid-template-columns:repeat(2,minmax(0,320px)); align-items:stretch; justify-content:center; gap:10px; margin-block:0 18px; }
.kundenportal-kopfaktionen > button { position:static; flex:0 1 auto; width:auto; min-width:0; min-height:42px; margin:0; padding:10px 14px; border:1px solid #bfd1df; border-radius:10px; background:#fff; color:#165b88; box-shadow:none; font-size:13px; line-height:1.4; }
#kundenportalIntro { text-align:center; margin-bottom:24px; }
#kundenportalIntro h2 { margin:0 0 10px; }
#kundenportalIntro .startText { max-width:68ch; margin-inline:auto; }
#kundenportalBereich:is(.kundenportal-einstieg,.kundenportal-uebersicht,.kundenportal-fenster-einstieg) .kundenportal-kopfaktionen { display:grid; grid-template-columns:repeat(2,minmax(0,320px)); justify-content:center; padding:0; border:0; background:transparent; box-shadow:none; }
#kundenportalBereich.kundenportal-einstieg #kundenportalIntro { text-align:center; }
#kundenportalBereich .kunden-formular-gruppe-kopf strong { color:var(--hu-ink-strong,#183246); }
.app-update-hinweis { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; margin:0 0 16px; padding:12px; border:1px solid #bfd1df; border-radius:12px; background:#edf6fc; color:#183246; font-size:14px; }
.app-update-hinweis[hidden] { display:none; }
.app-update-hinweis button { width:auto; margin:0; min-height:40px; padding:8px 14px; font-size:13px; }
@media (min-width:1200px) {
  :root[data-layout="compact"] { --hu-page-width:760px; --hu-form-width:700px; }
  :root[data-layout="wide"] { --hu-page-width:1840px; --hu-form-width:1440px; }
  body > .container { width:min(calc(100% - 48px),var(--hu-page-width)); max-width:var(--hu-page-width); }
  #kundenportalBereich,#appBereich,#projektBereich { width:100%; max-width:none; min-width:0; box-sizing:border-box; }
  #startBereich.start-hero { width:100%; max-width:none; box-sizing:border-box; display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:16px clamp(20px,2.5vw,46px); align-items:center; align-content:center; padding:clamp(24px,2.5vw,44px); }
  #startBereich[style*="display: block"] { display:grid !important; }
  #startBereich > :is(.logoBox,.hero-kicker,.startText,.kunden-unverbindlich-hinweis) { grid-column:1; margin-block:0; }
  #startBereich .portal-grid { grid-column:2; grid-row:1 / span 4; margin:0; }
  #startBereich .portal-kontakt { grid-column:1/-1; }
  #kundenportalBereich #kundenSchritt1 { width:100%; max-width:var(--hu-form-width); margin-inline:auto; box-sizing:border-box; }
  #kundenSchritt1:not([style*="display: none"]) { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 22px; align-items:start; }
  #kundenSchritt1 > :is(h3,button,.hp-field) { grid-column:1/-1; }
  #kundenSchritt1 .kunden-formular-gruppe { width:100%; max-width:none; min-width:0; box-sizing:border-box; }
  #kundenSchritt1 > button { width:min(100%,560px); justify-self:center; }
  #kundenBeratungHeizungZeile,.energie-modul { width:100%; max-width:var(--hu-form-width); margin-inline:auto; box-sizing:border-box; }
  :is(#kundenBeratungHeizungZeile,.energie-modul) .heizung-fragen-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #appBereich .intern-start-shell { width:100%; max-width:none; box-sizing:border-box; }
  :root[data-layout="compact"] #startBereich.start-hero:not([style*="display: none"]):not([hidden]) { display:block !important; }
  :root[data-layout="compact"] #startBereich .portal-grid { margin-top:22px; }
  :root[data-layout="compact"] #kundenSchritt1:not([style*="display: none"]) { display:block !important; }
  :root[data-layout="compact"] :is(#kundenBeratungHeizungZeile,.energie-modul) .heizung-fragen-grid { grid-template-columns:1fr; }
  :root[data-layout="compact"] #appBereich .intern-hauptauswahl { grid-template-columns:1fr; }
}
@media (max-width:1199px) { :root { --hu-form-width:620px; } .app-ansicht { display:none; } }
:root[data-layout-available="false"] .app-ansicht { display:none; }
@media (max-width:560px) {
  .app-kopf { gap:8px; margin-bottom:14px; padding:7px 0 11px; }
  .app-marke { font-size:17px; gap:6px; }
  .app-marke img { width:29px; height:29px; }
  .app-kopf .app-sprache { padding:8px 10px; font-size:12px; gap:6px; }
  .app-sprache > span:not([aria-hidden]) { display:none; }
  .kundenportal-kopfaktionen { gap:8px; }
  .kundenportal-kopfaktionen > button { flex:1 1 140px; font-size:12px; padding:9px 10px; }
  #kundenportalIntro { margin-bottom:18px; }
}
