/* -----------------------------
   Basis / kleine Elemente
   ----------------------------- */
.square {
    height: 10px;
    width: 10px;
    background-color: #ad8dc7;
    border-radius: 15%;
    text-align: center;
    font-size: 9px;
    font-weight: 400;
    font-style: normal;
    margin-top: 7px;
    margin-left: 5px;
    margin-right: 5px;
}

/* -----------------------------
   Card / Layout
   ----------------------------- */
.profile-card {
    background-color: #12081e;
    color: white;
    display: flex;
    padding: 15px 0 5px 10px;
    gap: 2px;
    align-items: flex-start;
}

/* Header / Titel */
.profile-user-title {
    padding: 10px;
    font-size: 18px;
    float: left;
    display: flex;
}

.profile-user-title-right {
    padding: 10px;
    text-align: right;
    border-bottom: solid 1px;
    border-color: #ad8dc7;
    background-color: #0c0614;
    color: #ad8dc7;
    font-size: 18px;
}

/* -----------------------------
   Profil-Foto / Edit-Box
   ----------------------------- */
.profile-photo {
    display: flex;
    width: 35%;
    max-width: 290px;
    height: auto;
    padding: 5px;
    justify-content: flex-start;
    flex-direction: column;
}

.profile-photo img {
    width: 100%;
    box-shadow: rgb(179 135 219 / 79%) 0px 0px 3px 1px;
    border-radius: 10px;
}

.profile-edit {
    width: 100%;
    padding: 5px;
    margin: 15px 0 0 0;
    display: flex;
    flex-flow: wrap;
    background-color: #0c0614;
    border-top: solid 1px;
    border-color: rgb(180 135 219);
    border-radius: 10px;
}

.profile-edit hr {
    border-color: #ad8dc7;
    border-style: hidden;
}

.profile-edit ul {
    width: 100%;
    margin: 10px 35px;
    padding: 0;
}

.profile-edit li {
    text-align: left;
    padding: 0 0 5px 0;
    margin: 0 0 0 -15px;
    color: #ad8dc7;
    list-style-type: none;
}

.profile-edit h3 {
    background-color: rgb(28, 0, 64);
    text-align: center;
    margin: 0 0 0 25%;
}

/* -----------------------------
   Profile Data / Tabs Container
   ----------------------------- */
/* Fix: display: fixed; ist kein gültiger Wert — ersetzen wir durch flex-basiertes Layout */
.profile-data {
    /* flex layout: nimmt den verbleibenden Platz in .profile-card ein */
    flex: 1 1 calc(100% - 340px);
    margin: 5px 10px 10px 15px;
    width: auto;
    word-break: break-word;
    box-sizing: border-box;
}

/* Datentexte / Cards */
.profile-data-info {
    list-style-type: none;
    padding: 5px;
    color: plum;
}

.profile-data-card {
    list-style-type: none;
    padding: 25px 5px;
    color: plum;
}

/* -----------------------------
   Headline / Title (wichtig für newline / block)
   ----------------------------- */
/* sorgt dafür, dass Überschriften eine eigene Zeile belegen */
.profile-data-title {
    display: block;     /* zwingt Blockverhalten */
    width: 100%;
    clear: both;        /* bricht floats oberhalb */
    box-sizing: border-box;
    margin: 1.0rem 0 0.4rem;
    padding: 0;
    background-color: #0c0614;
}

/* Einheitliche H3-Formatierung (nur einmal definiert) */
.profile-data-title h3 {
    padding: 5px;
    color: #ad8dc7;
    font-size: 18px;
    border-bottom: solid 1px #ad8dc7;
    text-decoration: none;
    margin: 0;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* -----------------------------
   Status / kleine Widgets
   ----------------------------- */
.user-navi-short {
    display: inline-block;
    position: absolute;
    width: 85%;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.user-navi-short p {
    display: inline;
    padding: 0 0 0 5px;
}

.user-gender {
    display: inline-block;
}

.user-gender img {
    width: 12px;
    height: 12px;
    box-shadow: none;
    border: none;
}

/* 🔥 Status Anzeige */
.user-status-online {
    color: #00ff00;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.user-status-online img { width: 12px; height: 12px; }

.user-status-offline {
    color: #ff0000;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.user-status-offline img { width: 12px; height: 12px; }

.user-status-abwesend {
    color: #ffa500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.user-status-abwesend img { width: 12px; height: 12px; }

.user-status-text {
    color: plum;
    display: inline-block;
}

/* -----------------------------
   Zwei-Spalten Layout für Daten
   ----------------------------- */
.profile-data-two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Falls ein .profile-data-title direktes Kind ist, soll es die komplette Zeile einnehmen */
.profile-data-two-columns > .profile-data-title {
    flex-basis: 100%;
    flex-grow: 0;
}

/* Items: zwei Spalten (je ~48%) */
.profile-data-two-columns .profile-data-item {
    flex: 0 0 48%;
    box-sizing: border-box;
    padding: 8px 12px;
    background-color: #0c0614;
    border-radius: 6px;
    color: #ad8dc7;
    font-weight: 500;
    margin: 5px;
}

/* Fallback: falls .profile-data-two-columns nicht aktiv ist, sorgen wir trotzdem für block-Layout */
.profile-data-two-columns > .profile-data-item {
    display: block;
}

/* Fullwidth Box */
.profile-data-fullwidth {
    margin: 0px 5px 15px 5px;
    padding: 10px 15px;
    background-color: #0c0614;
    border-radius: 6px;
    color: #dda0dd;
    font-weight: 400;
}

/* Text innerhalb eines Items */
.profile-data-text {
    color: plum;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* -----------------------------
   Optik / Tabs & Responsive
   ----------------------------- */
.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0;
    border-bottom: 2px solid #ad8dc7;
}

.profile-tab {
    padding: 8px 16px;
    margin-right: 2px;
    cursor: pointer;
    background-color: #0c0614;
    color: #ad8dc7;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    transition: all 0.2s ease;
}
.profile-tab:hover { background-color: #1a0c34; }
.profile-tab.active { background-color: #ad8dc7; color: #12081e; border-bottom: 2px solid #ad8dc7; }

/* Tab-Content */
.tab-content {
    display: none;
    width: 100%;
    background-color: #12081e;
    border-radius: 0 5px 5px 5px;
    padding: 15px;
    box-sizing: border-box;
}
.tab-content.active { display: block; }

/* Ergänzende rules (du hattest doppelt, nur einmal hier) */
.profile-data { flex: 1 1 calc(100% - 200px); margin-left: 20px; }

/* -----------------------------
   Optional: kleine UI-Elemente
   ----------------------------- */
/* Spoiler */
.spoiler { background-color:#000; color:#000; cursor:pointer; padding:0 2px; border-radius:2px; transition: color 0.2s;}
.spoiler:hover { color:#fff; }

/* Codeblock */
pre { background:#1e1e1e; color:#d4d4d4; font-family:monospace; font-size:14px; padding:10px; border-radius:5px; overflow-x:auto; line-height:1.4; }

/* PHP Syntax Highlighting */
.php-tag { color:#569cd6; font-weight:bold; }
.php-keyword { color:#c586c0; font-weight:bold; }
.php-string { color:#d69d85; }
.php-comment { color:#6a9955; font-style:italic; }

/* Blockquote / BBCode */
.bb-quote { border-left:10px solid #4d257b; background-color:#200f37; padding:10px 15px; margin:15px 0; border-radius:10px; font-style:italic; color:#dda0dd; }

/* -----------------------------
   Eingebunden vom Userprofile.tpl.php (zusätzliche Styles)
   ----------------------------- */
.profile-container { max-width: 800px; margin: 20px auto; font-family: Arial, sans-serif; }
.profile-header { display: flex; align-items: center; margin-bottom: 20px; }
.profile-avatar img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-right: 20px; }
.profile-username h2 { margin: 0; font-size: 24px; }
.profile-username .role { color: #666; font-size: 14px; }
.tab-link { padding: 10px 15px; cursor: pointer; border: none; background: none; font-size: 16px; margin-right: 5px; }
.tab-link.active { border-bottom: 3px solid #007bff; font-weight: bold; }
.profile-item { margin-bottom: 8px; }
.profile-item .label { font-weight: bold; margin-right: 5px; }
.profile-item .value { color: #333; }

/* responsive tweak: bei schmalen bildschirmen zweispalten auf einspalten umstellen */
@media (max-width: 720px) {
    .profile-data-two-columns .profile-data-item {
        flex: 0 0 100%;
    }
    .profile-card { flex-direction: column; }
    .profile-photo { width: 100%; max-width: none; }
    .profile-data { margin-left: 0; }
}