/* App stylesheet inspired by the clean, airy look of dixeno.de (not a copy) */
/* The primary and secondary brand colors are provided as CSS variables on <body> via Twig. */

/* Assistant Font Family */
@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Assistant';
    src: url('./fonts/Assistant-Regular.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* App stylesheet inspired by the clean, airy look of dixeno.de (not a copy) */
/* ... existing code ... */

:root {
    --bg: #f6f7fb;
    --text: #222;
    --muted: #000000;
    --card-bg: #fff;
    --border: #eee;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --focus: #0ea5e9; /* focus accent */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base */
html, body {
    height: 100%;
}

body {
    font-family: 'Assistant', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(6px);
    background: white;
    color: #fff;
    padding: 14px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .2px;
    color: #000000;
    margin-left: 20px;
    font-size: 20px;
}

.site-header img {
    height: 34px;
    max-width: 100%;
    width: auto
}

.site-header nav a {
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 600;
    opacity: .95;
    color: #000000;
    transition: all .3s ease-in-out;
}

.site-header nav a:hover {
    background: linear-gradient(78deg, #95c11f 0, #b7e615 100%) no-repeat padding-box;
    color: #fff;
}

.ml-auto {
    margin-left: auto;
}

.muted {
    color: #666;
}

.site-header .muted {
    color: #000000;
    margin-right: 8px;
}

/* Containers */
:root {
    --container-max-width: 1080px;
    --container-padding: 24px 26px;
    --container-padding-mobile: 16px 18px;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 28px auto;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: var(--container-padding);
    box-sizing: border-box; /* Sicherstellen, dass Padding die Breite nicht sprengt */
}

/* Responsive Anpassungen für mobile Geräte */
@media (max-width: 1120px) {
    .container {
        width: calc(100% - 40px); /* Kleiner Rand links und rechts */
        margin: 20px auto;
        padding: var(--container-padding-mobile);
    }
}

/* Optionale Größen-Variationen */
.container-sm { max-width: 640px; }
.container-md { max-width: 800px; }
.container-lg { max-width: 1200px; }
.container-fluid { max-width: 100%; }

.container-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.section {
    margin: 26px 0;
}

/* Typography */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 0 12px;
    letter-spacing: .2px;
}

h2 {
    font-size: clamp(1.2rem, 3vw + 0.3rem, 1.8rem);
    margin: 24px 0 10px;
}

p {
    margin: 10px 0;
    color: #333;
}

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 6px;
}

.code-sm {
    font-size: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    height: 40px;
    min-width: 100px;
    border-radius: 10px;
    text-decoration: none;
    background:  linear-gradient(78deg, #95c11f 0, #b7e615 100%) no-repeat padding-box;
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform .02s ease-in, box-shadow .2s ease;
    font-weight: 500;
    line-height: 1;
}

.btn:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.btn:active {
    transform: translateY(1px);
}

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

.btn.danger {
    background: #dc3545;
}

.btn.success {
    background-color: #28a745;
    color: white;
}

/* Forms */
.field {
    margin: 14px 0;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent);
}

.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.actions.center{
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.actions.space-between{
    justify-content: space-between;
    align-items: center;
}

form{
    padding: 25px;
}

form.inline {
    display: inline;
    padding: 0;
}

form.btn{
    padding: 0;
    .btn-form{
        font-size: inherit;
        border: inherit;
        background: inherit;
        color: white;
        cursor: pointer;
        padding: 0;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
    }
}

.flex-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;

    .inline{
      /*  padding: 10px 14px; */
    }

}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: #fafafa;
    font-weight: 700;
}

tr:hover td {
    background: #fcfcfd;
}

/* Flash messages */
.flash {
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: 10px;
}

.flash-success {
    background: #d1e7dd;
    color: #0f5132;
}

.flash-error {
    background: #f8d7da;
    color: #842029;
}

/* Hero block for home page (optional) */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.hero p {
    color: #4b5563;
}

/* Preformatted content box */
.pre {
    white-space: pre-wrap;
    line-height: 1.5;
    background: #fafafa;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Accessibility */
a:focus, button:focus {
    outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
    outline-offset: 2px;
}

.flex-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 14px;

    .inline{
        .btn{
            padding: 12px 14px;
        }
    }

}

form[name="link_entry"] {
    div{
        margin-bottom: 10px;
    }
}
