/* ==========================================================================
   6. KONTAKT & IMPRESSUM
   ========================================================================== 
*/
.page-content-inner form, 
.page-content-inner hr, 
.page-content-inner .legal-text {
    margin-left: 25px;
    margin-right: 25px;
}

.page-content-inner p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.page-content-inner hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 30px 25px;
}

.contact-form { display: flex; flex-direction: column; max-width: 600px; }
.contact-form input, .contact-form textarea {
    padding: 10px; background: #333; border: 1px solid #555; color: white; margin-bottom: 10px;
}

/* --- LINKS IM TEXT --- */
.news-text a, 
.page-content-inner a {
    color: #ff5e4d;           /* Ein helleres, leuchtendes Rot für besseren Kontrast */
    text-decoration: none;    /* Unterstreichung weg für einen moderneren Look */
    font-weight: bold;        /* Etwas kräftiger, damit man den Link sofort erkennt */
    transition: 0.3s;
    border-bottom: 1px solid rgba(255, 94, 77, 0.3); /* Dezente Linie statt dicker Unterstreichung */
}

.news-text a:hover, 
.page-content-inner a:hover {
    color: #ffffff;           /* Wird beim Drüberfahren weiß */
    border-bottom: 1px solid #ffffff; 
    background-color: rgba(255, 94, 77, 0.1); /* Hauchzarter Hintergrund-Effekt */
}

.hp-container {
    position: absolute;
    left: -5000px; /* Schiebt das Feld weit aus dem Sichtfeld */
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   7. VIEWER & MISC
   ========================================================================== 
*/
.viewer {
    display: none;
    position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.9);
    justify-content: center; align-items: center;
}
.viewer-content { max-width: 90%; max-height: 90%; border: 3px solid white; }
.close { position: absolute; top: 20px; right: 35px; color: white; font-size: 40px; cursor: pointer; }

/* Styling für die Quiz-Sektion im Formular */
.quiz-section {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05); /* Dezenter Hintergrund */
    border-left: 4px solid #f39c12; /* Akzentfarbe (z.B. Orange/Gold) */
    border-radius: 4px;
}

.quiz-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #fff; /* Oder deine Textfarbe */
}

.quiz-section input {
    width: 100px !important; /* Das Feld muss nicht so breit sein */
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 3px;
    background: #fff;
    color: #333;
}

/* Optional: Fehlermeldung schöner machen */
.error-message {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #ff4d4d;
}

/* Container-Struktur */
#news-form-container { 
    background: #1a1a1a; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #333; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    margin-bottom: 50px;
}

/* Raster-Layout für die obere Zeile (Titel & Datum) */
.form-row {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Überschrift bekommt 3 Teile, Datum 1 Teil */
    gap: 20px;
    margin-bottom: 20px;
}

/* Gemeinsame Feld-Styles */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f39c12;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    /* Der wichtigste Fix: */
    box-sizing: border-box; 
    
    background: #262626;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    
    /* Verhindert, dass Felder in manchen Browsern eine Standard-Breite erzwingen */
    display: block; 
}

/* Fix für das Grid, damit es auf schmalen Bildschirmen nicht kaputt geht */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group:first-child {
    flex: 3; /* Überschrift nimmt 3 Teile ein */
}

.form-row .form-group:last-child {
    flex: 1; /* Datum nimmt 1 Teil ein */
    min-width: 150px; /* Verhindert, dass das Datum zu schmal wird */
}

/* Sicherheitshalber für den Container */
#news-form-container {
    box-sizing: border-box;
    max-width: 100%; /* Verhindert das Herausragen aus dem Admin-Wrapper */
}
.form-control:focus {
    border-color: #f39c12;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
    outline: none;
}

/* Spezielle Größen */
textarea#f_inhalt {
    min-height: 200px;
    resize: vertical; /* Erlaubt nur vertikales Ziehen */
}

/* Video-Link Bereich optisch absetzen */
.video-section {
    background: #222;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #e74c3c; /* Rot für Video/YouTube */
    margin: 25px 0;
}

/* Die Drag & Drop Zone verschönern */
#drop-zone {
    border: 2px dashed #444;
    background: #222;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

#drop-zone:hover {
    border-color: #f39c12;
    background: #2a2a2a;
}
