/* assets/css/style.css */

/* --- GLOBALE VARIABLEN (Übernommen aus alter Version) --- */
:root {
    --primary-color: #5a7d6e; 
    --primary-dark: #3e5a4f;
    --primary-light: #e8f4ec;
    --text-main: #333;
    --text-light: #555;
    --border-color: #eaeaea;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- BASIS RESET & TYPOGRAFIE --- */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0; 
    padding: 0;
    color: var(--text-main);
    background-color: #fafafa;
    line-height: 1.4;
}

/* --- LAYOUT CONTAINER --- */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.02);
    min-height: 100vh;
}

/* --- HEADER --- */
.main-header { 
    text-align: center; 
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 15px; 
    margin-bottom: 25px; 
}

.main-header h1 { 
    color: var(--primary-color); 
    font-size: 2rem; 
    margin: 0; 
    text-transform: uppercase;
}

.main-header h2 { 
    font-size: 1.1rem; 
    color: #666; 
    font-weight: normal; 
    margin-top: 5px; 
}

/* --- ALLGEMEINE SEKTIONEN (Intro & Sektionen) --- */
.intro-section, 
.entourage-section { 
    background: #f9fdfa; 
    padding: 15px 20px; 
    border-radius: 6px; 
    border-left: 4px solid var(--primary-color); 
    margin-bottom: 30px; 
    font-size: 0.95rem; 
}

.legal-note { 
    color: #888; 
    font-size: 0.85rem; 
    margin-top: 10px;
}

.category-section { 
    margin-bottom: 50px; 
}

.category-title { 
    font-size: 1.6rem; 
    color: var(--primary-dark); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 8px; 
    margin-bottom: 5px; 
}

.category-desc { 
    font-style: italic; 
    color: var(--text-light); 
    margin-bottom: 20px; 
    font-size: 0.95rem; 
}

/* --- GLOBALE SUCHE --- */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

#globalSearch {
    width: 100%;
    padding: 15px 20px 15px 45px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
}

#globalSearch:focus {
    box-shadow: 0 6px 15px rgba(90, 125, 110, 0.2);
    border-color: var(--primary-dark);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --- TAB NAVIGATION --- */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #e0e0e0;
    color: var(--text-main);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(90, 125, 110, 0.3);
}

/* --- GRID SYSTEM & BASIS KARTEN --- */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.compact-card {
    border: 1px solid var(--border-color);
    border-top-width: 4px; 
    border-radius: 8px;
    padding: 15px;
    background-color: var(--white);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compact-card:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

/* --- GLOBALE KARTEN-ELEMENTE --- */
.card-head h4 { 
    margin: 0 0 8px 0; 
    font-size: 1.2rem; 
    color: var(--primary-dark); 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
}

.subtitle { 
    margin: 0 0 5px 0; 
    font-size: 0.95rem; 
    color: #222; 
    font-weight: bold;
}

.profile { 
    margin: 0; 
    font-size: 0.9rem; 
    color: var(--text-light); 
}

.full-name { 
    font-size: 0.85rem; 
    color: #888; 
    font-weight: normal; 
}

/* --- TAGS / BADGES (Global genutzt) --- */
.tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 5px; 
    margin-bottom: 10px; 
}

.tag { 
    font-size: 0.75rem; 
    padding: 3px 8px; 
    border-radius: 12px; 
    font-weight: bold; 
}

.tag-safe { 
    background: #e8f4ec; 
    color: #2d6642; 
}

.tag-warning { 
    background: #fbecec; 
    color: #9c2b2b; 
}

/* --- TAB CONTENT LOGIK & ANIMATION --- */
.tab-content {
    display: none; 
    animation: fadeEffect 0.5s ease;
}

.tab-content.active {
    display: block; 
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FOOTER --- */
.main-footer { 
    text-align: center; 
    font-size: 0.85rem; 
    color: #999; 
    border-top: 1px solid var(--border-color); 
    padding-top: 15px; 
    margin-top: 40px; 
}

/* --- MOBILE ANPASSUNGEN --- */
@media (max-width: 600px) {
    .grid-layout { grid-template-columns: 1fr; }
    .tab-btn { padding: 10px 15px; font-size: 0.9rem; }
    .main-header h1 { font-size: 1.6rem; }
}