/* ============================================
   BRUTAL GERMAN STYLE - Kein AI-Weichspül-Look
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'DIN', 'DIN Pro', 'FF DIN', 'Bahnschrift', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    margin: 0;
    background: #e8e9eb;
    color: #1a1c1e;
    line-height: 1.4;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER - Industriell, direkt, kein Schnickschnack
   ============================================ */
header {
    background: #1a1c1e;
    color: #ffffff;
    padding: 1.5rem 2rem;
    border-bottom: 4px solid #e63946;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e63946;
    opacity: 0.3;
}

nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

nav a {
    color: #d0d3d7;
    margin-right: 0;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    position: relative;
}

nav a:first-child {
    padding-left: 0;
}

nav a:hover {
    color: #ffffff;
    background: rgba(230, 57, 70, 0.08);
    border-bottom: 2px solid #e63946;
    text-decoration: none;
}

nav a:active {
    background: rgba(230, 57, 70, 0.15);
}

/* ============================================
   MAIN - Maximaler Fokus auf Inhalt
   ============================================ */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ============================================
   CARD - Kantig, schwer, mit Statement
   ============================================ */
.card {
    background: #ffffff;
    border: 2px solid #1a1c1e;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 6px 6px 0 #1a1c1e;
    position: relative;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
    box-shadow: 8px 8px 0 #1a1c1e;
    transform: translate(-2px, -2px);
}

.card h2,
.card h3 {
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.1rem;
    border-bottom: 3px solid #e63946;
    padding-bottom: 0.6rem;
    margin-bottom: 1.2rem;
    display: inline-block;
}

/* ============================================
   FORM - Industrial Input
   ============================================ */
form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #4a4e52;
    margin-bottom: -0.8rem;
}

input[type="text"],
input[type="password"],
input[type="file"] {
    padding: 0.9rem 1rem;
    border: 2px solid #1a1c1e;
    font-family: inherit;
    font-size: 1rem;
    background: #fdfdfd;
    color: #1a1c1e;
    font-weight: 500;
    transition: all 0.12s ease;
    box-shadow: 3px 3px 0 #d0d3d7;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 4px 4px 0 #e63946;
    background: #ffffff;
    transform: translate(-1px, -1px);
}

input[type="file"] {
    padding: 0.7rem;
    cursor: pointer;
    background: #f5f5f6;
}

input[type="file"]::file-selector-button {
    background: #1a1c1e;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.2rem;
    margin-right: 1rem;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.12s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #e63946;
}

/* ============================================
   BUTTON - Mechanisch, präzise
   ============================================ */
button {
    padding: 0.9rem 1.8rem;
    border: 2px solid #1a1c1e;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    cursor: pointer;
    background: #1a1c1e;
    color: #ffffff;
    box-shadow: 4px 4px 0 #6c7178;
    transition: all 0.12s ease;
    align-self: flex-start;
    position: relative;
    top: 0;
    left: 0;
}

button:hover {
    background: #e63946;
    border-color: #e63946;
    box-shadow: 5px 5px 0 #4a4e52;
    transform: translate(-1px, -1px);
}

button:active {
    box-shadow: 2px 2px 0 #4a4e52;
    transform: translate(2px, 2px);
    transition: all 0.04s ease;
}

button:focus-visible {
    outline: 3px solid #e63946;
    outline-offset: 3px;
}

/* Button Varianten */
button.secondary {
    background: #ffffff;
    color: #1a1c1e;
    border: 2px solid #1a1c1e;
}

button.secondary:hover {
    background: #f0f0f1;
    color: #e63946;
    border-color: #e63946;
}

button.danger {
    background: #e63946;
    border-color: #e63946;
    box-shadow: 4px 4px 0 #8b0000;
}

button.danger:hover {
    background: #c1121f;
    box-shadow: 5px 5px 0 #8b0000;
}

/* ============================================
   FILE LIST - Strukturiert, hart
   ============================================ */
.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 2px solid #1a1c1e;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-bottom: 2px solid #1a1c1e;
    background: #ffffff;
    font-weight: 500;
    transition: background 0.1s ease;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list li:hover {
    background: #fdf0f1;
}

.file-list li:nth-child(even) {
    background: #fafafa;
}

.file-list li:nth-child(even):hover {
    background: #fdf0f1;
}

.file-list li::before {
    content: '▶';
    margin-right: 0.8rem;
    font-size: 0.6rem;
    color: #e63946;
}

/* ============================================
   MESSAGES - Klare Ansage
   ============================================ */
.message {
    background: #ffffff;
    border: 2px solid #1a1c1e;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-weight: 600;
    box-shadow: 3px 3px 0 #1a1c1e;
    position: relative;
    padding-left: 2.5rem;
}

.message::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 900;
}

.message:not(.error):not(.success)::before {
    content: '!';
    color: #e63946;
}

.message.error {
    border-color: #e63946;
    background: #fff5f5;
    box-shadow: 3px 3px 0 #e63946;
}

.message.error::before {
    content: '✕';
    color: #e63946;
}

.message.success {
    border-color: #2d6a4f;
    background: #f0faf5;
    box-shadow: 3px 3px 0 #2d6a4f;
}

.message.success::before {
    content: '✓';
    color: #2d6a4f;
}

/* ============================================
   CODE - Roh, technisch
   ============================================ */
pre {
    background: #1a1c1e;
    color: #e8e9eb;
    border: 2px solid #1a1c1e;
    padding: 1.2rem;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
    position: relative;
}

pre::before {
    content: 'CODE';
    position: absolute;
    top: -1px;
    right: -1px;
    background: #e63946;
    color: #ffffff;
    padding: 0.2rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    font-family: inherit;
}

/* ============================================
   HINT - Kleine, aber feine Info
   ============================================ */
.hint {
    color: #4a4e52;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-left: 3px solid #d0d3d7;
    padding-left: 0.8rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   UTILITY - Hart, direkt, ohne Firlefanz
   ============================================ */
hr {
    border: none;
    border-top: 3px solid #1a1c1e;
    margin: 2rem 0;
}

::selection {
    background: #e63946;
    color: #ffffff;
}

::-moz-selection {
    background: #e63946;
    color: #ffffff;
}

/* Scrollbar - Industrial */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1c1e;
}

::-webkit-scrollbar-thumb {
    background: #e63946;
    border: 2px solid #1a1c1e;
}

::-webkit-scrollbar-thumb:hover {
    background: #c1121f;
}