/* =========================================
   1. VARIABLEN & GRUNDLAGEN (CI/CD: Rot)
   ========================================= */
:root {
    /* Markenfarben */
    --primary: #d32f2f; /* Hauptfarbe: Rot */
    --primary-hover: #b71c1c; /* Dunkleres Rot f r Hover */
    
    /* Layout Farben */
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --card-bg: #ffffff;
    --footer-bg: #1a1a1a;
    
    /* Backend Kanban Farben */
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --column-bg: #e2e4e9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.site-header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo (Text oder Bild) */
.logo-link {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 40px;
    margin-right: 10px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary);
}

.desktop-nav .btn-outline {
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--primary);
    font-weight: bold;
}

.desktop-nav .btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--card-bg);
    border-top: 1px solid #eee;
    flex-direction: column;
    padding: 10px 20px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu:not(.hidden) { display: flex; }
}

/* =========================================
   3. MAIN CONTENT (Landingpage)
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.main-content h1 {
    font-size: 3.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Roter Akzent im Titel */
.main-content h1 span {
    color: var(--primary);
}

.main-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
}

.login-btn {
    background-color: var(--primary);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

/* =========================================
   4. FOOTER
   ========================================= */
.site-footer {
    background-color: var(--footer-bg);
    color: #a0aaba;
    padding-top: 50px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #a0aaba;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    background-color: #111111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* =========================================
   5. BACKEND (Login & Kanban)
   ========================================= */
.login-container {
    width: 100%;
    max-width: 380px;
    margin: 10vh auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-color);
}

.login-container input {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-container input:focus {
    border-color: var(--primary);
    outline: none;
}

.login-container button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.login-container button:hover {
    background: var(--primary-hover);
}

.error-msg {
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.backend-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 30px 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    font-size: 1.5rem;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: block;
    padding: 15px 30px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.3s, border-left 0.1s;
    border-left: 4px solid transparent;
}

.sidebar nav a:hover, .sidebar nav a.active {
    background: #34495e;
    border-left: 4px solid var(--primary);
}

.logout-link {
    color: #ff6b6b !important;
    margin-top: 30px;
}

.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.content-header h1 {
    margin-bottom: 30px;
    color: var(--text-color);
}

.board {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.column {
    background: var(--column-bg);
    width: 32%;
    padding: 20px;
    border-radius: 8px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
}

.column.drag-over {
    background: #d1d4db;
}

.col-header {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-list {
    flex: 1;
    min-height: 50px;
}

.task {
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: grab;
    user-select: none;
    border-left: 4px solid var(--primary);
}

.task:active, .task.is-dragging {
    cursor: grabbing;
    opacity: 0.6;
}

.add-task-container {
    margin-top: 15px;
}

.new-task-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.add-btn:hover {
    background: var(--primary-hover);
}

/* Slogan und hervorgehobene Buchstaben */
.acronym-slogan {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.letter-highlight {
    color: var(--primary);
    font-weight: bold;
}

/* =========================================
   6. LANDINGPAGE SEKTIONEN (#home, #causanova, #kontakt)
   ========================================= */
/* Hero Bereich (ganz oben) */
.hero-section {
    padding: 120px 20px;
    text-align: center;
    background-color: var(--card-bg);
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Slogan */
.acronym-slogan {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.letter-highlight {
    color: var(--primary); /* Das typische Rot */
    font-weight: bold;
}

/* Inhaltsbereiche allgemein */
.content-section {
    padding: 80px 20px;
    text-align: center;
}

.bg-light {
    background-color: var(--column-bg); /* Nutzt das Grau aus den Kanban-Spalten */
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* Roter Trennstrich unter den Überschriften */
.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.content-section p {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 15px auto;
    line-height: 1.8;
}

/* Kontaktbox */
.contact-info {
    margin-top: 30px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Smooth Scrolling für die Navigation */
html {
    scroll-behavior: smooth;
}

/* --- Swimlanes & Matrix --- */
.board-matrix {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.matrix-header {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    font-weight: bold;
    padding: 10px;
    background: var(--sidebar-bg);
    color: white;
    border-radius: 5px;
}

.swimlane {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    background: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-height: 150px;
}

.swimlane-title {
    padding: 15px;
    background: #e2e4e9;
    border-right: 2px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.add-btn-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.8rem;
}

.swimlane .column {
    padding: 10px;
    border-right: 1px dashed #ccc;
    background: transparent;
}

/* --- Modal Styling --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    width: 80%;
    max-width: 900px;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.editor-section, .file-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#code-editor {
    width: 100%;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}