/* Fahrsteuer Honrorarrechner – unified typography + premium layout */
.fs-hr-wrap, .fs-hr-wrap *{ font-family: inherit !important; }

/* Make ALL text same size */
.fs-hr-card{ font-size:14px; }
.fs-hr-wrap *{ font-size: inherit !important; }

:root{
  --fs-accent:#0166B1;
  --fs-field:#F6F6F6;
  --fs-text:#000;
  --fs-outline:#B1DEF2;
}

.fs-hr-wrap{ display:flex; justify-content:center; margin:18px 0; color:var(--fs-text); }

.fs-hr-card{
  width:min(640px, 100%);
  background: linear-gradient(180deg, #0166b1 0%, #031E49 35%, #FFFFFF00 100%);
  border-radius:18px;
  color:var(--fs-text);
  /* original */ border:1px solid rgba(0,0,0,0.06);
  box-shadow:0 14px 38px rgba(0,0,0,0.07);
  padding:14px 14px 16px;
}


/* Top info bar (non-editable) */
.fs-hr-infobar{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:6px 2px 16px;
}
.fs-hr-infoitem{
  background:#F6F6F6;
  padding:12px 14px;
}
.fs-hr-infohead{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  min-width:0;
}
.fs-hr-infotitle{
  font-weight:700;
  color:#031E49;
  white-space:normal;
}
.fs-hr-infovalue{
  font-weight:400;
  color:#272727;
  line-height:1.35;
  text-align:left;
}
.fs-hr-infounit{
  font-weight:400;
  color:rgba(0,0,0,0.55);
  white-space:nowrap;
}
@media (max-width:740px){
  .fs-hr-infobar{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:6px 2px 16px;
}
  .fs-hr-infovalue{
  font-weight:400;
  color:rgba(0,0,0,0.72);
  line-height:1.35;
  text-align:left;
}
  .fs-hr-infotitle{
  font-weight:700;
  color:rgba(0,0,0,0.78);
  white-space:normal;
}
  .fs-hr-infounit{ white-space:normal; }
}
.fs-hr-block{ margin:14px 0; }

.fs-hr-label{
  font-weight:700;
  letter-spacing:0.2px;
  padding:6px 10px;
  background:rgba(1,102,177,0.08);
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid rgba(1,102,177,0.14);
  border-radius:10px;
  margin-left:2px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(0,0,0,0.78);
}




.fs-hr-label--split{
  justify-content: space-between;
  width: 100%;
}
.fs-hr-unit{
  font-weight:600;
  opacity:0.75;
}
.fs-hr-hidden{ display:none !important; }
.fs-hr-row--sub{
  margin-top:8px;
  padding-top:0;
}
.fs-hr-select { cursor: pointer;
  width:100%;
}

.fs-hr-row{
  margin-top:10px;
  display:flex;
  gap:12px;
  align-items:center;
  background: transparent;
  padding:12px;
  border-radius:16px;
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid rgba(0,0,0,0.05);
}

.fs-hr-row--withunit{
  justify-content: space-between;
}
.fs-hr-row--withunit .fs-hr-select { cursor: pointer;
  flex: 1 1 auto;
}
.fs-hr-unit-inline{
  flex: 0 0 auto;
  font-weight: 600;
  color: rgba(0,0,0,0.75);
  white-space: nowrap;
  padding-left: 6px;
}
.fs-hr-input{
  flex:1 1 auto;
  outline:none;
  background:#ffffff;
  border-radius:14px;
  padding:14px 14px;
  color:#000000;
  font-weight:300;
  border: 1px solid #0166b1;
}
.fs-hr-input::placeholder{
  color:#666666;
}
.fs-hr-input::placeholder{
  color:#666666;
}
.fs-hr-input::placeholder{
  color:#666666;
}
.fs-hr-info-left{
  flex:1 1 auto;
  background:var(--fs-field);
  border-radius:14px;
  padding:14px 14px;
  color:rgba(0,0,0,0.58);
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid rgba(0,0,0,0.10);
}

/* Same size for price areas too */
.fs-hr-price{
  flex:0 0 auto;
  min-width:170px;
  text-align:right;
  font-weight: 400;
  color:rgba(0,0,0,0.72);
}
.fs-hr-textbox{
  width:100%;
  background:var(--fs-field);
  border-radius:16px;
  padding:16px 16px;
  font-weight:400;
  color:rgba(0,0,0,0.58);
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid rgba(0,0,0,0.05);
}
.fs-hr-footer{ margin-top:18px; padding:6px 2px 0; }
.fs-hr-footer-caption{ font-weight:700; margin:0 0 10px 2px; color:rgba(0,0,0,0.72); }
.fs-hr-total{
  background: linear-gradient(90deg, #0166B1 0%, #031E49 100%);
  border-radius:16px;
  padding:18px 20px;
  font-weight:700;
  color:#ffffff;
  text-align:right;
  box-shadow:none;
}
.fs-hr-note{
  margin-top:12px;
  line-height:1.55;
  color:rgba(0,0,0,0.72);
  background:rgba(1,102,177,0.05);
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid rgba(1,102,177,0.12);
  padding:12px 14px;
  border-radius:14px;
}
@media (max-width:520px){
  .fs-hr-row{ flex-direction:column; align-items:stretch; }
  .fs-hr-price{ min-width:unset; }
}

/* spacing for icon-first labels */
.fs-hr-label{gap:10px;}

/* Info texts thin */
.fs-hr-infovalue,
.fs-hr-infounit{
  font-weight:300;
}


/* Fade animation for prices */
.fs-fade-in{
  opacity:1;
  transition:opacity .25s ease;
}
.fs-fade-out{
  opacity:0;
  transition:opacity .15s ease;
}


/* Dashed divider under Buchführung – Preis pro Monat (netto) */
.fs-hr-footer-caption{
  position:relative;
  padding-bottom:10px;
  margin-bottom:12px;
}


/* Mobile polish */
@media (max-width: 520px){
  .fs-hr-card{
    padding:12px 12px 14px;
    border-radius:16px;
  }

  .fs-hr-infoitem{
    padding:12px 12px;
    border-radius:14px;
  }

  .fs-hr-infohead{
    gap:10px;
  }

  
  .fs-hr-label{
    padding:8px 10px;
    border-radius:12px;
  }

  .fs-hr-row{
    padding:12px;
    border-radius:16px;
    gap:10px;
  }

  /* Input + price: stack for clarity */
  .fs-hr-row{
    flex-direction:column;
    align-items:stretch;
  }
  .fs-hr-input{
    width:100%;
  }
  .fs-hr-price{
    width:100%;
    text-align:right;
    padding-top:2px;
  }

  .fs-hr-footer-caption{
    padding-bottom:10px;
    margin-bottom:12px;
  }

  .fs-hr-total{
    padding:16px 16px;
    border-radius:16px;
  }

  /* Tooltips: full width within viewport */
    }

/* Right align footer caption */
.fs-hr-footer-caption{
  text-align:right;
}

/* Show divider only after input */
.fs-hr-wrap.fs-has-value .fs-hr-footer-caption::after{ opacity:1; }

/* Helper text under input */
.fs-hr-helper{
  margin-top:8px;
  padding-left:4px;
  color:rgba(0,0,0,0.45);
  font-weight:300;
  font-size:12px;
  line-height:1.2;
}
.fs-hr-wrap.fs-has-value .fs-hr-helper{ display:none; }

/* Subtle focus highlight for total bar */
.fs-hr-wrap.fs-focus .fs-hr-total{
  box-shadow:0 10px 24px rgba(0,0,0,0.10);
}

/* Mobile: make total a bit more thumb-friendly */
@media (max-width: 520px){
  .fs-hr-total{ padding:18px 18px; }
  .fs-hr-helper{ font-size:12px; }
  .fs-hr-footer{ margin-top:18px; }
}

/* Remove any remaining visual box behind Umsatz input */
.fs-hr-row{
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid #0166b1; /* updated */
  /* original */ border: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* Final style for 'Bitte eingeben' label */
.fs-hr-label,
.fs-hr-input-label{
  background:#0166B1;
  color:#ffffff;
  padding:6px 10px;
  border-radius:8px;
  font-weight:400;
  border: 1px solid #0166b1; /* updated */
  /* original */ border:none;
}

/* Final box border color */
.fs-hr-card{
  border: 1px solid #0166b1; /* updated */
  /* original */ border:1px solid #f6f6f6;
}


/* Input suffix (EUR) */
.fs-hr-inputwrap{
  position:relative;
  width:100%;
}
.fs-hr-suffix{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  color:rgba(0,0,0,0.55);
  font-weight:400;
  font-size:13px;
  pointer-events:none;
}
.fs-hr-input{
  padding-right:56px;
}

input::placeholder {
  color: #666666;
}

.fs-hr-input:focus{
  border-color:#0166b1;
}

select { cursor: pointer;
  border: 1px solid #cccccc !important;
}

select:focus {
  border: 1px solid #cccccc !important;
  outline: none;
}

input[type="text"] {
  border: 1px solid #0166b1 !important;
}

input[type="text"]:focus {
  border: 1px solid #0166b1 !important;
  outline: none;
}

/* Dropdown placeholder (UX) */
select:invalid {
  color: #999999;
}
select:valid {
  color: #333333;
}

/* Fade-in for price */
[data-field="out_total"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-field="out_total"].visible {
  opacity: 1;
}


/* Fade-in for calculated price */
.fs-hr-total {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fs-has-value .fs-hr-total {
  opacity: 1;
}


select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}


.result-box {
    background: #1769aa;
    color: #fff;
    border-radius: 16px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.result-label {
    font-size: 16px;
}

.result-price {
    font-size: 18px;
}


/* Make Buchführung selector look like the other info boxes */
.fs-hr-infoitem--editable{ margin:14px 0; }
.fs-hr-infoitem--editable .fs-hr-infohead{ margin-bottom:10px; }
.fs-hr-infoitem--editable .fs-hr-infovalue--form{ text-align:left; }
.fs-hr-infoitem--editable .fs-hr-row{
  margin-top:0;
  padding:0;
  border:none;
  background:transparent;
}
.fs-hr-infoitem--editable .fs-hr-row--sub{ margin-top:10px; }


/* Custom dropdown styling */
.fh-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2301661b' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.fh-select:focus {
    outline: none;
    border-color: #1769aa;
    box-shadow: 0 0 0 2px rgba(23,105,170,0.1);
}

.fh-box { margin-bottom: 16px; }


.fh-box-content {
    display: block;
}

.fh-select {
    width: 100%;
    margin-right: 0;
}


/* Force full width select like other boxes */
.fh-box-content {
    display: block !important;
}

.fh-select {
    width: 100% !important;
    margin: 0 !important;
}


/* Result bar: label left, price right */
.fs-hr-total.fs-hr-total--wide{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.fs-hr-total .result-label{
  font-weight:600;
}
.fs-hr-total .result-price{
  font-weight:700;
  white-space:nowrap;
}


/* Dropdown arrow icon */
.fs-hr-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2301661b' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.fs-hr-select:focus {
    outline: none;
    border-color: #1769aa;
}

/* Animated dropdown arrow (rotates on open/focus) */
.fs-hr-select-wrap{
  position: relative;
  display: block;
}

/* When the native select is focused (user clicked / opened), rotate the arrow */
.fs-hr-select-wrap:focus-within::after{
  transform: translateY(-50%) rotate(180deg);
}

/* Ensure native select doesn't show a second arrow background */
.fs-hr-select{
  background-image: none !important;
  padding-right: 40px; /* space for arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}


/* --- Whitespace / spacing normalization --- */

/* Buchführung box should match the info boxes */
.fh-box{
  background: var(--fs-field);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 6px 2px 16px; /* same rhythm as info bar */
}

.fh-box-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom: 6px;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
}

.fh-box-content{
  display:block !important;
}

.fh-select{
  width:100% !important;
}

/* Reduce extra space above result bar */
.fs-hr-footer{
  margin-top: 10px !important;
  padding: 0 !important;
}

/* We don't show the caption above the blue result bar */
.fs-hr-footer-caption{
  display:none !important;
  margin:0 !important;
}


/* --- FINAL spacing fix: all boxes identical --- */

/* Container controls spacing */
.fs-hr-infobar{
  display:flex;
  flex-direction:column;
  gap:10px; /* single source of truth */
  margin:6px 2px 16px;
}

/* Remove individual margins from ALL boxes */
.fh-box,
.fs-hr-infoitem{
  margin:0 !important;
}

/* Ensure identical padding */
.fh-box,
.fs-hr-infoitem{
  padding:12px 14px !important;
  border-radius:14px;
}


/* --- Animated border for Umsatz input ("Bitte Umsatz eingeben...") --- */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap{
  position: relative;
  border-radius: 40px;
  padding: 1px; /* border width */
  background: #02010100; /* transparent base */
  overflow: hidden;
}

/* rotating gradient border */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::before{
  content:"";
  position:absolute;
  inset:-200%;
  background: conic-gradient(from 0deg, rgba(1,102,177,0.15), #0166B1, rgba(1,102,177,0.15), #0166B1, rgba(1,102,177,0.15));
  animation: fs-hr-border-rotate 4s linear infinite;
}

/* inner surface */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::after{
  content:"";
  position:absolute;
  inset: 1px;
  background: #ffffff;
  border-radius: 39px;
  z-index: 1;
}

/* input sits above inner surface */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-input{
  position: relative;
  z-index: 2;
  width: 100%;
  border: none !important;
  border-radius: 39px;
  background: transparent;
  padding: 12px 16px;
  outline: none;
}

/* optional: stronger glow on focus */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap:focus-within::before{
  filter: drop-shadow(0 0 10px rgba(1,102,177,0.35));
}

@keyframes fs-hr-border-rotate{
  to { transform: rotate(360deg); }
}

/* Match dropdown height with Umsatz input */
.fs-hr-select{
  height: 44px;
  border-radius: 40px !important;
  padding: 12px 16px;
}


.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::before,
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::after{
  display:none !important;
}

.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-input{
  background: transparent;
  padding: 12px 16px;
  height: 44px;
}

/* --- FULL WIDTH dropdown fix --- */
.fs-hr-select-wrap{
  width: 100% !important;
}

.fh-box-content{
  width: 100%;
}

.fs-hr-select{
  width: 100% !important;
  display: block;
}

/* --- Fix dropdown text vertical alignment --- */
.fs-hr-select{
  height: 44px;
  line-height: 44px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
}

/* Fix arrow color to #0166b1 */
.fs-hr-select-wrap::after{
  background-image: url("data:image/svg+xml;utf8,<svg fill='%230166b1' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
}


/* --- Animated border (white box) for Umsatz input --- */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap{
  position: relative;
  border-radius: 40px;
  padding: 1px; /* border width 1px */
  background: #02010100; /* transparent base */
  overflow: hidden;
}

/* rotating border */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::before{
  content:"";
  position:absolute;
  inset:-200%;
  background: conic-gradient(from 0deg, rgba(1,102,177,0.15), #0166b1, rgba(1,102,177,0.15), #0166b1);
  animation: fs-hr-border-rotate 4s linear infinite;
}

/* inner white surface */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::after{
  content:"";
  position:absolute;
  inset: 1px;
  background: #ffffff;
  border-radius: 39px;
  z-index: 1;
}

/* input */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-input{
  position: relative;
  z-index: 2;
  width: 100%;
  border: none !important;
  border-radius: 39px;
  background: transparent;
  padding: 12px 16px;
  height: 44px;
  outline: none;
}

@keyframes fs-hr-border-rotate{
  to { transform: rotate(360deg); }
}


/* --- FORCE Animated border for Umsatz input (final override) --- */
.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap{
  position: relative !important;
  border-radius: 40px !important;
  padding: 1px !important;            /* border width 1 */
  background: #02010100 !important;   /* transparent base border color */
  overflow: hidden !important;
  border: none !important;            /* remove any solid borders */
  box-shadow: none !important;
}

.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::before{
  content:"" !important;
  position:absolute !important;
  inset:-200% !important;
  background: conic-gradient(from 0deg,
    rgba(1,102,177,0.10),
    #0166b1,
    rgba(1,102,177,0.10),
    #0166b1,
    rgba(1,102,177,0.10)
  ) !important;
  animation: fs-hr-border-rotate 4s linear infinite !important;
  display:block !important;
}

.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-inputwrap::after{
  content:"" !important;
  position:absolute !important;
  inset: 1px !important;
  background: #ffffff !important;     /* white box background */
  border-radius: 39px !important;
  z-index: 1 !important;
  display:block !important;
}

.fs-hr-row[data-extra="umsatz_custom"] .fs-hr-input{
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  height: 44px !important;
  border: none !important;
  border-radius: 39px !important;
  background: transparent !important;
  padding: 0 16px !important;
  outline: none !important;
  line-height: 44px !important;
}

/* keep the same rotate keyframes name */
@keyframes fs-hr-border-rotate{
  to { transform: rotate(360deg); }
}


/* --- Mobile no-zoom fix (iOS Safari): keep inputs/selects at >=16px --- */
.fs-hr-input,
.fs-hr-select{
  font-size: 16px !important;
}

/* Keep placeholder consistent */
.fs-hr-input::placeholder{
  font-size: 16px !important;
}


/* --- Typography system (consistent sizes + hierarchy) --- */
.fs-hr-wrap{
  font-size: 16px; /* base for everything */
  line-height: 1.35;
}

/* Default text */
.fs-hr-wrap, .fs-hr-wrap *{
  font-size: inherit;
}

/* Headings / labels */
.fs-hr-infotitle,
.fh-box-title,
.fs-hr-footer-caption{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}

/* Secondary text */
.fs-hr-infovalue{
  font-size: 14px;
  line-height: 1.35;
}

/* Inputs / selects (keep >=16px to avoid iOS zoom) */
.fs-hr-input,
.fs-hr-select{
  font-size: 16px !important;
  line-height: 44px; /* matches control height */
}

/* Placeholder */
.fs-hr-input::placeholder{
  font-size: 16px !important;
}

/* Result bar */
.fs-hr-total .result-label{
  font-size: 16px;
  font-weight: 600;
}
.fs-hr-total .result-price{
  font-size: 18px;
  font-weight: 800;
}


/* --- Result stroke (white outline) --- */
.fs-hr-total .result-price{
  
   /* non-standard fallback */
   /* fallback for browsers without stroke */
}




.fs-hr-total .result-price::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}


/* --- Extend blue result box downward --- */
.fs-hr-total{
  padding: 22px 20px 30px !important; /* more space at bottom */
}


/* --- Subtle gradient for result box --- */
.fs-hr-total{
  background: #031E49;
}


/* --- Premium polish pass --- */

/* Give cards a bit more depth (subtle) */
.fs-hr-infoitem,
.fh-box{
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Slightly stronger separation on hover (desktop) */
@media (hover:hover){
  .fs-hr-infoitem:hover,
  .fh-box:hover{
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  }
  .fs-hr-select:hover{
    border-color:#0166b1;
  }
}

/* Result bar: add a soft shadow for punch */
.fs-hr-total{
  box-shadow: 0 10px 22px rgba(1,102,177,0.22);
}

/* Tiny typography refinement */
.fs-hr-infotitle,
.fh-box-title{
  letter-spacing: 0.2px;
}

/* Make the underline feel intentional */
.fs-hr-total .result-price::after{
  height: 2px;
  opacity: 0.95;
}


/* --- Result empty state (no more blank white area) --- */
.fs-no-price .fs-hr-total{
  opacity: 0.95;
}

.fs-no-price .fs-hr-total .result-price{
  font-weight: 700;
  opacity: 0.9;
  text-decoration: none;
}

.fs-no-price .fs-hr-total .result-price::after{
  opacity: 0.6;
}


/* --- Prevent layout shift in result bar (mobile) --- */
.fs-hr-total{
  min-height: 92px;            /* keeps height stable between empty & value */
}

.fs-hr-total .result-label{
  flex: 1 1 auto;
  min-width: 0;                /* allow ellipsis */
  white-space: nowrap;         /* stop line-wrap causing jump */
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-hr-total .result-price{
  flex: 0 0 auto;
  min-width: 11ch;             /* reserve space so text changes don't move layout */
  text-align: right;
  white-space: nowrap;
}

/* On very small screens, allow label to wrap but keep stable height */
@media (max-width: 380px){
  .fs-hr-total{
    min-height: 104px;
  }
  .fs-hr-total .result-label{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* --- Perfect underline: matches text width exactly --- */
.fs-hr-total .result-price{
  display: inline;
  position: relative;
}

.fs-hr-total .result-price::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  pointer-events: none;
}


/* --- Animated underline (draw effect) --- */
.fs-hr-total .result-price::after{
  transform: scaleX(0);
  transform-origin: left;
  animation: fs-line-draw 0.6s ease forwards;
}

@keyframes fs-line-draw{
  to{
    transform: scaleX(1);
  }
}




.fs-hr-total .result-price::after{
  content: "";
  position: absolute;
  left: 5%;
  bottom: -3px;
  height: 2px;
  width: 90%; /* slightly shorter than text */
  background: #ffffff;
  border-radius: 2px;
  transform-origin: left;
  animation: fs-line-draw 0.6s ease forwards;
}


/* --- Final underline: exactly text width --- */
.fs-hr-total .result-price{
  display: inline-block !important;
  width: fit-content !important;
  white-space: nowrap !important;
  min-width: unset !important;
  position: relative;
}

.fs-hr-total .result-price::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%; /* exact match to text */
  background: #ffffff;
  border-radius: 2px;
  transform-origin: left;
  animation: fs-line-draw 0.6s ease forwards;
}


/* --- Center result content in blue box --- */
.fs-hr-total{
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.fs-hr-total .result-label,
.fs-hr-total .result-price{
  text-align: center;
}

.fs-hr-total .result-price{
  margin-top: 6px;
}


/* --- Uniform spacing + height across boxes --- */
.fs-hr-infobar{
  gap: 12px !important;      /* single source of truth for vertical spacing */
}

.fh-box,
.fs-hr-infoitem{
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  min-height: 92px;          /* matches the two-line boxes so all are equal height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Buchführung dropdown: keep control height consistent inside same min-height box */
.fh-box-title{
  margin-bottom: 10px !important;
}

.fs-hr-select{
  height: 44px;
}


/* --- Unified Typography: everything 16px --- */
.fs-hr-wrap,
.fs-hr-wrap *{
  font-size: 16px !important;
}

/* ensure consistency inside result box as well */
.fs-hr-footer,
.fs-hr-footer *{
  font-size: 16px !important;
}


/* --- Dropdown icon: white plus on blue circle --- */
.fs-hr-select-wrap{ position: relative; width:100% !important; }

.fs-hr-select-wrap::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:32px;                 /* icon size 16 + padding 8/8 */
  height:32px;
  transform:translateY(-50%);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='16' fill='%230166b1'/><path d='M16 8v16M8 16h16' stroke='%23ffffff' stroke-width='3' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;
  background-position:center;
  background-size:32px 32px;
  border-radius:100px;        /* 100 100 100 100 */
  pointer-events:none;
}

.fs-hr-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:none !important; /* remove any old arrow */
  padding-right:56px !important;    /* 32 icon + 10 spacing + some */
}


/* --- Tablet --- */
@media (max-width: 1024px){
  .fs-hr-select-wrap::after{
    width:29px;   /* 15 icon + padding 7+7 */
    height:29px;
    background-size:29px 29px;
    border-radius:100px;
  }

  .fs-hr-select{
    padding-right:49px !important; /* 29 + spacing 10 + buffer */
  }
}

/* --- Mobile --- */
@media (max-width: 600px){
  .fs-hr-select-wrap::after{
    width:26px;   /* 14 icon + padding 6+6 */
    height:26px;
    background-size:26px 26px;
    border-radius:100px;
  }

  .fs-hr-select{
    padding-right:46px !important; /* 26 + spacing 10 + buffer */
  }
}


/* --- Floating Label --- */
.fs-floating{
  position:relative;
}

.fs-floating input{
  width:100%;
}

.fs-floating label{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  color:#888;
  font-size:16px;
  pointer-events:none;
  transition: all 0.2s ease;
  background:#fff;
  padding:0 6px;
}

.fs-floating input:focus + label,
.fs-floating input:not(:placeholder-shown) + label{
  top:-8px;
  font-size:12px;
  color:#0166b1;
}

/* --- FIXED suffix right side --- */
.fs-input-wrap{
  position:relative;
  width:100%;
}

.fs-input-wrap input{
  padding-right:120px !important;
}

.fs-input-wrap .fs-suffix{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:#666;
  pointer-events:none;
  white-space:nowrap;
}

/* --- HARD FIX EUR / Jahr (guaranteed visible) --- */
.fs-input-wrap{
  position: relative;
}

.fs-input-wrap input{
  padding-right: 140px !important;
}

.fs-input-wrap::after{
  content: "EUR / Jahr";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #666;
  pointer-events: none;
}


/* --- Ensure EUR/Jahr suffix is visible and positioned --- */
.fs-input-wrap{
  position: relative !important;
  width: 100% !important;
}

.fs-input-wrap .fs-hr-input{
  padding-right: 140px !important; /* space for suffix */
}

.fs-input-wrap .fs-suffix{
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 16px !important;
  color: #666 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  z-index: 5 !important;
}


/* --- Final spacing normalization between all boxes --- */
.fs-hr-infobar{
  display:flex !important;
  flex-direction:column !important;
  gap: 12px !important;
}

.fs-hr-infobar > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* remove any special first/last spacing */
.fs-hr-infobar > *:first-child{ margin-top:0 !important; }
.fs-hr-infobar > * + *{ margin-top:0 !important; }


/* --- FIX: make gap between Buchführung and Lohnabrechnung identical --- */
.fs-hr-card{
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important; /* single spacing everywhere */
}

.fs-hr-infoitem--editable{
  margin: 0 !important;
}

.fs-hr-infobar{
  margin: 0 !important;
}


/* BOX HEIGHT */
.fs-hr-box {
  height:91px;
  display:flex;
  align-items:center;
}

/* RESULT BOX */
.fs-hr-total{
  background:#0166b1;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

/* caption visible */
.fs-hr-total .fs-hr-caption{
  display:block;
  color:#fff;
  margin-bottom:4px;
  text-align:center;
}

/* underline */
.result-price{
  border-bottom:2px solid #fff;
  display:inline-block;
}


/* FINAL UNIFIED BOX MODEL */
.fs-hr-box{
  height:91px;
  box-sizing:border-box;
}


/* FINAL CLEAN SPACING */
.fs-hr-box{
  margin-bottom:16px;
}

.fs-hr-box:last-child{
  margin-bottom:0;
}

/* remove possible conflicting top margins */
.fs-hr-total{
  margin-top:0 !important;
}


/* === PATCH: unify blue total box with grey info boxes (size + spacing) === */

/* Only the grey boxes in the infobar (not the editable dropdown box) */
.fs-hr-infobar .fs-hr-infoitem{
  height: 91px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* Ensure the content inside grey boxes uses full width */
.fs-hr-infobar .fs-hr-infoitem > *{
  width: 100%;
}

/* Total box: use same box model as .fs-hr-infoitem, just blue background + white text */
.fs-hr-total{
  height: 91px;
  box-sizing: border-box;
  border-radius: 14px;      /* match .fs-hr-infoitem */
  padding: 12px 14px;       /* match .fs-hr-infoitem */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(90deg, #0166B1 0%, #031E49 100%);
  color: #ffffff;
}

/* Equal gap between last grey box and the blue box */
.fs-hr-infobar{
  margin-bottom: 0 !important;
}
.fs-hr-footer{
  margin-top: 10px !important;   /* match infobar gap */
  padding-top: 0 !important;
}

/* Underline stays only as wide as the price */
.fs-hr-total .result-price{
  border-bottom: 2px solid #ffffff;
  display: inline-block;
}


/* === GAP FIX: exakt 14px zwischen Einrichtungskosten und blauer Box === */
.fs-hr-footer{
  margin-top:14px !important;
}


/* === GAP ADJUST: reduziert um 11px → jetzt 3px === */
.fs-hr-footer{
  margin-top:3px !important;
}

/* --- PATCH: unify inner padding for all cards --- */
.fs-hr-infoitem,
.fs-hr-total{
  padding: 14px 16px !important;
}


/* one-line blue box with left/right alignment */
.fs-hr-total { display:flex !important; flex-direction:row !important; justify-content:space-between !important; align-items:center !important; }
.fs-hr-total .result-label, .fs-hr-total .result-price { margin:0 !important; }


/* ensure left alignment of label in blue box */
.fs-hr-total .result-label { text-align: left !important; }


/* match color of 'monatlich pro Person' to price */
.fs-hr-box small { color: inherit !important; }


/* force same color as main text for subline */
.fs-hr-box small, .fs-hr-box .fs-hr-note, .fs-hr-box .fs-hr-sub { color: currentColor !important; }


/* force subtext to same dark color as price */
.fs-hr-box small { color: #111111 !important; }


/* enforce black color for 'monatlich pro Person' */
.fs-hr-box small, .fs-hr-box span { color: #000000 !important; }


/* exact target for 'monatlich pro Person' */
.fs-hr-lohn small { color: #000000 !important; }


/* force exact element (lohn subtext) to black */
.fs-hr-box .fs-hr-value span:last-child { color: #000000 !important; }


/* force 'monatlich pro Person' unit text to pure black */
.fs-hr-infounit { color: #000000 !important; }


/* match exact same color as surrounding text (price & labels) */
.fs-hr-infounit { color: currentColor !important; }
