/* Grundlegendes Layout */
body, html { 
    margin: 0; 
    padding: 0; 
    font-family: sans-serif; 
}

/* Header & Banner */
.main-header {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1; 
    max-height: 400px; 
    background-image: url('../images/banner2_anchor.jpg');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    background-color: white; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.header-top { width: 100%; text-align: center; padding-top: 1.2rem; }
.header-top h1 { margin: 0; color: black; font-weight: bold; font-size: clamp(1.5rem, 5.5vw, 3.2rem); text-transform: uppercase; }
.header-bottom { width: 100%; text-align: center; padding-bottom: 0.8rem; }
.header-bottom a { color: blue; font-size: clamp(0.7rem, 1.5vw, 0.9rem); text-decoration: none; }

/* Container & Spalten */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.action-bar {
    display: flex;
    justify-content: flex-start; 
    margin-top: 2rem;
}

.header-cv {
    margin-top: 3rem;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333;
    text-align: left;
}

/* Formular Elemente */
.input-field { 
    padding: 8px 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    width: 250px; 
}

.btn-action { 
    padding: 8px 15px; 
    background: #333; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    margin-left: 10px;
}

/* Fix f���r die Kommentarfelder */
form input[type="text"],
form input[type="email"],
form input[type="url"],
form textarea {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 10px 0 15px 0;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-family: inherit;
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

.meta {
    font-style: italic;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.author {
    font-weight: bold;
}

/* Layout-Kontrolle f���r die Textspalte */
.note-text {
    max-width: 650px; 
    margin-left: 0;
}

/* Bilder & Interaktion */
.note-text img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 2rem 0;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.note-text figure {
    margin: 2rem 0;
    padding: 0;
    max-width: 100%;
}

/* Vollbild-Modus f���r Bilder */
.note-text img.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    margin: 0 !important;
    padding: 20px;
    cursor: zoom-out;
    max-width: none !important;
}

/* Tabellen-System (Scroll-Version) */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #eee;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    width: 100%;
    min-width: 1000px; /* Erzwingt Breite f���r Scroll-Effekt */
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-container th, 
.table-container td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.table-container th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Gezielte Breite f���r die letzte Spalte */
.table-container th:last-child, 
.table-container td:last-child {
    min-width: 200px; 
    padding-right: 30px;
}