
.header {
    flex-shrink: 0;
    background: #222;
    color: #fff;
    padding: 15px 20px;
    color: #923c3cf9;
}

/* Inhalt im Header */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto auto; /* Links – Mitte – Rechts */
    align-items: center;
    column-gap: 40px;
}

/* Linke Spalte */
.header-left h1 {
    margin: 0;
}

.header-left p {
    color: #923c3cf9;
    margin: 5px 0 0 0;
}

/* Navigation in der Mitte */
.header-nav {
    display: flex;
    gap: 20px;
    justify-content: center; /* ZENTRIERT die Navigation */
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

/* Logo rechts */
.header-logo {
    height: 60px;
    width: auto;
}

.lang-switch {
    position: relative;
    display: inline-block;
}

.lang-button {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;

    min-width: 150px;

    background: #fff;
    border: 1px solid #ccc;

    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

.lang-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.lang-menu a:hover {
    background: #f0f0f0;
}

.lang-switch:hover .lang-menu {
    display: block;
}

/* Tooltip */
.lang-menu a::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 105%;
    top: 50%;

    min-width: 100px;
    max-width: 400px;

    transform: translateY(-50%);
    white-space: normal;
    overflow-wrap: break-word;
    
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;

    font-size: 12px;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s;

    z-index: 1000;
}

.lang-menu a:hover::after {
    opacity: 1;
    visibility: visible;
}
.user-menu {
    position: relative;
    display: inline-block;
}

.user-button {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 7px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.user-dropdown {
    /*display: none;*/
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;

    background: #222;
    border: 1px solid #474747;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    padding: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease 0.8s, visibility 0s linear 1.0s;
}

.user-dropdown form {
    margin-top: 10px;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;   /* Öffnen sofort */
}
.user-dropdown input {
    font-weight: bold;
    font-size: 14px;
    padding: 8px 2px;
    box-sizing: border-box;
}
.user-dropdown label {
    padding: 8px 2px;
}
.user-dropdown button[type="submit"] {
    width: 100%;
}
.user-dropdown > a:first-child { margin-top: 0; }