/* GENERIERT aus DOMUS_IFA1-BMF_Arbeitshilfe_V_2.4.4.html (Version 2.4.4) – nicht editieren.
   Eigene Anpassungen gehoeren in custom.css. Erzeugen:
   node .agents/skills/domus-theme/scripts/ifa1-import.js <rohdatei.html> */
    .ifa1-arbeitshilfe{
      --domus:#0b4f78;
      --domus-dark:#083d5c;
      --line:#cfd8df;
      --soft:#f5f8fa;
      --input:#fff3c4;
      --blue:#c7e9f7;
      --yellow:#fff200;
      --green:#c6efce;
      --purple:#e3a0dc;
      --orange:#f4c7ab;
      --text:#12212b;
    }
    .ifa1-arbeitshilfe *{box-sizing:border-box}
    .ifa1-arbeitshilfe{
      margin:0;
      font-family:Arial, Helvetica, sans-serif;
      color:var(--text);
      background:#eef3f6;
      font-size:14px;
    }
    .ifa1-arbeitshilfe header{
      background:linear-gradient(135deg,var(--domus),var(--domus-dark));
      color:white;
      padding:22px 28px;
      border-bottom:5px solid #8bb7cf;
    }
    .ifa1-arbeitshilfe header h1{margin:0;font-size:24px;letter-spacing:.2px}
    .ifa1-arbeitshilfe header p{margin:8px 0 0;opacity:.92}
    .ifa1-arbeitshilfe nav{
      position:sticky;top:0;z-index:5;
      display:flex;gap:6px;flex-wrap:wrap;
      background:white;padding:10px 16px;border-bottom:1px solid var(--line);
      box-shadow:0 2px 8px rgba(0,0,0,.06);
    }
    .ifa1-arbeitshilfe nav button{
      border:1px solid var(--line);
      background:#f8fafc;
      padding:9px 13px;
      border-radius:8px;
      cursor:pointer;
      font-weight:700;
      color:#17384b;
    }
    .ifa1-arbeitshilfe nav button.active{background:var(--domus);color:white;border-color:var(--domus)}
    .ifa1-arbeitshilfe main{max-width:1220px;margin:22px auto;padding:0 16px}
    .ifa1-arbeitshilfe .sheet{
      display:none;background:white;border:1px solid var(--line);border-radius:14px;
      box-shadow:0 8px 22px rgba(0,0,0,.08);overflow:hidden;margin-bottom:28px;
    }
    .ifa1-arbeitshilfe .sheet.active{display:block}
    .ifa1-arbeitshilfe .sheet-title{
      background:var(--domus);color:white;padding:13px 18px;
      font-size:18px;font-weight:700;text-align:center;
    }
    .ifa1-arbeitshilfe .content{padding:18px}
    .ifa1-arbeitshilfe .note{
      background:#eef7fb;border-left:5px solid var(--domus);padding:12px 14px;margin:12px 0 18px;
      line-height:1.45;
    }
    .ifa1-arbeitshilfe .warning{
      background:#fff6e5;border-left:5px solid #d98200;padding:12px 14px;margin:12px 0 18px;
      line-height:1.45;
    }
    
    
    .ifa1-arbeitshilfe select{
      max-width:170px;
      width:170px;
      box-sizing:border-box;
    }

    .ifa1-arbeitshilfe .auto-grow{
      min-height:70px;
      width:100%;
      resize:none;
      overflow:hidden;
      box-sizing:border-box;
    }

    .ifa1-arbeitshilfe .red-warning{
      background:#fdeaea;border-left:5px solid #c00000;color:#7a0000;padding:12px 14px;margin:12px 0 18px;
      line-height:1.45;border-radius:6px;display:none;
    }
    .ifa1-arbeitshilfe .section{
      margin:18px 0 24px;
      border:1px solid var(--line);
      border-radius:10px;
      overflow:hidden;
      background:white;
    }
    .ifa1-arbeitshilfe .section h2{
      margin:0;
      padding:10px 14px;
      background:var(--domus);
      color:white;
      font-size:16px;
      border-bottom:1px solid var(--domus-dark);
    }
    .ifa1-arbeitshilfe table{width:100%;border-collapse:collapse}
    .ifa1-arbeitshilfe th{
      background:transparent;
      color:#0c405f;
      padding:9px;
      border:1px solid var(--line);
      text-align:left;
      font-size:13px;
    }
    .ifa1-arbeitshilfe td{
      border:1px solid var(--line);padding:8px;vertical-align:top;
    }
    .ifa1-arbeitshilfe td.label{background:#bde3f1;font-weight:700;width: 340px}
    .ifa1-arbeitshilfe td.input{background:var(--input)}
    .ifa1-arbeitshilfe input[type=text], .ifa1-arbeitshilfe input[type=date], .ifa1-arbeitshilfe input[type=number], .ifa1-arbeitshilfe select, .ifa1-arbeitshilfe textarea{
      width:100%;
      border:1px solid #b8c5ce;
      border-radius:6px;
      padding:7px;
      font-family:Arial, Helvetica, sans-serif;
      font-size:13px;
      background:white;
    }
    .ifa1-arbeitshilfe textarea{min-height:68px;resize:vertical}
    .ifa1-arbeitshilfe .textarea-large{min-height:120px}
    .ifa1-arbeitshilfe .criteria-yellow{background:var(--yellow)}
    .ifa1-arbeitshilfe .criteria-green{background:var(--green)}
    .ifa1-arbeitshilfe .criteria-blue{background:var(--blue)}
    .ifa1-arbeitshilfe .criteria-purple{background:var(--purple)}
    .ifa1-arbeitshilfe .criteria-orange{background:var(--orange)}
    .ifa1-arbeitshilfe .checkbox-cell{text-align:center;width:90px}
    .ifa1-arbeitshilfe .checkbox-cell input{transform:scale(1.25)}
    .ifa1-arbeitshilfe .criteria-boxes{display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));gap:6px}
    .ifa1-arbeitshilfe .criteria-boxes label{display:flex;align-items:center;gap:5px;background:#f8fafc;border:1px solid #cfd8df;border-radius:6px;padding:5px 6px;font-size:12px;cursor:pointer}
    .ifa1-arbeitshilfe .criteria-boxes input{transform:scale(1.05)}
    .ifa1-arbeitshilfe .currency-wrap{position:relative;display:flex;align-items:center}
    .ifa1-arbeitshilfe .currency-symbol{position:absolute;left:10px;color:#5f6b73;font-size:14px}
    .ifa1-arbeitshilfe .currency-input{padding-left:24px !important}
    .ifa1-arbeitshilfe .badge{
      display:inline-block;padding:4px 9px;border-radius:999px;
      font-weight:700;font-size:12px;background:#e7eef2;color:#17384b;margin-right:6px;
    }
    .ifa1-arbeitshilfe .result-card{
      display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px;
    }
    .ifa1-arbeitshilfe .card{
      border:1px solid var(--line);border-radius:10px;background:#f9fbfc;padding:12px;
    }
    .ifa1-arbeitshilfe .card strong{display:block;margin-bottom:8px;color:#0c405f}
    .ifa1-arbeitshilfe .subtle{color:#607684;font-size:12px;line-height:1.4}
    .ifa1-arbeitshilfe .auto-hint{margin-top:8px;padding:8px;border-radius:6px;background:#edf0f2;color:#4d5b63;font-size:12px;line-height:1.35;display:none}
    .ifa1-arbeitshilfe .two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .ifa1-arbeitshilfe .printbar{text-align:right;margin:12px 0}
    .ifa1-arbeitshilfe .printbar button{
      background:var(--domus);color:white;border:0;border-radius:8px;
      padding:10px 14px;font-weight:700;cursor:pointer;
    }
    @media(max-width:800px){
      .ifa1-arbeitshilfe .two-col,.ifa1-arbeitshilfe .result-card{grid-template-columns:1fr}
      .ifa1-arbeitshilfe nav{position:static}
      .ifa1-arbeitshilfe td.label{width:auto}
    }
    
    @media print{
      @page{
        size:A4 landscape;
        margin:10mm;
      }

      .ifa1-arbeitshilfe{
        background:white !important;
        width:auto !important;
        height:auto !important;
        overflow:visible !important;
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
      }

      .ifa1-arbeitshilfe{
        font-size:11px !important;
        line-height:1.25 !important;
      }

      .ifa1-arbeitshilfe nav,
      .ifa1-arbeitshilfe .printbar,
      .ifa1-arbeitshilfe .save-toolbar{
        display:none !important;
      }

      .ifa1-arbeitshilfe .topbar{
        position:relative !important;
        min-height:70px !important;


      }

      .ifa1-arbeitshilfe .topbar-logo{
        height:52px !important;
        position:absolute !important;
        left:12px !important;
        top:8px !important;
      }

      .ifa1-arbeitshilfe .topbar-title-wrap{
        position:absolute !important;
        left:190px !important;
        top:17px !important;
        max-width:720px !important;
      }

      .ifa1-arbeitshilfe .topbar-title{
        font-size:20px !important;
      }

      .ifa1-arbeitshilfe .topbar-subtitle{
        font-size:9px !important;
      }

      .ifa1-arbeitshilfe .topbar-version{
        font-size:9px !important;
        font-weight:700 !important;
        margin-top:3px !important;
        color:#003b70 !important;
      }

      .ifa1-arbeitshilfe main{
        max-width:none !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
      }

      .ifa1-arbeitshilfe .sheet{
        display:block !important;
        box-shadow:none !important;
        border:0 !important;
        border-radius:0 !important;
        overflow:visible !important;


        margin:0 !important;
      }

      .ifa1-arbeitshilfe .sheet:not(.active){
        display:block !important;
      }

      .ifa1-arbeitshilfe .sheet-title{
        font-size:14px !important;
        padding:8px 10px !important;


      }

      .ifa1-arbeitshilfe .content{
        padding:8px 0 !important;
        overflow:visible !important;
      }

      .ifa1-arbeitshilfe .section{


        margin:8px 0 12px !important;
        overflow:visible !important;
      }

      .ifa1-arbeitshilfe .section h2{
        font-size:12px !important;
        padding:7px 9px !important;


      }

      .ifa1-arbeitshilfe table{
        width:100% !important;
        table-layout:fixed !important;
        border-collapse:collapse !important;


      }

      .ifa1-arbeitshilfe tr{


      }

      .ifa1-arbeitshilfe th, .ifa1-arbeitshilfe td{
        padding:4px !important;
        font-size:9.5px !important;
        line-height:1.2 !important;
        overflow:visible !important;
        white-space:normal !important;
        word-break:break-word !important;
        overflow-wrap:anywhere !important;
      }

      .ifa1-arbeitshilfe td.label{
        width:150px !important;
      }

      .ifa1-arbeitshilfe input,
      .ifa1-arbeitshilfe select,
      .ifa1-arbeitshilfe textarea{
        font-size:9.5px !important;
        line-height:1.2 !important;
        padding:3px 4px !important;
        min-height:auto !important;
        height:auto !important;
        max-width:100% !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        white-space:normal !important;
        color:#000 !important;
      }

      .ifa1-arbeitshilfe textarea,
      .ifa1-arbeitshilfe textarea.auto-grow,
      .ifa1-arbeitshilfe .textarea-large{
        min-height:34px !important;
        height:auto !important;
        resize:none !important;
        overflow:visible !important;
      }

      .ifa1-arbeitshilfe select{
        appearance:auto !important;
        -webkit-appearance:menulist !important;
      }

      .ifa1-arbeitshilfe .two-col,
      .ifa1-arbeitshilfe .hgb-legend-grid,
      .ifa1-arbeitshilfe .stb-legend-grid{
        display:block !important;
      }

      .ifa1-arbeitshilfe .two-col > div,
      .ifa1-arbeitshilfe .hgb-legend-grid > div,
      .ifa1-arbeitshilfe .stb-legend-grid > div{
        width:100% !important;
        max-width:100% !important;
        margin-bottom:6px !important;
      }

      .ifa1-arbeitshilfe .result-card,
      .ifa1-arbeitshilfe .steuer-result-row,
      .ifa1-arbeitshilfe .rent-grid{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:6px !important;
      }

      .ifa1-arbeitshilfe .card{


        padding:7px !important;
      }

      .ifa1-arbeitshilfe .note,
      .ifa1-arbeitshilfe .warning,
      .ifa1-arbeitshilfe .red-warning,
      .ifa1-arbeitshilfe .auto-hint{


        padding:7px 9px !important;
        margin:7px 0 !important;
        font-size:9.5px !important;
      }

      .ifa1-arbeitshilfe .checkbox-cell{
        width:38px !important;
      }

      .ifa1-arbeitshilfe .checkbox-cell input{
        transform:scale(.9) !important;
      }

      .ifa1-arbeitshilfe .std-before,
      .ifa1-arbeitshilfe select.std-before,
      .ifa1-arbeitshilfe .std-after,
      .ifa1-arbeitshilfe .steuerstd,
      .ifa1-arbeitshilfe select.std-after,
      .ifa1-arbeitshilfe select.steuerstd{
        width:46px !important;
        min-width:46px !important;
        max-width:46px !important;
      }

      .ifa1-arbeitshilfe .currency-symbol{
        left:5px !important;
        font-size:9.5px !important;
      }

      .ifa1-arbeitshilfe .currency-input{
        padding-left:16px !important;
      }

      /* Zusätzliche PDF-Optimierung: lange Textfelder vollständig anzeigen */
      .ifa1-arbeitshilfe textarea,
      .ifa1-arbeitshilfe textarea.auto-grow,
      .ifa1-arbeitshilfe .textarea-large,
      .ifa1-arbeitshilfe #summaryHgbText,
      .ifa1-arbeitshilfe #summaryStbText{
        display:block !important;
        height:auto !important;
        min-height:60px !important;
        max-height:none !important;
        overflow:visible !important;
        white-space:pre-wrap !important;
        resize:none !important;
      }

      .ifa1-arbeitshilfe #summaryHgbText,
      .ifa1-arbeitshilfe #summaryStbText{
        min-height:160px !important;
      }

      /* Mietfelder im Druck kompakt halten */
      .ifa1-arbeitshilfe .rent-grid{
        grid-template-columns:repeat(3,1fr) !important;
        gap:6px !important;
        margin-bottom:4px !important;
      }

      .ifa1-arbeitshilfe .rent-field{
        gap:3px !important;
      }

      .ifa1-arbeitshilfe .rent-field label{
        font-size:9px !important;
        line-height:1.1 !important;
      }

      .ifa1-arbeitshilfe .rent-field input{
        font-size:9px !important;
        padding:3px 4px !important;
        height:22px !important;
        min-height:22px !important;
      }

      /* Nur die fünf gewünschten Dokumentbereiche einmal drucken */
      .ifa1-arbeitshilfe .sheet.print-duplicate{
        display:none !important;
      }

      .ifa1-arbeitshilfe .sheet.print-keep{
        display:block !important;
      }

      /* Weniger harte Seitenumbrüche */
      .ifa1-arbeitshilfe .sheet{


      }

      .ifa1-arbeitshilfe .sheet.print-keep:not(:last-of-type){


      }

      .ifa1-arbeitshilfe .sheet-title{


      }

      .ifa1-arbeitshilfe .section{




      }

      .ifa1-arbeitshilfe .section h2{


      }

      .ifa1-arbeitshilfe table{


      }

      .ifa1-arbeitshilfe tr{


      }

      /* Kleine Hinweisboxen nicht getrennt vom Inhalt */
      .ifa1-arbeitshilfe .note,
      .ifa1-arbeitshilfe .warning,
      .ifa1-arbeitshilfe .card,
      .ifa1-arbeitshilfe .auto-hint,
      .ifa1-arbeitshilfe .red-warning{


      }

      /* Zusammengehörige kleine Blöcke möglichst nicht trennen */
      .ifa1-arbeitshilfe .note,
      .ifa1-arbeitshilfe .warning,
      .ifa1-arbeitshilfe .red-warning,
      .ifa1-arbeitshilfe .auto-hint,
      .ifa1-arbeitshilfe .card,
      .ifa1-arbeitshilfe .result-card,
      .ifa1-arbeitshilfe .steuer-result-row,
      .ifa1-arbeitshilfe .rent-grid{


      }

      /* Überschrift möglichst mit folgendem Inhalt zusammenhalten */
      .ifa1-arbeitshilfe .sheet-title,
      .ifa1-arbeitshilfe .section h2,
      .ifa1-arbeitshilfe th{


      }

      /* Kleine Tabellen zusammenhalten, große Tabellen dürfen umbrechen */
      .ifa1-arbeitshilfe table:not(:has(tr:nth-child(8))){


      }

      /* Kleine Abschnitte zusammenhalten, lange Checklisten dürfen umbrechen */
      .ifa1-arbeitshilfe .section:not(:has(table tr:nth-child(8))){


      }

      /* Bei langen Tabellen Zeilen möglichst nicht zerreißen */
      .ifa1-arbeitshilfe tr{


      }

      /* Lange Textfelder und Abschlussbereiche zusammenhalten, wenn möglich */
      .ifa1-arbeitshilfe #doku .section{


      }

      /* Falls Browser :has nicht unterstützt: diese Klassen bleiben weiterhin stabil */
      .ifa1-arbeitshilfe .hgb-legend-grid,
      .ifa1-arbeitshilfe .stb-legend-grid{


      }

      /* Projekt-Eingabe direkt unter der Kopfzeile beginnen */
      .ifa1-arbeitshilfe #projekt.print-keep{




      }

      /* Hinweise vor Projekt auf eigener Seite sauber beenden */
      .ifa1-arbeitshilfe #hinweise.print-keep{


      }

      /* Abschnittsgruppen im HGB-/Steuerbereich stärker zusammenhalten,
         sofern sie klein genug sind */
      .ifa1-arbeitshilfe #hgb .section,
      .ifa1-arbeitshilfe #steuer .section{


      }

      /* Sehr große Tabellenbereiche dürfen trotzdem umbrechen */
      .ifa1-arbeitshilfe #hgb .section:has(table tr:nth-child(10)),
      .ifa1-arbeitshilfe #steuer .section:has(table tr:nth-child(10)){


      }

      /* Tabellenzeilen und Überschrift/Folgetabelle nicht trennen */
      .ifa1-arbeitshilfe #hgb tr,
      .ifa1-arbeitshilfe #steuer tr,
      .ifa1-arbeitshilfe #doku tr{


      }

      .ifa1-arbeitshilfe #hgb .section h2,
      .ifa1-arbeitshilfe #steuer .section h2,
      .ifa1-arbeitshilfe #doku .section h2{


      }



      .ifa1-arbeitshilfe #steuer .note:first-of-type,
      .ifa1-arbeitshilfe #steuer .warning:first-of-type{




      }

      /* Erste Legende/Tabelle direkt mit Titel zusammenhalten */
      .ifa1-arbeitshilfe #steuer .section:first-of-type{




      }

      /* D-Abschnitt der HGB-Seite möglichst vollständig auf vorheriger Seite halten */
      .ifa1-arbeitshilfe #hgb .section:last-of-type{


      }

    }


    .ifa1-arbeitshilfe .topbar{
      background:#b8c9d8;
      min-height:104px;
      position:relative;
      box-sizing:border-box;
      padding:0;
      overflow:visible;
    }
    .ifa1-arbeitshilfe .topbar-logo{
      height:76px;
      width:auto;
      display:block;
      object-fit:contain;
      background:transparent !important;
      box-shadow:none !important;
      border:none !important;
      padding:0;
      margin:0;
      mix-blend-mode:normal;
      position:absolute;
      left:28px;
      top:14px;
    }
    .ifa1-arbeitshilfe .topbar-title-wrap{
      color:#003b70;
      line-height:1.2;
      display:block;
      position:absolute;
      left:244px;
      top:24px;
      margin:0;
      padding:0;
      width:auto;
      max-width:980px;
    }
    .ifa1-arbeitshilfe .topbar-title{
      font-size:27px;
      font-weight:700;
      margin:0 0 5px 0;
      letter-spacing:.1px;
    }
    .ifa1-arbeitshilfe .topbar-subtitle{
      font-size:11px;
      font-weight:500;
      margin:0;
      max-width:980px;
    }
    .ifa1-arbeitshilfe .topbar-version{
      font-size:12px;
      font-weight:700;
      margin-top:6px;
      color:#003b70;
      letter-spacing:.1px;
    }


    .ifa1-arbeitshilfe #hgbNutzungsZusammenhang,
    .ifa1-arbeitshilfe #stbNutzungsZusammenhang{
      min-height:60px !important;
      height:60px !important;
      font-size:13px;
      white-space:normal;
      /* Steuer-Start: Überschrift, Hinweis und Legende zusammenhalten */
      .ifa1-arbeitshilfe #steuer.print-keep{


      }

      .ifa1-arbeitshilfe #steuer .sheet-title{


      }

      .ifa1-arbeitshilfe #steuer > .content > .note:first-child{




      }

      .ifa1-arbeitshilfe #steuer > .content > .section:first-of-type{


      }

      /* Steuerdruck: A direkt zur Legende ziehen, B danach sauber auf eigener Seite */
      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(2){




        margin-top:6px !important;
      }

      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(2) table th,
      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(2) table td{
        padding:3px !important;
        font-size:9px !important;
        line-height:1.15 !important;
      }

      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(2) textarea{
        min-height:24px !important;
      }

      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(3){




      }

      /* Steuer Seite 9: Titel + Hinweis + Legende + A gemeinsam halten */
      .ifa1-arbeitshilfe #steuer .print-steuer-a{




        margin-top:4px !important;
      }

      .ifa1-arbeitshilfe #steuer .print-steuer-a h2{
        padding:5px 8px !important;
        font-size:10.5px !important;
      }

      .ifa1-arbeitshilfe #steuer .print-steuer-a table th,
      .ifa1-arbeitshilfe #steuer .print-steuer-a table td{
        padding:2px 3px !important;
        font-size:8.3px !important;
        line-height:1.08 !important;
      }

      .ifa1-arbeitshilfe #steuer .print-steuer-a textarea{
        min-height:20px !important;
        height:24px !important;
        font-size:8.3px !important;
        line-height:1.08 !important;
        padding:2px 3px !important;
      }

      .ifa1-arbeitshilfe #steuer .print-steuer-a select{
        height:20px !important;
        min-height:20px !important;
        font-size:8.3px !important;
        padding:1px 3px !important;
      }

      /* B soll erst danach beginnen und möglichst zusammen bleiben */
      .ifa1-arbeitshilfe #steuer .print-steuer-b{




      }

      /* Keine alte Regel darf A vorzeitig auf neue Seite drücken */
      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(2),
      .ifa1-arbeitshilfe #steuer > .content > .section:nth-of-type(3){


      }

    }





.ifa1-arbeitshilfe .std-before,
.ifa1-arbeitshilfe select.std-before{
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
}

.ifa1-arbeitshilfe .std-after,
.ifa1-arbeitshilfe .steuerstd,
.ifa1-arbeitshilfe select.std-after,
.ifa1-arbeitshilfe select.steuerstd{
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
}


.ifa1-arbeitshilfe .std-before,
.ifa1-arbeitshilfe .std-after,
.ifa1-arbeitshilfe .steuerstd{
  display:block;
  margin:0 auto !important;
}


/* Bezeichnung-Spalte breiter */
.ifa1-arbeitshilfe th:nth-child(4),
.ifa1-arbeitshilfe td:nth-child(4){
  width: 170px !important;
  min-width: 170px !important;
  white-space: nowrap !important;
}



/* HGB-Legende finale Spaltenbreiten ohne Zwischenluecke */
.ifa1-arbeitshilfe table.hgb-legend-final-widths{
  width:100% !important;
  table-layout:fixed !important;
  border-collapse:collapse !important;
}
.ifa1-arbeitshilfe table.hgb-legend-final-widths th:nth-child(1),
.ifa1-arbeitshilfe table.hgb-legend-final-widths td:nth-child(1){
  width:34px !important;
  max-width:34px !important;
}
.ifa1-arbeitshilfe table.hgb-legend-final-widths th:nth-child(2),
.ifa1-arbeitshilfe table.hgb-legend-final-widths td:nth-child(2){
  width:391px !important;
  max-width:391px !important;
}
.ifa1-arbeitshilfe table.hgb-legend-final-widths th:nth-child(3),
.ifa1-arbeitshilfe table.hgb-legend-final-widths td:nth-child(3){
  width:65px !important;
  max-width:65px !important;
}
.ifa1-arbeitshilfe table.hgb-legend-final-widths th:nth-child(4),
.ifa1-arbeitshilfe table.hgb-legend-final-widths td:nth-child(4){
  width:185px !important;
  max-width:185px !important;
  white-space:nowrap !important;
}
.ifa1-arbeitshilfe table.hgb-legend-final-widths th:nth-child(5),
.ifa1-arbeitshilfe table.hgb-legend-final-widths td:nth-child(5){
  width:auto !important;
  max-width:none !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
}


/* HGB-Legende: linke und rechte Tabelle ohne große Zwischenlücke */
.ifa1-arbeitshilfe .hgb-legend-grid{
  display:grid !important;
  grid-template-columns:444px 1fr !important; /* 34px Kürzel + 391px Kriterium */
  gap:6px !important;
  align-items:start;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:first-child table{
  width:444px !important;
  max-width:444px !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table{
  width:100% !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table col:nth-child(1){
  width:65px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table col:nth-child(2){
  width:185px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table col:nth-child(3){
  width:auto !important;
}

/* HGB-Legende: Standardtabelle optisch getrennt und kompakt halten */
.ifa1-arbeitshilfe .hgb-legend-grid{
  grid-template-columns:444px 300px !important;
  gap:70px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2){
  width:300px !important;
  max-width:300px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table{
  width:300px !important;
  max-width:300px !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table col:nth-child(1){
  width:56px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table col:nth-child(2){
  width:244px !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table th:first-child,
.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table td:first-child{
  width:56px !important;
  text-align:center !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table th:nth-child(2),
.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2) table td:nth-child(2){
  width:244px !important;
  white-space:nowrap !important;
}


/* Steuer-Legende: Tabellen zusammenruecken */
.ifa1-arbeitshilfe .stb-legend-grid{
  display:grid !important;
  grid-template-columns:444px 1fr !important;
  gap:6px !important;
  align-items:start;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table{
  width:444px !important;
  max-width:444px !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table{
  width:100% !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table col:nth-child(1){
  width:65px !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table col:nth-child(2){
  width:185px !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table col:nth-child(3){
  width:auto !important;
}


/* Steuer-Legende: Kürzel schmaler, Kriterium breiter */
.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table col:nth-child(1){
  width:34px !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table col:nth-child(2){
  width:auto !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table td:first-child,
.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table th:first-child{
  width:34px !important;
  max-width:34px !important;
  min-width:34px !important;
  text-align:center !important;
  padding-left:4px !important;
  padding-right:4px !important;
}

.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table td:nth-child(2),
.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table th:nth-child(2){
  width:auto !important;
}


/* Kürzel-Spalten minimal breiter */
.ifa1-arbeitshilfe .hgb-legend-final-widths th:nth-child(1),
.ifa1-arbeitshilfe .hgb-legend-final-widths td:nth-child(1),
.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table th:first-child,
.ifa1-arbeitshilfe .stb-legend-grid > div:first-child table td:first-child{
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
}


/* Kleine Trennung zwischen linker und rechter Legendentabelle */
.ifa1-arbeitshilfe .hgb-legend-grid{
  gap:10px !important;
}

/* HGB-Legende: Abstand zwischen Kriterien- und Stufentabelle erzwingen */
.ifa1-arbeitshilfe .hgb-legend-grid{
  grid-template-columns:444px 300px !important;
  column-gap:220px !important;
  justify-content:start !important;
}

.ifa1-arbeitshilfe .hgb-legend-grid > div:nth-child(2){
  grid-column:auto !important;
  justify-self:auto !important;
  margin-left:0 !important;
}

.ifa1-arbeitshilfe .stb-legend-grid{
  gap:10px !important;
}

/* HGB C.1.2: Jahr-Spalte schmaler, Begründung breiter */
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type{
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(1),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(1){
  width:185px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(2),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(2){
  width:86px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(2){
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:keep-all !important;
  hyphens:none !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(3),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(3){
  width:185px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(4),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(4){
  width:125px !important;
  min-width:125px !important;
  max-width:125px !important;
  white-space:normal !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(5),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(5){
  width:128px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(5){
  white-space:nowrap !important;
  overflow-wrap:normal !important;
  word-break:keep-all !important;
  hyphens:none !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(6),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(6){
  width:90px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(7),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(7){
  width:85px !important;
  text-align:center !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th:nth-child(8),
.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(8){
  width:290px !important;
  min-width:290px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(8){
  padding-right:14px !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(4) select{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type th{
  overflow-wrap:break-word !important;
  word-break:normal !important;
  hyphens:auto !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td select{
  max-width:100% !important;
}

.ifa1-arbeitshilfe #hgbSectionC1 > table:last-of-type td:nth-child(8) textarea{
  min-width:0 !important;
  width:calc(100% - 42px) !important;
  max-width:calc(100% - 42px) !important;
  margin:0 30px 0 12px !important;
  display:block !important;
}


/* Stufe-Zahlen zentrieren */
.ifa1-arbeitshilfe .hgb-legend-final-widths td:nth-child(3),
.ifa1-arbeitshilfe .hgb-legend-final-widths th:nth-child(3),
.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table td:first-child,
.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table th:first-child{
  text-align:center !important;
}


/* HGB Stufe mittig */
.ifa1-arbeitshilfe .hgb-legend-final-widths td:nth-child(3),
.ifa1-arbeitshilfe .hgb-legend-final-widths th:nth-child(3){
  text-align:center !important;
  vertical-align:middle !important;
}


/* Steuer-Legende Bezeichnung nicht fett */
.ifa1-arbeitshilfe .stb-legend-grid > div:nth-child(2) table td:nth-child(2){
  font-weight: normal !important;
}


/* Speicherfunktion */
.ifa1-arbeitshilfe .save-toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  position:absolute;
  right:28px;
  top:64px;
  z-index:50;
  margin:0;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}
.ifa1-arbeitshilfe .save-toolbar button,
.ifa1-arbeitshilfe .save-toolbar label{
  background:#0b4f79;
  color:#fff;
  border:none;
  border-radius:7px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
  display:inline-block;
}
.ifa1-arbeitshilfe .save-toolbar .save-status{
  color:#0b4f79;
  font-size:13px;
  margin-left:10px;
}
.ifa1-arbeitshilfe .save-toolbar input[type="file"]{display:none;}


.ifa1-arbeitshilfe .rent-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr));
  gap:14px;
  margin-bottom:6px;
}

.ifa1-arbeitshilfe .rent-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ifa1-arbeitshilfe .rent-field label{
  font-weight:600;
  color:#1f2f3d;
  font-size:13px;
}

.ifa1-arbeitshilfe .rent-field input{
  width:100%;
  box-sizing:border-box;
}


.ifa1-arbeitshilfe .steuer-result-row{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-top:12px;
}

.ifa1-arbeitshilfe .steuer-result-row .card{
  margin:0;
}


@media print{
  .ifa1-arbeitshilfe.is-vermietungsgenossenschaft #steuer,
  .ifa1-arbeitshilfe.is-vermietungsgenossenschaft #doku{
    display:none !important;
  }
}


.ifa1-arbeitshilfe #steuerlicherStatus{
  width:360px !important;
  max-width:100% !important;
}


.ifa1-arbeitshilfe .attachment-box{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px;
  background:#f9fbfc;
}

.ifa1-arbeitshilfe .attachment-upload-label{
  display:inline-block;
  background:#0b4f79;
  color:#fff;
  border:none;
  border-radius:7px;
  padding:8px 12px;
  font-size:13px;
  cursor:pointer;
  font-weight:700;
  margin:6px 0 10px;
}

.ifa1-arbeitshilfe #attachmentInput{
  display:none;
}

.ifa1-arbeitshilfe .attachment-list{
  margin:8px 0 12px;
  font-size:13px;
  color:#17384b;
}

.ifa1-arbeitshilfe .attachment-list ul{
  margin:6px 0 0 18px;
  padding:0;
}

.ifa1-arbeitshilfe .attachment-preview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin-top:10px;
}

.ifa1-arbeitshilfe .attachment-item{
  border:1px solid #cfd8df;
  border-radius:8px;
  background:white;
  padding:8px;


}

.ifa1-arbeitshilfe .attachment-item strong{
  display:block;
  font-size:12px;
  margin-bottom:6px;
  color:#0c405f;
  word-break:break-word;
}

.ifa1-arbeitshilfe .attachment-item img{
  max-width:100%;
  height:auto;
  display:block;
  border:1px solid #e1e7eb;
  border-radius:6px;
}

@media print{
  .ifa1-arbeitshilfe .attachment-upload-label,
  .ifa1-arbeitshilfe #attachmentInput,
  .ifa1-arbeitshilfe .attachment-note{
    display:none !important;
  }

  .ifa1-arbeitshilfe .attachment-box{
    border:0 !important;
    padding:0 !important;
    background:white !important;
    margin-top:8px !important;
  }

  .ifa1-arbeitshilfe .attachment-list{
    font-size:9.5px !important;


  }

  .ifa1-arbeitshilfe .attachment-preview{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .ifa1-arbeitshilfe .attachment-item{


    padding:5px !important;
  }

  .ifa1-arbeitshilfe .attachment-item strong{
    font-size:9px !important;
  }
}


.ifa1-arbeitshilfe .pdf-render-box{
  margin-top:8px;
}

.ifa1-arbeitshilfe .pdf-page-wrapper{
  margin:10px 0 16px;
  padding:8px;
  border:1px solid #d8e1e8;
  border-radius:8px;
  background:#fff;


}

.ifa1-arbeitshilfe .pdf-page-label{
  font-size:12px;
  font-weight:700;
  color:#0c405f;
  margin-bottom:6px;
}

.ifa1-arbeitshilfe .pdf-page-canvas{
  width:100%;
  height:auto;
  display:block;
  border:1px solid #e1e7eb;
  border-radius:4px;
  background:white;
}

@media print{
  .ifa1-arbeitshilfe .pdf-page-wrapper{


    margin:6px 0 10px !important;
    padding:4px !important;
    border:1px solid #cfd8df !important;
  }

  .ifa1-arbeitshilfe .pdf-page-label,
  .ifa1-arbeitshilfe .pdf-page-count{
    font-size:8.5px !important;
  }

  .ifa1-arbeitshilfe .pdf-page-canvas{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
  }

  .ifa1-arbeitshilfe .attachment-preview{
    display:block !important;
  }

  .ifa1-arbeitshilfe .attachment-item{
    margin-bottom:10px !important;
  }
}


/* PDF-Anhänge: im normalen HTML nicht öffnen, nur im Druck/PDF sichtbar */
.ifa1-arbeitshilfe .pdf-render-box,
.ifa1-arbeitshilfe .attachment-preview{
  display:none;
}

@media print{
  /* Standard-Dokument bleibt quer */
  @page{
    size:A4 landscape;
    margin:10mm;
  }

  /* Anhänge nach Möglichkeit im jeweiligen Originalformat drucken */
  @page pdfPortrait{
    size:A4 portrait;
    margin:10mm;
  }

  @page pdfLandscape{
    size:A4 landscape;
    margin:10mm;
  }

  .ifa1-arbeitshilfe .attachment-preview,
  .ifa1-arbeitshilfe .pdf-render-box{
    display:block !important;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper{
    display:block !important;






    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:white !important;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-portrait{
    page:pdfPortrait;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-landscape{
    page:pdfLandscape;
  }

  .ifa1-arbeitshilfe .pdf-page-label,
  .ifa1-arbeitshilfe .pdf-page-count{
    display:none !important;
  }

  .ifa1-arbeitshilfe .pdf-page-canvas{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    border:0 !important;
    border-radius:0 !important;
    background:white !important;
  }

  .ifa1-arbeitshilfe .attachment-item{
    border:0 !important;
    padding:0 !important;
    margin:0 !important;


  }

  .ifa1-arbeitshilfe .attachment-item > strong{
    display:none !important;
  }
}


@media print{
  /* PDF-Anhänge proportional einpassen, nicht verzerren */
  .ifa1-arbeitshilfe .pdf-page-wrapper{
    width:100% !important;
    min-height:180mm !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;






    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:white !important;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-portrait{
    page:pdfPortrait;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-landscape{
    page:pdfLandscape;
  }

  .ifa1-arbeitshilfe .pdf-page-canvas{
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:267mm !important;
    object-fit:contain !important;
    border:0 !important;
    border-radius:0 !important;
    background:white !important;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-landscape .pdf-page-canvas{
    max-height:180mm !important;
    max-width:267mm !important;
  }

  .ifa1-arbeitshilfe .pdf-page-wrapper.pdf-page-portrait .pdf-page-canvas{
    max-height:267mm !important;
    max-width:180mm !important;
  }
}


/* D-Abschnitt HGB: Antwortfelder genauso breit wie Steuer-Seite */
.ifa1-arbeitshilfe #hgbSectionD table{
  table-layout:fixed !important;
  width:100% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(1),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(1){
  width:28% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(2),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(2){
  width:37% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(3),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(3){
  width:35% !important;
}

.ifa1-arbeitshilfe #hgbSectionD td:nth-child(2) select,
.ifa1-arbeitshilfe #hgbSectionD select#hgbHerstellung,
.ifa1-arbeitshilfe #hgbSectionD select#hgbErweiterung,
.ifa1-arbeitshilfe #hgbSectionD select#hgbWesentlicheVerbesserung,
.ifa1-arbeitshilfe #hgbSectionD select#hgbEinordnung{
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}


/* D-Abschnitte HGB und Steuer: gleiche Spalten- und Antwortfeldbreiten */
.ifa1-arbeitshilfe #hgbSectionD table,
.ifa1-arbeitshilfe #stbSectionD table{
  table-layout:fixed !important;
  width:100% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(1),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(1),
.ifa1-arbeitshilfe #stbSectionD th:nth-child(1),
.ifa1-arbeitshilfe #stbSectionD td:nth-child(1){
  width:28% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(2),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(2),
.ifa1-arbeitshilfe #stbSectionD th:nth-child(2),
.ifa1-arbeitshilfe #stbSectionD td:nth-child(2){
  width:37% !important;
}

.ifa1-arbeitshilfe #hgbSectionD th:nth-child(3),
.ifa1-arbeitshilfe #hgbSectionD td:nth-child(3),
.ifa1-arbeitshilfe #stbSectionD th:nth-child(3),
.ifa1-arbeitshilfe #stbSectionD td:nth-child(3){
  width:35% !important;
}

.ifa1-arbeitshilfe #hgbSectionD td:nth-child(2) select,
.ifa1-arbeitshilfe #stbSectionD td:nth-child(2) select{
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
}


/* Seite 4: Zusammenfassung / Auswertung besser lesbar */
.ifa1-arbeitshilfe #doku .section:first-of-type table{
  table-layout:fixed !important;
  width:100% !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type th:nth-child(1),
.ifa1-arbeitshilfe #doku .section:first-of-type td:nth-child(1){
  width:18% !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type th:nth-child(2),
.ifa1-arbeitshilfe #doku .section:first-of-type td:nth-child(2){
  width:34% !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type th:nth-child(3),
.ifa1-arbeitshilfe #doku .section:first-of-type td:nth-child(3){
  width:48% !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type input{
  width:100% !important;
  max-width:none !important;
  min-width:100% !important;
  box-sizing:border-box !important;
}

.ifa1-arbeitshilfe #summaryHgbText,
.ifa1-arbeitshilfe #summaryStbText{
  min-height:230px !important;
  height:230px !important;
  overflow:visible !important;
  white-space:pre-wrap !important;
  resize:vertical !important;
}


/* Seite 4 kompakter ohne Bereich-Spalte */
.ifa1-arbeitshilfe #summaryHgbText,
.ifa1-arbeitshilfe #summaryStbText{
  min-height:220px !important;
  height:220px !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type table th:nth-child(1),
.ifa1-arbeitshilfe #doku .section:first-of-type table td:nth-child(1){
  width:35% !important;
}

.ifa1-arbeitshilfe #doku .section:first-of-type table th:nth-child(2),
.ifa1-arbeitshilfe #doku .section:first-of-type table td:nth-child(2){
  width:65% !important;
}


/* Seite 4: Zusammenfassung als kompakte Tabellen */
.ifa1-arbeitshilfe #doku .summary-table{
  table-layout:fixed !important;
  width:100% !important;
}

.ifa1-arbeitshilfe #doku .summary-area-title{
  background:#0f5580 !important;
  color:white !important;
  font-weight:bold !important;
  padding:9px 10px !important;
}

.ifa1-arbeitshilfe #doku .summary-detail-table table{
  width:100% !important;
  border-collapse:collapse !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe #doku .summary-detail-table th,
.ifa1-arbeitshilfe #doku .summary-detail-table td{
  border:1px solid var(--line) !important;
  padding:8px !important;
  vertical-align:top !important;
}

.ifa1-arbeitshilfe #doku .summary-detail-table th:nth-child(1),
.ifa1-arbeitshilfe #doku .summary-detail-table td:nth-child(1){
  width:32% !important;
}

.ifa1-arbeitshilfe #doku .summary-detail-table th:nth-child(2),
.ifa1-arbeitshilfe #doku .summary-detail-table td:nth-child(2){
  width:68% !important;
}

.ifa1-arbeitshilfe #doku .summary-detail-table th{
  background:#f5f8fa !important;
  color:#0c405f !important;
  font-weight:bold !important;
}

.ifa1-arbeitshilfe #doku .summary-result{
  font-weight:bold;
}


/* Seite 4: alte versteckte Zusammenfassungs-Textfelder auch im PDF-Druck ausblenden */
.ifa1-arbeitshilfe #summaryHgbText,
.ifa1-arbeitshilfe #summaryStbText{
  display:none !important;
}

@media print{
  .ifa1-arbeitshilfe #summaryHgbText,
  .ifa1-arbeitshilfe #summaryStbText{
    display:none !important;
  }
}


    .ifa1-arbeitshilfe .hint-graphics{
      display:grid;
      grid-template-columns:1fr;
      gap:18px;
      margin-top:18px;
    }
    .ifa1-arbeitshilfe .hint-graphic-card{
      border:1px solid var(--line);
      border-radius:12px;
      background:#f9fbfc;
      padding:12px;


    }
    .ifa1-arbeitshilfe .hint-graphic-card img{
      display:block;
      width:100%;
      height:auto;
      border-radius:8px;
      border:1px solid #d8e1e8;
      background:white;
    }
    @media print{
      .ifa1-arbeitshilfe .hint-graphics{
        gap:8px !important;
        margin-top:8px !important;
      }
      .ifa1-arbeitshilfe .hint-graphic-card{
        padding:5px !important;
        border:1px solid #cfd8df !important;
      }
    }


    .ifa1-arbeitshilfe .hint-graphic-card:first-child{
      position:relative;
    }
    .ifa1-arbeitshilfe .graphic-letter{
      position:absolute;
      width:38px;
      height:38px;
      border-radius:50%;
      background:#0b4f79;
      color:white;
      display:flex;
      align-items:center;
      justify-content:center;
      font-weight:700;
      font-size:24px;
      line-height:1;
      z-index:2;
      box-shadow:0 1px 3px rgba(0,0,0,.18);
    }
    .ifa1-arbeitshilfe .graphic-letter-a{left:48px;top:346px;}
    .ifa1-arbeitshilfe .graphic-letter-b{left:370px;top:346px;}
    .ifa1-arbeitshilfe .graphic-letter-c{left:812px;top:346px;}
    @media print{
      .ifa1-arbeitshilfe .graphic-letter{
        width:26px !important;
        height:26px !important;
        font-size:17px !important;
      }
    }



/* HGB-Legende gezielt breiter: linke Kriterien-Tabelle einzeilig halten */
.ifa1-arbeitshilfe #hgb .hgb-legend-grid{
  grid-template-columns:690px 300px !important;
  column-gap:40px !important;
  gap:40px !important;
  justify-content:start !important;
}

.ifa1-arbeitshilfe #hgb .hgb-legend-grid > div:first-child,
.ifa1-arbeitshilfe #hgb .hgb-legend-grid > div:first-child table,
.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths{
  width:690px !important;
  max-width:690px !important;
  table-layout:fixed !important;
}

.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths col:nth-child(1),
.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths th:nth-child(1),
.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths td:nth-child(1){
  width:52px !important;
  min-width:52px !important;
  max-width:52px !important;
}

.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths col:nth-child(2),
.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths th:nth-child(2),
.ifa1-arbeitshilfe #hgb table.hgb-legend-final-widths td:nth-child(2){
  width:638px !important;
  min-width:638px !important;
  max-width:638px !important;
  white-space:nowrap !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}



/* DOMUS Copyright-Fusszeile (Bildschirm und PDF-Druck) */
.ifa1-arbeitshilfe .domus-copyright-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:99999;
  text-align:center;
  font-size:11px;
  line-height:1.25;
  color:#667681;
  background:rgba(238,243,246,.96);
  border-top:1px solid #cfd8df;
  padding:6px 12px;
  pointer-events:none;
}

.ifa1-arbeitshilfe{
  padding-bottom:34px;
}

@media print{
  @page{
    size:A4 landscape;
    margin:10mm 10mm 14mm 10mm;
  }

  @page pdfPortrait{
    size:A4 portrait;
    margin:10mm 10mm 14mm 10mm;
  }

  @page pdfLandscape{
    size:A4 landscape;
    margin:10mm 10mm 14mm 10mm;
  }

  .ifa1-arbeitshilfe{
    padding-bottom:0 !important;
  }

  .ifa1-arbeitshilfe .domus-copyright-footer{
    position:fixed !important;
    left:10mm !important;
    right:10mm !important;
    bottom:3mm !important;
    z-index:99999 !important;
    font-size:8px !important;
    line-height:1.15 !important;
    color:#666 !important;
    background:transparent !important;
    border-top:0 !important;
    padding:0 !important;
    text-align:center !important;
    display:block !important;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
}


/* Version 2.4.4: Vollständige Feldinhalte als umbrechbaren Drucktext ausgeben.
   Native Formularfelder können trotz height:auto beim Druck Text abschneiden. */
.ifa1-arbeitshilfe .print-field-value { display:none; }
@media print {
  .ifa1-arbeitshilfe #hinweise,
  .ifa1-arbeitshilfe #hinweise.print-keep { display:none !important; }
  .ifa1-arbeitshilfe .sheet textarea.print-original,
  .ifa1-arbeitshilfe .sheet input.print-original,
  .ifa1-arbeitshilfe .sheet select.print-original,
  .ifa1-arbeitshilfe #summaryHgbText,
  .ifa1-arbeitshilfe #summaryStbText { display:none !important; }
  .ifa1-arbeitshilfe .sheet .print-field-value {
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    height:auto !important;
    min-height:22px !important;
    max-height:none !important;
    padding:4px !important;
    border:1px solid #b8c3cc;
    border-radius:3px;
    color:#000 !important;
    background:#fff !important;
    font:inherit !important;
    line-height:1.3 !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    overflow:visible !important;

  }
  .ifa1-arbeitshilfe .sheet .print-field-multiline { min-height:60px !important; }
  .ifa1-arbeitshilfe .sheet :is(td, tr, .section, .content, div):has(.print-field-value) {
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;


  }
}


/* V2.4.4: einheitliche, auf Tabellenbreite skalierte Spalten. */
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.measures-table {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.measures-table :is(th, td) {
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  padding:4px !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.measures-table th {
  overflow-wrap:normal !important;
  hyphens:none !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.measures-table :is(select, textarea) {
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.decision-table {
  table-layout:fixed !important;
  width:100% !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.decision-table :is(th,td):nth-child(1) {
  width:36.222222% !important; min-width:0 !important; max-width:none !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.decision-table :is(th,td):nth-child(2) {
  width:18.5% !important; min-width:0 !important; max-width:none !important;
}
.ifa1-arbeitshilfe :is(#hgb, #steuer) table.decision-table :is(th,td):nth-child(3) {
  width:45.277778% !important; min-width:0 !important; max-width:none !important;
}
.ifa1-arbeitshilfe .answer-selection-text {
  margin-top:6px;
  font-size:inherit;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
.ifa1-arbeitshilfe .answer-selection-text:empty { display:none; }
@media print {
  /* Nur die Reiter beginnen zwingend auf einer neuen Seite.
     Der Projekt-Reiter folgt auf derselben Seite auf die Kopfzeile. */
  .ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku),.ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku) * {
    page-break-before:auto !important;
    break-before:auto !important;
    page-break-after:auto !important;
    break-after:auto !important;
    page-break-inside:auto !important;
    break-inside:auto !important;
  }
  .ifa1-arbeitshilfe :is(#hgb,#steuer,#doku).print-keep {
    page-break-before:always !important;
    break-before:page !important;
  }
  .ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku) tr {
    page-break-inside:avoid !important;
    break-inside:avoid-page !important;
  }
  .ifa1-arbeitshilfe .answer-selection-text { display:none !important; }
  .ifa1-arbeitshilfe .topbar {
    page-break-inside:avoid !important;
    break-inside:avoid-page !important;
    page-break-after:avoid !important;
    break-after:avoid-page !important;
  }
  .ifa1-arbeitshilfe :is(#hgb,#steuer) table.measures-table { font-size:9.5px !important; }
}


/* V_2.4.4: schmale Stammdatenbezeichnungen und vollständige Feldbreiten. */
.ifa1-arbeitshilfe #projekt table.project-master-data {
  --project-label-width:170px;
  width:100% !important;
  table-layout:fixed !important;
}
.ifa1-arbeitshilfe #projekt .project-label-col { width:var(--project-label-width) !important; }
.ifa1-arbeitshilfe #projekt .project-input-col { width:calc(65% - var(--project-label-width)) !important; }
.ifa1-arbeitshilfe #projekt table.project-master-data :is(th,td) {
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  box-sizing:border-box !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}
.ifa1-arbeitshilfe #projekt table.project-master-data :is(input,textarea,select) {
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
.ifa1-arbeitshilfe .project-responsibility-note {
  margin:18px 0 8px;
  padding:12px 14px;
  border:1px solid #c8d5df;
  border-left:4px solid #7995ab;
  border-radius:6px;
  background:#f0f4f7;
  color:#354959;
  font-size:12px;
  line-height:1.45;
}
@media print {
  .ifa1-arbeitshilfe #projekt table.project-master-data { --project-label-width:150px; }
  /* Überschrift + mindestens zwei Textzeilen bzw. zwei Datenzeilen. */
  .ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku) .print-lead-chain {
    break-after:avoid-page !important;
    page-break-after:avoid !important;
  }
  .ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku) .print-lead-next {
    break-before:avoid-page !important;
    page-break-before:avoid !important;
  }
  .ifa1-arbeitshilfe :is(#projekt,#hgb,#steuer,#doku) :is(p,.note,.warning,.project-responsibility-note,.print-field-value) {
    orphans:3 !important;
    widows:3 !important;
  }
  .ifa1-arbeitshilfe .project-responsibility-note { font-size:9.5px !important; }
}


/* V_2.4.4: drei Übersichten untereinander, Bildbreite zweimal um jeweils 25 % vergrößert. */
.ifa1-arbeitshilfe #hinweise .hint-graphics-three {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:18px;
  align-items:start;
}
.ifa1-arbeitshilfe #hinweise .hint-graphics-three > .hint-graphic-card {
  grid-column:1;
  width:calc(78.125% - 28.6875px);
  min-width:0;
  max-width:none;
  box-sizing:border-box;
  background:white;
}
.ifa1-arbeitshilfe #hinweise .hint-graphics-three > .hint-graphic-card:nth-child(3) {
  grid-column:1;
}
.ifa1-arbeitshilfe #hinweise .hint-graphics-three img {
  width:100%;
  height:auto;
  max-width:100%;
  box-sizing:border-box;
  background:white;
}

