﻿/*
============================================================
Datei: assets/css/styles.css
Beschreibung: Globale Design-Basis für Frontend und Admin.
Ziel: einheitliche Schriftgrößen, moderne Optik, kompakte Abstände.
============================================================
*/

:root {
    --font-main: "Segoe UI", Inter, Roboto, Arial, sans-serif;

    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 15px;
    --fs-md: 16px;
    --fs-lg: 20px;
    --fs-xl: 24px;
    --fs-title: 30px;

    --lh-tight: 1.15;
    --lh-base: 1.35;

    --color-bg: #f3e9e3;
    --color-surface: #fffaf6;
    --color-surface-2: #f7eadc;
    --color-border: #d7b58f;
    --color-primary: #8b4513;
    --color-primary-hover: #a0522d;
    --color-text: #3f3026;
    --color-muted: #7a5b44;
    --color-white: #ffffff;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-soft: 0 4px 14px rgba(55, 29, 11, 0.10);

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--fs-base);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    background: var(--color-bg);
    color: var(--color-text);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.nav-button,
a.button {
    min-height: 36px;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    font-size: var(--fs-md);
}

h1, h2, h3, h4 {
    line-height: var(--lh-tight);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-img {
    height: 54px;
    width: auto;
    margin-right: 10px;
}

/* Navigationsleiste */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    min-height: 62px;
    margin: 0 !important;
    padding: 8px 18px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #7c3f12, #9a5e32);
    color: var(--color-white);
    box-shadow: 0 3px 12px rgba(45, 22, 8, 0.18);
}

/* Hauptnavigation muss direkt am oberen Fensterrand beginnen. */
body > .navbar:first-child {
    margin-top: 0 !important;
}

.navbar .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    gap: 4px;
    min-width: 0;
}

.navbar .menu a,
.menu-actions a {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.navbar .menu a:hover,
.menu-actions a:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

/* Menüaktionen */
.menu-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Login-Formular */
.login-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 140px;
    height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.96);
    color: var(--color-text);
    font-size: var(--fs-sm);
}

.login-form button {
    height: 34px;
    padding: 0 12px;
    font-size: var(--fs-sm);
    font-weight: 800;
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.login-form button:hover {
    background: #fff3e8;
    color: #6e3308;
    transform: translateY(-1px);
}
