/* ============================================
   MARITIME STYLES - NoShit.Rocks
   Globale CSS-Datei für alle Seiten
   Version: 1.0 - 14.08.2025 19:35 MESZ
   Region: Schleswig-Holstein & Lübeck
   ============================================ */

/* === SCHRIFTARTEN === */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700;900&display=swap');

/* === FARBPALETTE MARITIM === */
:root {
    /* Hauptfarben Schleswig-Holstein & Lübeck */
    --hanserot: #DC143C;           /* Lübecker Hanseatisches Rot */
    --ostseeblau: #1E3A5F;         /* Tiefes Ostsee-Blau */
    --himmelblau: #4A90E2;         /* SH Himmelblau */
    --wellenblau: #6BB6D6;         /* Helles Wellenblau */
    
    /* Neutrale Farben */
    --sandbeige: #F5E6D3;          /* Travemünder Strandsand */
    --muschelweiss: #FAFAFA;       /* Muschelweiß */
    --hafengrau: #707070;          /* Hafengrau */
    --teergrau: #333333;           /* Dunkles Grau für Text */
    
    /* Akzentfarben */
    --bernstein: #FFA500;          /* Ostseegold/Bernstein */
    --seegras: #2C5F2D;            /* Seegras-Grün */
    --leuchtturmrot: #FF4444;      /* Warnsignal-Rot */
    --nebelgrau: #E8E8E8;          /* Leichtes Grau */
    
    /* Finanzwerte - Monospace */
    --finanz-positiv: #2ECC71;     /* Grün für positive Werte */
    --finanz-negativ: #E74C3C;     /* Rot für negative Werte */
    --finanz-neutral: #95A5A6;     /* Grau für neutrale Werte */
}

/* === GLOBALE EINSTELLUNGEN === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BODY & HINTERGRUND === */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--teergrau);
    background: linear-gradient(135deg, var(--ostseeblau) 0%, var(--himmelblau) 50%, var(--wellenblau) 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Animierte Wellen im Hintergrund */
body::before {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.2' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    animation: waves 10s ease-in-out infinite;
    z-index: -1;
}

@keyframes waves {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === CONTAINER === */
.container, .main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--muschelweiss);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3);
    position: relative;
}

/* Lübeck-Streifen oben */
.container::before,
.main-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--hanserot) 0px,
        var(--hanserot) 20px,
        var(--muschelweiss) 20px,
        var(--muschelweiss) 40px
    );
    border-radius: 20px 20px 0 0;
}

/* === TYPOGRAFIE === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: var(--ostseeblau);
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    font-weight: 900;
    border-bottom: 3px solid var(--himmelblau);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 35px;
    position: relative;
    padding-left: 30px;
}

h2::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--himmelblau);
}

h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--himmelblau);
    margin-top: 25px;
}

p {
    margin-bottom: 15px;
}

/* === LINKS === */
a {
    color: var(--himmelblau);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hanserot);
    text-decoration: underline;
}

/* === BUTTONS === */
button, .button, .btn {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--ostseeblau) 0%, var(--himmelblau) 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

button:hover, .button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

button:active, .button:active, .btn:active {
    transform: translateY(0);
}

/* Sekundärer Button */
.btn-secondary {
    background: linear-gradient(135deg, var(--sandbeige) 0%, white 100%);
    color: var(--ostseeblau);
}

/* Gefahr-Button */
.btn-danger {
    background: linear-gradient(135deg, var(--leuchtturmrot) 0%, var(--hanserot) 100%);
}

/* === FINANZWERTE (Monospace) === */
.financial-value, .financial, .monospace {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.1em;
}

.financial-positive {
    color: var(--finanz-positiv);
}

.financial-negative {
    color: var(--finanz-negativ);
}

.financial-neutral {
    color: var(--finanz-neutral);
}

/* === INFO-BOXEN === */
.info-box {
    background: var(--sandbeige);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--himmelblau);
}

.warning-box {
    background: #FFF3CD;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--bernstein);
}

.error-box {
    background: #F8D7DA;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--leuchtturmrot);
}

.success-box {
    background: #D4EDDA;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid var(--seegras);
}

/* === FORMULARE === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid var(--nebelgrau);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--himmelblau);
}

/* === WIDGETS === */
.widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.widget h2 {
    padding-left: 0;
    border-bottom: 2px solid var(--himmelblau);
    padding-bottom: 10px;
}

.widget h2::before {
    display: none;
}

/* === NAVIGATION === */
nav {
    background: var(--ostseeblau);
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: white;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

nav a:hover {
    background: var(--himmelblau);
    text-decoration: none;
}

/* === FOOTER === */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
}

footer a {
    color: white;
    font-weight: 700;
}

footer a:hover {
    color: var(--sandbeige);
}

/* === LISTEN MIT ANKER === */
ul.maritime-list {
    list-style: none;
    padding-left: 25px;
}

ul.maritime-list li::before {
    content: "⚓";
    color: var(--hanserot);
    font-size: 0.8em;
    margin-right: 10px;
    margin-left: -25px;
}

/* === TABELLEN === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background: var(--himmelblau);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--nebelgrau);
}

tr:hover {
    background: var(--sandbeige);
}

/* === ANIMATIONEN === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container, .main-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
        padding-left: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* === MARITIME DEKORATIONEN === */
.maritime-decoration {
    text-align: center;
    margin: 30px 0;
    color: var(--himmelblau);
    font-size: 1.5em;
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}