/* DRUCKMOMENTE - ULTIMATIVE SYSTEM-STEUERUNG 2026
   PROJEKT: FULL REHABILITATION (KOMPLETTDATEI)
   STATUS: READY-TO-USE inkl. AUFTRAGSFORMULAR
*/

/* --- 1. IMPORT & VARIABLEN --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-dark: #0a0e17;
    --bg-header: #0f172a;
    --bg-card: #1e293b;
    --bg-nav: rgba(15, 23, 42, 0.95);
    --accent: #f59e0b;        /* Edles Gold für Druckmomente */
    --accent-blue: #38bdf8;   /* Kategorie-Links & Buttons */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 16px;
    --font: 'Inter', sans-serif;
    --nav-height: 90px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --input-bg: rgba(2, 6, 23, 0.9); /* Für Formulare */
}

/* --- 2. GLOBALER RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- 3. HEADER & NAVIGATION (LOGO LINKS / NAV MITTE) --- */
header {
    background-color: var(--bg-nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

.header-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

nav.main-nav {
    justify-self: center;
}

nav.main-nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

nav.main-nav a:hover {
    color: var(--accent);
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav.main-nav a:hover::after {
    width: 100%;
}

/* --- 4. MAIN CONTENT --- */
main {
    flex: 1;
    margin-top: var(--nav-height);
    padding: 60px 0;
}

/* --- 5. AUFTRAGSFORMULAR & LOGO-UPLOAD --- */
.form-container {
    max-width: 800px;
    margin: 100px auto; /* Auf 100px erhöht für optimalen Abstand zum fixierten Header */
    padding: 0 20px;
    margin-bottom: 100px;
}

.order-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.order-card h2 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: -1px;
}

.order-card h2 span {
    color: var(--accent);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

/* Spezielles Datei-Upload Styling */
input[type="file"].form-control {
    padding: 10px;
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    margin-right: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.7rem;
}

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

.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    background: #fbbf24;
}

/* --- 5.1 ZUSÄTZLICHE FORMULAR-GRID STYLES --- */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-strasse {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 15px;
}

.grid-plz {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

.product-info-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-message-box {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.hidden-field-group {
    display: none;
}

/* --- 6. SHOP DESIGN --- */
.shop-hero {
    text-align: center;
    padding-bottom: 50px;
}

.shop-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
}

.category-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-link {
    padding: 12px 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.category-link:hover {
    background: var(--accent-blue);
    color: var(--text-white);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-dark);
    border-radius: 12px;
    margin-bottom: 25px;
    background-size: cover;
    background-position: center;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    margin-top: auto;
}

/* --- 7. FOOTER --- */
footer {
    background: #070b14;
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 20px;
    color: var(--accent-blue);
    text-decoration: none;
}

/* --- 8. RESPONSIVE --- */
@media (max-width: 1024px) {
    .header-flex { grid-template-columns: 1fr 1fr; }
    nav.main-nav { display: none; }
    .container { padding: 0 20px; }
}

@media (max-width: 768px) {
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .order-card { padding: 25px; }
}