/* Schriftarten laden */
@font-face {
    font-family: 'PolySans';
    src: url('PolySans-Neutral.woff2') format('woff2'),
         url('PolySans-NeutralItalic.woff2') format('woff2'),
         url('PolySans-Bulky.woff') format('woff'),
         url('PolySans-BulkyItalic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'PolySansMono';
    src: url('PolySans-NeutralMono.woff2') format('woff2'),
         url('PolySans-BulkyMono.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

/* Grundlayout */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'PolySans', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
}

footer {
    background-color: #edede2;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #ccc;
    font-size: 0.9rem;
}

/* Maximalbreite für Inhalte */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Globale Links */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navigation oben */
.nav-link {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Formularfelder & Buttons */
form input[type=text],
form input[type=password],
form input[type=number],
form input[type=email],
form select,
form textarea,
form button {
    font-family: 'PolySans', Arial, sans-serif;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #edede2;
    font-size: 1rem;
}

form button {
    width: 100%;
    padding: 1rem;
    background-color: #f25c4c;
    color: white;
    border: none;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
}

form button:hover {
    background-color: #d94c3c;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
    text-align: center;
}

thead {
    background-color: #f25c4c;
    color: white;
}

/* Für Zahlenfelder (Mono-Schrift) */
.mono {
    font-family: 'PolySansMono', monospace;
}

/* Kommentar-Felder schöner gestalten */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* Styling für die Kundentrefferliste */
#kundentreffer a {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #f7f7f7;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#kundentreffer a:hover {
    background-color: #f25c4c;
    color: white;
}

/* Fehlermeldungen */
.error {
    color: red;
    margin-top: 1rem;
    text-align: center;
}

/* Erfolgsmeldungen */
.success {
    color: green;
    margin-top: 1rem;
    text-align: center;
}

/* Login-Seite */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #edede2;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}

.login-logo {
    max-width: 160px;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #f25c4c;
}

/* Trefferliste für Kundensuche */
#kundentreffer {
    margin-top: 0.5rem;
}

#kundentreffer a.treffer {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #edede2;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s;
}

#kundentreffer a.treffer:hover {
    background-color: #f25c4c;
    color: white;
}

/* Container */
.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Formularzeilen klassisch */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-row label {
    width: 200px;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row textarea {
    flex: 1;
    padding: 0.75rem;
    background-color: #edede2;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 1rem;
}

.summe-zeile {
    background-color: #f9f9f6;
    font-weight: bold;
}

/* Schöne Gestaltung des Suchfeldes */
#kundensuche {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #edede2;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 1.1rem;
}

/* Trennlinie nach Suche */
.trennlinie {
    margin: 3rem 0 2rem 0;
    border-bottom: 2px solid #ccc;
}

/* Kommentar schöner darstellen */
.kommentar-zeile {
    padding: 0rem 1rem 1.25rem 1rem;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 0.95rem;
    text-align: left;
    color: #555;
    border-bottom: 1px solid #ccc;
    background: none;
    margin: 0;
}

tr.zeit-mit-kommentar td {
    border-bottom: none;
}

/* Buttons für Aktionen */
.button-action {
    display: inline-block;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    background-color: #edede2;
    color: #333;
    font-family: 'PolySans', Arial, sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    margin: 0 0.2rem;
    transition: background-color 0.2s, color 0.2s;
}

.button-action:hover {
    background-color: #f25c4c;
    color: white;
  	text-decoration: none;
}

.button-action.danger {
    background-color: #fbeaea;
    color: #d9534f;
}

.button-action.danger:hover {
    background-color: #f25c4c;
    color: white;
}