a.swm-link{
  color: #1D3C4F;
  font-weight: 500;

  text-decoration-line: underline;
  text-decoration-color: #1D3C4F;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5rem;

  transition: text-decoration-color .2s ease, color .2s ease;
}

a.swm-link:hover{
  color: #163040;
  text-decoration-color: #163040;
}


/* =========================================================
   Stadtwerke Merseburg – Fehler-Alert (Login)
   Farbe: #1D3C4F
   ========================================================= */

/* Grundcontainer */
.swm-alert{
  display: flex;
  align-items: flex-start;
  gap: 16px;

  padding: 18px 20px;
  margin-bottom: 16px;

  background-color: #1D3C4F;
  color: #ffffff;

  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Icon-Spalte (links, hoch genug für mehrzeiligen Text) */
.swm-alert-icon-wrap{
  flex: 0 0 48px;
  width: 48px;
  min-height: 48px;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  padding-top: 2px;
}

/* SVG strikt gekapselt */
.swm-alert-icon-svg{
  width: 40px;
  height: 40px;
  display: block;
}

/* Dreieck */
.swm-alert-triangle{
  fill: rgba(255,255,255,0.18);
  stroke: rgba(255,255,255,0.6);
  stroke-width: 1.5;
}

/* Ausrufezeichen (Strich) */
.swm-alert-exclam{
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Ausrufezeichen (Punkt) */
.swm-alert-dot{
  fill: #ffffff;
}

/* Textbereich */
.swm-alert-text{
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

/* Abstand zum nachfolgenden Formular */
.swm-alert + form{
  margin-top: 16px;
}

/* Responsive Anpassung */
@media (max-width: 576px){
  .swm-alert{
    padding: 16px;
    border-radius: 10px;
  }

  .swm-alert-icon-wrap{
    width: 42px;
    min-height: 42px;
  }

  .swm-alert-icon-svg{
    width: 34px;
    height: 34px;
  }
}

/* ===============================
   INFO Alert
=============================== */
.swm-alert-info{
  background-color: #E9EFF3;
  color: #1D3C4F;
}

.swm-alert-info .swm-alert-circle{
  fill: rgba(29,60,79,0.12);
  stroke: rgba(29,60,79,0.35);
  stroke-width: 1.5;
}

.swm-alert-info .swm-alert-i-bar,
.swm-alert-info .swm-alert-i-dot{
  fill: #1D3C4F;
}

/* ===============================
   SUCCESS Alert
=============================== */
.swm-alert-success{
  background-color: #E6F4EA;
  color: #1E6B3A;
}

.swm-alert-success .swm-alert-circle{
  fill: rgba(30,107,58,0.15);
  stroke: rgba(30,107,58,0.4);
  stroke-width: 1.5;
}

.swm-alert-success .swm-alert-check{
  fill: none;
  stroke: #1E6B3A;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h2{
  font-size:48px;
  font-weight:700;
  line-height: 1.3;
  color:#1D3C4F;
}

h3{
  font-size:26px;
  font-weight: 700;
  line-height: 1.3;
  color: #1D3C4F;
}

.tags{
  display: flex;
  flex-direction: column;
  color: #355267;
  line-height: 1.3;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight:bolder;
}

.headline-wrapper{
  margin-top:32px;
}

/* -------------------------------------------------------
   SWM Tabs (bereinigt, ohne Duplikate)
------------------------------------------------------- */

/* Container */
section.tab-navigation .tabbed{
  border-radius: 16px;
}

/* Nav-Leiste */
section.tab-navigation .tabbed-nav{
  display: flex;
  gap: 0;
  margin: 0;
}

/* Tabs */
section.tab-navigation .tabbed-tab{
  flex: 1 1 0;
  border: 0;
  border-radius: 0;
  background-color: #C3E0F0;
  padding: 1.25rem 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1D3C4F;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  font-size: 20px;
}

section.tab-navigation .tabbed-tab:first-child{
  border-top-left-radius: 16px;
}
section.tab-navigation .tabbed-tab:last-child{
  border-top-right-radius: 16px;
}

section.tab-navigation .tabbed-tab.active{
  background-color: #EBF8FF;
}

section.tab-navigation .tabbed-tab:hover{
  filter: brightness(0.98);
}

/* Content-Container */
section.tab-navigation .tabbed-content{
  margin: 0;
  background-color: #EBF8FF;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  padding: 1rem;
}

/* mehr Padding auf größeren Screens */
@media (min-width: 768px){
  section.tab-navigation .tabbed-content{ padding: 2rem; }
}
@media (min-width: 992px){
  section.tab-navigation .tabbed-content{ padding: 4rem; }
}

/* Pane Handling */
section.tab-navigation .tab-pane{
  display: none;
  width: 100%;
}

section.tab-navigation .tab-pane.active{
  display: block;
}

/* kleine Hilfsklassen */
section.tab-navigation .tab-pane-spacing{
  margin-top: 16px;
}

section.tab-navigation .tabbed-empty{
  padding: 12px 14px;
  background: rgba(29, 60, 79, 0.06);
  border-radius: 10px;
  color: #1D3C4F;
  font-weight: 600;
}

#deleteMailCanvas{
  margin: 20px 0;                 /* Abstand oben & unten */
  padding: 16px 18px;             /* Innenabstand */

  background-color: #F1F7FA;      /* ruhiger Card-Hintergrund */
  border: 1px solid rgba(29,60,79,0.25);
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#deleteMailCanvas:empty{
  display: none;
}
/* Wenn deleteMailCanvas leer ist → HR danach ausblenden */
hr:has(+ #deleteMailCanvas:empty){
  display: none;
}

hr.swm-hr{
  border: 0;
  height: 1px;
  margin: 24px 0;
  background: rgba(29,60,79,0.18);
}

/* =========================================================
   Disabled Button – überschreibt Bootstrap-Standard
   Farben aus dem SWM Corporate Design
   ========================================================= */
.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    background-color: #e8f2f8 !important;
    border-color: #C3E0F0 !important;
    color: #4D697F !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}