/* Reset */
* {
    margin: 5px;
    padding: 3px;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

/* Grundlayout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #111;
    color: #eee;
}

/* Header */
header {
    background: #1c1c1c;
    padding: 20px;
    border-bottom: 1px solid #333;
}
header h1 {
    margin-bottom: 10px;
}

/* Navigation */
nav a {
    margin-right: 15px;
    text-decoration: none;
    color: #69b7ff;
    font-weight: 500;
}
nav a:hover {
    color: #fff;
}

/* Main */
main {
    flex: 1;
    padding: 40px 20px;
}

/* Hero-Bereich auf Startseite */
.hero {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}
.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}
.hero p {
    margin-bottom: 20px;
    line-height: 1.5;
}


/* Projektkarten (projects.html) */
.project {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #181818;
}

/* Footer */
footer {
    padding: 15px 20px;
    background: #1c1c1c;
    border-top: 1px solid #333;
    text-align: center;
}
footer a {
    color: #69b7ff;
    text-decoration: none;
}
footer a:hover {
    color: #fff;
}
.panel {
    position: relative;
}
.panel .btn.g {
    margin-top: 15px;
}

/* Buttons */
/* Buttons: Base */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease, color 0.2s ease;
}

/* Primary */
.btn-primary {
    background: #278e8e;
    color: white;
    border: 1px solid black;
}
.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.7);
    transform: translateY(-3px);
}

/* Secondary */
.btn-secondary {
    background: transparent;
    color: #69b7ff;
    border: 1px solid #69b7ff;
    font-weight: 500;
    padding: 8px 16px;
    /* bewusst kleiner */
}
.btn-secondary:hover {
    background: #69b7ff;
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Side Button Layout */
.side-buttons {
    position: sticky;
    top: 24px;
    padding: 80px;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

/* Kontaktformular (contact.html) */
.contact {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 16px;
}
.contact-sub {
    opacity: 0.85;
    margin-top: 8px;
    margin-bottom: 18px;
}
.contact-form {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 18px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 720px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    outline: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(105, 183, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(105, 183, 255, 0.15);
}
.error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    color: #ff8a8a;
    font-size: 0.9rem;
}
.checks {
    margin-top: 14px;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.checks legend {
    padding: 0 6px;
    opacity: 0.85;
}
.check {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
}
.actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.alt-mail {
    opacity: 0.85;
    text-decoration: none;
}
.alt-mail:hover {
    text-decoration: underline;
}
.form-status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    display: none;
}
.form-status.ok {
    display: block;
    border: 1px solid rgba(120, 255, 190, 0.25);
    background: rgba(120, 255, 190, 0.10);
}
.form-status.bad {
    display: block;
    border: 1px solid rgba(255, 120, 120, 0.25);
    background: rgba(255, 120, 120, 0.10);
}

/* Honeypot verstecken */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
table th {
    background-color: #278e8e;
}

/* Bild im Hero-Bereich */
.hero-image {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* Logout */
/*
.logout-inline {
    display: inline;
}
.logout-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
}
.logout-link:hover {
    color: #555;
}
*/

/* Logout als Textlink */
.logout-inline {
    display: inline;
}

.logout-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    font: inherit;
    font-size: 1rem;
    /* ggf. anpassen */
    color: #6fa8ff;
    /* gleiche Farbe wie Impressum */
    cursor: pointer;

    text-decoration: none;
}

.logout-link:hover {
    color: white;
}