
.fffa-table-admin td,
.fffa-table-admin th {
    padding: 4px 6px;
    vertical-align: top;
}



.fffa-tag-container { line-height: 150%; }
a.fffa-tag-link:link { text-decoration: underline; }
a.fffa-tag-link:hover { color: red; text-decoration: underline; }



#main a.fffa-tag-link {
  text-decoration: none; color: blue !important;
}

#main a.fffa-tag-link:hover {
  color: red !important; 
}

ul.fffa-offer-newest-list, ul.fffa-offer-newest-list li {
    list-style-type: disc;
    margin: 0;
    padding: 0;
}


body.fffa-org {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 16px;
    background: #ffffff;
    color: #000000;
}


body.fffa-org  h1 { color: #32a04a; }




/* =========================================================
   Login-Seite (/org) – ehemals Inline-CSS
   ========================================================= */

body.fffa-login {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #000000;
}

.fffa-login .login-wrapper {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 16px;
    line-height: 1.4;
}

.fffa-login h1 {
    margin-bottom: 24px;
}

/* Card */

.fffa-login .login-card {
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 18px;
    background: #ffffff;
}

/* Formular */

.fffa-login label {
    display: block;
    margin: 12px 0 6px;
}

.fffa-login input[type="text"],
.fffa-login input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    box-sizing: border-box;
}

.fffa-login .actions {
    margin-top: 14px;
}

.fffa-login button {
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

/* Fehleranzeige */

.fffa-login .error {
    background: #fff2f2;
    border: 1px solid #f1b0b0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Meta / Links (falls später benötigt) */

.fffa-login .meta {
    color: #555555;
    font-size: 14px;
    margin-top: 10px;
}

.fffa-login a {
    color: inherit;
    text-decoration: none;
}



.fffa-login .field-remember {
    margin-top: 8px;
    width: 40%;
    display: inline-block;
}

.fffa-login .field-forgotten {
    margin-top: 8px;
    width: 40%;
    display: inline-block;
}

.fffa-login .field-forgotten a { text-decoration: underline; }

.fffa-login .field-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}





/* =========================================================
   ORG Backend Layout (template.html) – modern + responsive
   ========================================================= */

body.fffa-org {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0; /* vorher 16px, jetzt übernimmt Layout die Abstände */
    background: #ffffff;
    color: #000000;
}

.fffa-shell {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.fffa-sidebar {
    width: 240px;
    flex: 0 0 240px;
    border-right: 1px solid #e6e6e6;
    padding: 16px;
    box-sizing: border-box;
    background: #ffffff;
}

.fffa-brand {
    margin-bottom: 16px;
}

.fffa-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: #32a04a;
}

.fffa-brand-subtitle {
    font-size: 13px;
    color: #555555;
    margin-top: 2px;
}

.fffa-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fffa-nav-btn {
    display: block;
    padding: 12px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: #32a04a;
    color: #ffffff;
    font-weight: 600;
}

.fffa-nav-btn:hover,
.fffa-nav-btn:focus {
    text-decoration: none;
    filter: brightness(0.95);
    outline: none;
}

/* Main area */
.fffa-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.fffa-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e6e6e6;
    background: #ffffff;
    box-sizing: border-box;
}

body.fffa-org h1 {
    margin: 0;
    font-size: 20px;
    color: #32a04a;
}

.fffa-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333333;
    white-space: nowrap;
}

.fffa-logout {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #e6e6e6;
    background: #ffffff;
    color: #000000;
}

.fffa-logout:hover,
.fffa-logout:focus {
    text-decoration: none;
    filter: brightness(0.98);
    outline: none;
}

/* Content */
.fffa-content {
    padding: 18px;
    box-sizing: border-box;
}

/* Tabellen im Content etwas angenehmer */
.fffa-content .fffa-table-admin {
    width: 100%;
    border-collapse: collapse;
}

.fffa-content .fffa-table-admin th {
    text-align: left;
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 10px;
}

.fffa-content .fffa-table-admin td {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 10px;
}

/* Responsive: Sidebar wird oben, Buttons werden horizontal scrollbar-frei */
@media (max-width: 900px) {
    .fffa-shell {
        flex-direction: column;
    }

    .fffa-sidebar {
        width: 100%;
        flex: 0 0 auto;
        border-right: 0;
        border-bottom: 1px solid #e6e6e6;
    }

    .fffa-nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fffa-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .fffa-topbar-user {
        white-space: normal;
        flex-wrap: wrap;
    }
}

@media (max-width: 520px) {
    .fffa-nav-list {
        grid-template-columns: 1fr;
    }

    .fffa-content {
        padding: 14px;
    }
}



/* =========================================================
   ORG / Angebote (Dropdown + Edit-Form)
   ========================================================= */

.fffa-org .fffa-form {
    margin-top: 14px;
}

.fffa-org .fffa-form-inline {
    display: grid;
    gap: 8px;
    max-width: 520px;
}

.fffa-org .fffa-form label {
    font-size: 14px;
    color: #333333;
}

.fffa-org select,
.fffa-org input[type="text"],
.fffa-org input[type="email"],
.fffa-org input[type="password"],
.fffa-org input[type="date"],
.fffa-org textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    background: #ffffff;
}

.fffa-org textarea {
    resize: vertical;
}

.fffa-org .fffa-sep {
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 18px 0;
}

.fffa-org .fffa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
}

.fffa-org .fffa-field-full {
    grid-column: 1 / -1;
}

.fffa-org .fffa-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 14px;
    margin-top: 8px;
}

.fffa-org .fffa-actions {
    margin-top: 14px;
}

.fffa-org .fffa-btn-primary {
    background: #32a04a;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    min-width: 200px;
}

.fffa-org .fffa-btn-primary:hover {
    filter: brightness(0.95);
}

.fffa-org .fffa-btn-secondary {
    background: #9e1b1b;
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    min-width: 200px;
}

.fffa-org .fffa-btn-secondary:hover {
    filter: brightness(0.95);
}

.fffa-org .fffa-alert {
    padding: 10px 12px;
    border-radius: 10px;
    margin: 12px 0;
    border: 1px solid transparent;
}

.fffa-org .fffa-alert-success {
    background: #eef9f1;
    border-color: #bfe7c8;
}

.fffa-org .fffa-alert-error {
    background: #fff2f2;
    border-color: #f1b0b0;
}

.fffa-org textarea, .fffa-org input[type="date"] {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;    
}

.fffa-org input[type="checkbox"] {
    width: 30px; height: 30px;   
}


@media (max-width: 900px) {
    .fffa-org .fffa-grid {
        grid-template-columns: 1fr;
    }
}

img.fffa-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 16px;
}



/* ===== GRID LAYOUT ===== */

/* Container der Kacheln */
div.ff-offer-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;                 /* Abstand zwischen Kacheln */
}

/* Einzelne Kachel */
div.ff-offer-grid-item {
    flex: 0 0 calc(50% - 20px); /* 2 Spalten */
    box-sizing: border-box;

    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px;
    background: #ffffff;
    text-align: left;

    min-height: 450px;

    display: flex;             /* für saubere vertikale Struktur */
    flex-direction: column;
}

/* Bildbereich */
div.ff-offer-grid-item-image {
    width: 100%;
    height: 150px;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

/* Titel */
div.ff-offer-grid-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #32a04a;
    margin-bottom: 8px;
}

/* View-Toggle oben rechts */
nav.fffa-view-list_grid {
    width: 100%;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
    gap: 8px;
}

nav.fffa-view-list_grid a {  text-decoration: none !important; color: #32a04a; font-weight: 600; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    div.ff-offer-grid-item {
        flex: 0 0 calc(50% - 20px); /* weiterhin 2 Spalten */
    }
}

@media (max-width: 768px) {
    div.ff-offer-grid-item {
        flex: 0 0 100%; /* 1 Spalte auf Tablet/Mobile */
    }
}
