/*==========================================================
  1. FONT DEFINITIONEN (@font-face)
==========================================================*/
@font-face {
    font-family: 'Archivo';
    src: url('fonts/Archivo-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Archivo';
    src: url('fonts/Archivo-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}


/*==========================================================
  2. GLOBALE STYLES & RESETS
==========================================================*/

/* Setzt die allgemeine Schriftart und den unteren Abstand für den Footer */
body {
    margin: 0;
    padding-top : 0px;
    font-family: 'Archivo';
    /* Wichtig: Abstand für den fixierten Footer */
    padding-bottom: 40px;
    background-color: #fcfcfc;
}


/*==========================================================
  3. HEADER & LOGO BEREICH
==========================================================*/

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-subtext {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
}


/*==========================================================
  4. NAVIGATION (MENU) STYLING
  - Vereinheitlicht auf Rot und Archivo Bold
==========================================================*/

/* Richtet sich an A-Tags im Navigationsbereich (statische Links) */
.header-nav a {
    text-decoration: none;
    color: #cc0000;
    font-size: 14px;
    font-weight: 700;

    transition: color 0.3s, text-decoration 0.3s;
    /* Verhindert, dass die Links umbrechen */
    white-space: nowrap;
    display: inline-block;
}

.header-nav a:hover {
    color: #a00;           /* Dunkleres Rot beim Hover */
    text-decoration: underline;
}

/* Regeln für Lizmap LI/A Elemente (Admin, Logout), wenn sie Bootstrap-Klassen verwenden */
.nav-item .nav-link {
    /* Setzt die Farbe für dynamische Links, falls sie spezifischer sein müssen,
       ansonsten werden sie von .header-nav a überschrieben.
       Ich habe diese Regel hier entfernt, um die Redundanz zu beseitigen.
       Wenn Lizmap diese Links Schwarz überschreibt, müssen wir hier mit !important arbeiten. */
}



/*==========================================================
  5. STICKY FOOTER BEREICH
==========================================================*/

.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd; /* Obere Linie beibehalten */
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}

.main-footer .footer-content {
    font-family: 'Archivo', Arial, sans-serif;
    font-size: 12px;
    color: #333;
}

/* E-Mail Link Styling (Rot) */
.main-footer a.footer-email {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}

.main-footer a.footer-email:hover {
    text-decoration: underline;
}

/* Lizmap Link Styling (Optional) */
.main-footer a.lizmap-link {
    color: #cc0000;
    text-decoration: none;
    font-weight: normal;
}

.main-footer a.lizmap-link:hover {
    text-decoration: underline;
}

/*==========================================================
  6. VIEW & PROJEKTLISTE (GRID & RAHMEN)
  - Layout nutzt nun die volle Breite mit Bootstrap
==========================================================*/

/* Entfernt den unnötigen Wrapper (Container-Fluid übernimmt das) */
/* .main-content-wrapper wurde entfernt */
#content.container {
    /* 1. Entfernt die feste Maximalbreite des Standard-Containers */
    max-width: none !important;
    width: auto !important;

    /* 2. Setzt den Abstand von 5px an allen Seiten (oben, rechts, unten, links) */
    padding: 5px !important;

    /* 3. Entfernt das standardmäßige Margin (Zentrierung) */
    margin: 0 !important;
}

/* Der Inhalts-Kasten mit rotem Rahmen um die Projektliste und Pressemitteilung */
.content-box {
    background-color: #fff;
    border: 1px solid #cc0000;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px; /* Abstand zwischen den Kästen und zum Footer */
}

.content-box-admin {
    background-color: #E8E8E8;
    border: 1px solid #cc0000;
    padding: 5px;
    border-radius: 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px; /* Abstand zwischen den Kästen und zum Footer */
}

/* --- Projekt Grid Layout --- */
/*---------------------------------------------------------------------- /
CARDS
----------------------------------------------------------------------- */

.card_proj {
    display: inline-block;
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.87);
    background: #fff;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.card_proj .card-image_proj {
    height: 60%;
    position: relative;
    overflow: hidden;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: -30px;
    border-radius: 6px;
    box-shadow: 0 16px 38px -12px rgba(0, 0, 0, 0.56), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
}

.card_proj .card-image_proj img_proj {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    pointer-events: none;
}

.card_proj .card-image_proj .card-caption_proj {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 1.3em;
    text-shadow: 0 2px 5px rgba(33, 33, 33, 0.5);
}

.card_proj img_proj {
    width: 100%;
    height: auto;
}

.table_proj  {
    margin-bottom: 0px;
}

.card_proj  .table_proj  {
    padding: 15px 30px;
}

.card_proj .table-info_proj  {

    
    background: linear-gradient(60deg, #26c6da, #0097a7);

}

.card_proj .text-info_proj {
    font-family: 'Archivo' !important;
    font-weight: 700 !important;
}
.card-blog_proj {
    margin-top: 30px;
}

/* --- Styling für Pressemitteilungs-Box (col-4) --- */

/* Roter Tag "Pressemitteilung" */
.pressemitteilung-tag {
    display: inline-block;
    background-color: #cc0000;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-family: 'Archivo', Arial, sans-serif;
    text-transform: uppercase;
}

/* Überschrift des Beitrags */
.press-release-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.3;
}

/* Styling für die Daten-Tabelle (Amtsgericht, Vorstand etc.) */
.data-table {
    width: 100%;
    margin-top: 20px;
}

.data-table td {
    padding: 5px 0;
    font-size: 14px;
}