/* Reset & Grundeinstellungen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f0f0f0;
    padding: 40px;
}

.layout-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.page-content {
    flex: 1;
}

h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

/* Grid-Layout für die Kacheln */
ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 4px;
}

/* Einzelne Kachel */
ul:not(nav ul) > li a {
    display: flex;
    align-items: flex-end;
    padding: 16px;
    height: 160px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.2s ease;

    /* Abgerundete Ecken */
    border-radius: 6px;

    /* Box-Shadow links und oben */
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 0.2);
}

/* Text nach oben beim Hover */
ul:not(nav ul) > li a span {
    transform: translateY(0);
    transition: transform 0.2s ease;
}

ul:not(nav ul) > li a:hover {
    filter: brightness(1.2);
}

ul:not(nav ul) > li a:hover span {
    transform: translateY(-10px);
}

/* Verschiedene Farben per nth-child */
ul:not(nav ul) > li:nth-child(1) a  { background-color: #1a3a5c; }
ul:not(nav ul) > li:nth-child(2) a  { background-color: #1a6fa8; }
ul:not(nav ul) > li:nth-child(3) a  { background-color: #2e4057; }
ul:not(nav ul) > li:nth-child(4) a  { background-color: #c0392b; }
ul:not(nav ul) > li:nth-child(5) a  { background-color: #d35400; }
ul:not(nav ul) > li:nth-child(6) a  { background-color: #27ae60; }
ul:not(nav ul) > li:nth-child(7) a  { background-color: #16a085; }
ul:not(nav ul) > li:nth-child(8) a  { background-color: #8e44ad; }
ul:not(nav ul) > li:nth-child(9) a  { background-color: #2980b9; }
ul:not(nav ul) > li:nth-child(10) a { background-color: #e74c3c; }
ul:not(nav ul) > li:nth-child(11) a { background-color: #f39c12; }
ul:not(nav ul) > li:nth-child(12) a { background-color: #d4ac0d; }
ul:not(nav ul) > li:nth-child(13) a { background-color: #1abc9c; }
ul:not(nav ul) > li:nth-child(14) a { background-color: #0e6655; }
ul:not(nav ul) > li:nth-child(15) a { background-color: #2471a3; }
ul:not(nav ul) > li:nth-child(16) a { background-color: #6c3483; }
ul:not(nav ul) > li:nth-child(17) a { background-color: #922b21; }
ul:not(nav ul) > li:nth-child(18) a { background-color: #784212; }
ul:not(nav ul) > li:nth-child(19) a { background-color: #1e8bc3; }
ul:not(nav ul) > li:nth-child(20) a { background-color: #117a65; }
ul:not(nav ul) > li:nth-child(21) a { background-color: #4a235a; }
ul:not(nav ul) > li:nth-child(22) a { background-color: #b7950b; }
ul:not(nav ul) > li:nth-child(23) a { background-color: #0b5345; }
ul:not(nav ul) > li:nth-child(24) a { background-color: #154360; }
ul:not(nav ul) > li:nth-child(25) a { background-color: #6e2f1a; }
ul:not(nav ul) > li:nth-child(26) a { background-color: #4d5656; }
ul:not(nav ul) > li:nth-child(27) a { background-color: #1b4f72; }
ul:not(nav ul) > li:nth-child(28) a { background-color: #7b241c; }
ul:not(nav ul) > li:nth-child(29) a { background-color: #145a32; }
ul:not(nav ul) > li:nth-child(30) a { background-color: #4a4a8a; }

/* Formular */
.form-card {
    background-color: #fff;
    border-radius: 6px;
    padding: 24px;
    max-width: 600px;
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 2px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7e0;
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #333;
    background-color: #f8fafc;
}

.form-card textarea {
    min-height: 160px;
    resize: vertical;
}

.form-card button {
    align-self: flex-start;
    padding: 10px 24px;
    background-color: #1a3a5c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.form-card button:hover {
    filter: brightness(1.2);
}

/* Footer */
footer {
    margin-top: 24px;
    padding-left: calc(220px + 32px);
}

footer a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a3a5c;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: filter 0.2s ease;
}

footer a:hover {
    filter: brightness(1.2);
}

footer button {
    padding: 10px 20px;
    background-color: #1a3a5c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: filter 0.2s ease;
}

footer button:hover {
    filter: brightness(1.2);
}

/* Navigation */
nav {
    background-color: #1a3a5c;
    padding: 16px;
    border-radius: 6px;
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
    align-self: flex-start;
    margin-top: 80px;
}

nav details {
    margin-bottom: 8px;
}

nav summary {
    color: white;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    list-style: none;
}

nav summary:hover {
    background-color: rgba(255,255,255,0.1);
}

nav ul {
    display: block;
    margin: 4px 0 0 16px;
    padding: 0;
}

nav ul li {
    display: block;
    margin-bottom: 2px;
}

nav ul li a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    height: auto;
    box-shadow: none;
    background-color: transparent;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
    filter: none;
}

.nav-standalone {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.nav-standalone a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: transparent;
    height: auto;
    box-shadow: none;
}

.nav-standalone a:hover {
    background-color: rgba(255,255,255,0.1);
    filter: none;
}

/* Profilbild */
.profile-img {
    display: block;
    width: 30%;
    max-width: 300px;
    min-width: 120px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* Unterseiten-Layout */
.content {
    max-width: 800px;
    margin: 0 auto;
}

.content h1 {
    font-size: 1.6rem;
    font-weight: 400;
    color: #1a3a5c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a3a5c;
}

.content p {
    background-color: #fff;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 0.08);
}

.content code {
    background-color: #eef2f7;
    color: #1a3a5c;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}