/* globale Rundungen im Tahoe-Stil */
/* runde Ecken: ja – aber ohne globales Clipping */
.ui.grid,
.ui.grid > .row,
.ui.grid > .row > .column,
.ui.selection.dropdown,
.ui.dropdown,
.ui.calendar,
.ui.popup,
.ui.modal {
    overflow: visible !important;  /* entscheidend */
    border-radius: 0.75rem;        /* runde Ecken bleiben */
}

/* visuelle Container dürfen clippen, nicht die Interaktiven */
.ui.segment,
.ui.card,
.ui.table,
.ui.button,
.ui.input > input {
    border-radius: 0.75rem;
    /* KEIN overflow:hidden hier nötig – Inputs haben nichts zu clippen */
}

/* Popup darf nie geclippt werden */
.ui.labeled.input,
.ui.labeled.input > .label,
.ui.labeled.input > input {
    overflow: visible !important;
}

/* Tabellen clippen gern: Popup braucht Sicht */
table.ui.table,
table.ui.table td,
table.ui.table th {
    overflow: visible !important;
}


* {
    font-family: 'Roboto', helvetica, arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}
h1 {
    font-size: 22px;
}
h2 {
    margin-bottom: 5px;
    font-size: 18px;
}
h3 {
    margin-bottom: 10px;
    font-size: 16px;
}
input {
    margin-right:10px;
}
input::placeholder {
    color: #999;
}
input[type=button], input[type=submit] {
    padding:5px 10px;
    font-size: 16px;
}

thead > tr > th {
    color: #222 !important;
    background-color: #eee !important;
    padding: 2px 5px !important;
    font-style: italic;
    font-weight: normal !important;
}

button.primary {
    color: white;
    background-color: #428bca;
    border: 1px solid;
    border-color: #428bca;
    border-radius: 4px;
    border-width: 1px;
    padding: 6px 12px;
    line-height: 20px;
}

.status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

span.status-green {
    background-color: green;
}
span.status-yellow {
    background-color: orange;
}
span.status-red {
    background-color: red;
}

span.status-green-outline {
    border: 3px solid green;
    background-color: transparent;
}
span.status-yellow-outline {
    border: 3px solid orange;
    background-color: transparent;
}
span.status-red-outline {
    border: 3px solid red;
    background-color: transparent;
}

span.idrequired {
    font-size: 16pt;
    color: red;
}

button.button {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
}

a.button,
input.button,
button.button {
    display: inline-block;
    margin: 7px 5px;
    padding: 3px 6px;
    text-align: center;
    text-decoration: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s;
    cursor: pointer;
}

a.button:hover {
    background-color: #45a049; /* Dunklerer grüner Hintergrund beim Hover */
}

a.primary {
    display: inline-block;
    margin: 7px 5px;
    padding: 3px 6px;
    text-align: center;
    text-decoration: none;
    background-color: #4992d1; /* blauer Hintergrund */
    color: white; /* Weißer Text */
    border-radius: 5px; /* Abgerundete Ecken */
    border: none;
    transition: background-color 0.3s;
}

a.buttonx {
    display: inline-block;
    margin: 7px 5px;
    padding: 3px 6px;
    text-align: center;
    text-decoration: none;
    background-color: #bbb; /* Grauer Hintergrund */
    color: #222;
    border-radius: 5px; /* Abgerundete Ecken */
    border: none;
    transition: background-color 0.3s;
}
a.buttonx:hover {
    background-color: red;
}

/*
* Überschreiben der Fomantic-Eigenschafen.
*/
a.ui.negative.button {
    background-color: #999 !important;
}
a.ui.negative.button:hover {
    background-color: red !important;
}


.published {
    color: green;
}

.wartend {
    color: red;
}

.beendet {
    color: gray;
}

select.a-z {
    display: inline-block;
    height: 1.85em;
    font-size: 1em;
    padding: 0 1em;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
}

.neg {
    color: red;
}

button.suchen,
input.suchen {
    height: 1.85em;
    margin: 7px 5px !important;
    padding: 3px 6px !important;
    text-align: center !important;
    text-decoration: none !important;
    background-color: #4CAF50 !important;
    color: white !important;
    border-radius: 5px !important;
    border: none !important;
    transition: background-color 0.3s !important;
}

td.td_cursor:hover {
    cursor: pointer;
}

td.border, th.border
{
    border-right-width: 2px;
    border-right-style: solid;
    border-right-color: rgba(34,36,38,.1);
}

td.num,
th.num
{
    text-align: right !important;
    white-space: nowrap;

    /* gleich breite Ziffern */
    font-variant-numeric: tabular-nums;

    /* optisch ruhiger Abstand */
    padding-left: 0.6em;
    padding-right: 0.6em;
}

/* optionale feste Breiten für typische Zahlenspalten */
th.num.events,
td.num.events
{
    width: 5em;
}

th.num.money,
td.num.money
{
    width: 8em;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: 0.02em !important;
}

td.ampel,th.ampel,
td.mehr, th.mehr,
td.gwgok, th.gwgok,
th.mitte
{
    text-align: center !important;
}

th.mehr, td.mehr {
    width: 20px !important;
}

th.gross {
    font-size: 1.2em;
}

.sticky-actions-wrap {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #eee;
    border-top: 1px solid rgba(34,36,38,0.12);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
    padding: 0.85rem 0;
    margin-top: 2rem;
}

.sticky-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sticky-actions-left,
.sticky-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
