/* GNDplus - Modern Layout CSS */
/* Basiert auf dem Click-Prototype Design */

@font-face {
    font-family: "EuclidCircularA";
    font-style: normal;
    font-weight: 400;
    src: url("/jakarta.faces.resource/fonts/EuclidCircularA-Regular-WebXL.woff2.xhtml");
}

:root {
    --gnd-blue: #006ab3;
    --gnd-light-green: #e2f2ef;
    --gnd-dark-blue: #004d7a;
    --gnd-orange: #f89734;
    --gnd-green: #a7dad3;
    --gnd-checkmark: #A7CF39;
    --gnd-error: #ff435b;
    --gnd-background: #FBFBFD;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: EuclidCircularA, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    min-height: 100%;
    height: 100%;
}

.all-content-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: white;
    color: black;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.language-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.language-item {
    margin-left: 1rem;
}

.selected-language {
    color: var(--gnd-blue);
    font-weight: bold;
    text-decoration: none;
}

.unselected-language {
    color: #666;
    text-decoration: none;
}

.unselected-language:hover {
    color: var(--gnd-blue);
    text-decoration: none;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 300;
}

.navbar-brand img {
    margin-right: 1rem;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gnd-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.orcid-link {
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.orcid-link:hover {
    opacity: 1;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gnd-blue);
    color: white;
    border: 1px solid var(--gnd-blue);
}

.btn-primary:hover {
    background: var(--gnd-dark-blue);
    color: white;
    border: 1px solid var(--gnd-dark-blue);
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background: var(--gnd-dark-blue);
    color: white;
    border: 1px solid var(--gnd-dark-blue);
}

.welcome-page-body .btn-primary {
    background: var(--gnd-blue) !important;
    color: white !important;
    border: 1px solid var(--gnd-blue) !important;
}

.welcome-page-body .btn-primary:hover {
    background: var(--gnd-dark-blue) !important;
    color: white !important;
    border: 1px solid var(--gnd-dark-blue) !important;
}

.btn-secondary {
    background: var(--gnd-blue);
    color: white;
    border: 1px solid var(--gnd-blue);
}

.btn-secondary:hover {
    background: var(--gnd-dark-blue);
    color: white;
    border: 1px solid var(--gnd-dark-blue);
}

.btn-outline {
    background: transparent;
    color: var(--gnd-blue);
    border: 2px solid var(--gnd-blue);
}

.btn-outline:hover {
    background: var(--gnd-blue);
    color: white;
}

/* Breadcrumb Styles */
.breadcrumb-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.nav-breadcrumb a,
.breadcrumb-link {
    color: var(--gnd-blue);
    text-decoration: none;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Main Container */
.main-container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gnd-blue);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.feature-grid, .action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card Styles */
.feature-card, .action-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover, .action-card:hover {
    transform: translateY(-2px);
}

.action-card {
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card h3, .action-card h3 {
    color: var(--gnd-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-card h3 {
    justify-content: center;
}

/* Icons */
.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--gnd-blue);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--gnd-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Stats Section */
.stats-section, .my-stats {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--gnd-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Activity Section */
.activity-section, .my-activities {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    color: var(--gnd-blue);
    margin-bottom: 0;
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard specific section-title override */
.dashboard-page .section-title {
    margin-bottom: 0;
    font-size: 1.25rem;
}

/* Edit page specific section-title override */
.edit-section .section-title {
    font-size: 1.1rem;
}

.activity-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-item .activity-status {
    flex-shrink: 0;
    align-self: center;
}

.activity-line-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.activity-title-link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.activity-title-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.activity-meta-inline {
    color: #666;
    font-size: 0.9rem;
}

.activity-meta-label {
    font-weight: 500;
    color: #555;
}

.activity-meta-sep {
    color: #999;
    margin: 0 0.1rem;
}

.activity-gnd-link {
    color: #2c5aa0;
    text-decoration: none;
}

.activity-gnd-link:hover {
    text-decoration: underline;
}

.activity-line-2 {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-line-2-label {
    font-weight: 500;
    color: #555;
}

.activity-line-2-text {
    color: #666;
}

/* Footer */
.footer {
    margin-top: auto;
}

.footer-row {
    display: flex;
    padding-right: 30px;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    background: white;
    color: black;
    padding: 2rem;
}

.footer-col {
    flex: 0 0 auto;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-link {
    font-family: EuclidCircularA, sans-serif;
    font-size: 1rem;
    line-height: 1.375;
    color: rgb(0, 0, 0) !important;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--gnd-blue) !important;
    text-decoration: none;
}

/* Dashboard Styles */
.dashboard-page {
    min-height: 100vh;
    background: var(--gnd-background);
}

.welcome-section {
    background: linear-gradient(135deg, var(--gnd-blue), var(--gnd-dark-blue));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.welcome-section h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    opacity: 0.9;
}

.search-bar {
    margin-bottom: 3rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gnd-blue);
}

.action-card h3 {
    color: var(--gnd-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}

.my-activities {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    min-height: fit-content;
    min-width: 0;
}

.my-stats {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.activity-status {
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-review {
    background: #cce5ff;
    color: #004085;
}

.quick-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.quick-actions h3 {
    color: var(--gnd-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.quick-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-grid, .action-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.login-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.close-btn {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.login-links {
    text-align: center;
    margin-top: 1rem;
}

.login-link {
    color: var(--gnd-blue);
    text-decoration: none;
}

.login-link:hover {
    color: var(--gnd-dark-blue);
    text-decoration: none;
}

/* Bootstrap Replacement Styles */
/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.75rem;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
    flex: 0 0 auto;
    padding: 0 0.75rem;
}

/* Default: 12 columns */
.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; }
    .col-md-3 { flex: 0 0 25%; }
    .col-md-4 { flex: 0 0 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; }
    .col-md-6 { flex: 0 0 50%; }
    .col-md-7 { flex: 0 0 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; }
    .col-md-9 { flex: 0 0 75%; }
    .col-md-10 { flex: 0 0 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; }
    .col-md-12 { flex: 0 0 100%; }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .col-lg-1 { flex: 0 0 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .col-xl-1 { flex: 0 0 8.333333%; }
    .col-xl-2 { flex: 0 0 16.666667%; }
    .col-xl-3 { flex: 0 0 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; }
    .col-xl-6 { flex: 0 0 50%; }
    .col-xl-7 { flex: 0 0 58.333333%; }
    .col-xl-8 { flex: 0 0 66.666667%; }
    .col-xl-9 { flex: 0 0 75%; }
    .col-xl-10 { flex: 0 0 83.333333%; }
    .col-xl-11 { flex: 0 0 91.666667%; }
    .col-xl-12 { flex: 0 0 100%; }
}

/* Utility Classes */
.justify-center {
    justify-content: center;
}

.m-3 {
    margin: 1rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .feature-grid, .action-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Submitted Page Styles */
.submitted-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.submitted-message {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.submitted-message h3 {
    margin: 1rem 0;
    color: var(--gnd-blue);
}

.submitted-message span {
    display: block;
    padding: 0 2rem;
    color: #666;
    line-height: 1.6;
}

/* Admin Login Styles */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.admin-login-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.admin-login-form h4 {
    margin: 1rem 0 2rem 0;
    color: var(--gnd-blue);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--gnd-blue);
    outline: none;
}

.error-input {
    border-color: #dc3545 !important;
}

.error-input:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
}

/* Edit Page Styles */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.page-header {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.page-header h2 {
    color: var(--gnd-blue);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
}

.search-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-section h3 {
    color: var(--gnd-blue);
    margin-bottom: 1.5rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-group {
    flex: 1;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.input-group input:focus,
.form-control:focus {
    border-color: var(--gnd-blue);
    outline: none;
}

.date-group .input-group{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-group .input-group > label {
    flex: 0 0 100%;
    width: 100%;
}

.date-group .input-group > input,
.date-group .input-group > select {
    flex: 1;
}

.bceRadio {
    display: flex;
    gap: 10px;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.entity-display {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.entity-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e9ecef;
}

.entity-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.entity-type {
    display: inline-block;
    background: var(--gnd-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: center;
}

.entity-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0;
}

.entity-description {
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

.edit-sections {
    padding: 2rem;
}

.edit-section {
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* Vorschlagbereich (GND-Suggest) soll über dem Formular liegen und nicht abgeschnitten werden */
.edit-section:has(.gnd-relation-container) {
    overflow: visible;
}

.section-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.section-header:hover {
    background: #e9ecef;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: var(--gnd-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.section-content {
    padding: 1.5rem;
    background: white;
    display: none;
}

.section-content.active {
    display: block;
}

.data-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #666;
}

.addon-section {
    margin-bottom: 1.5rem;
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.addon-title {
    font-weight: bold;
    color: var(--gnd-blue);
}

.addon-items {
    margin-left: 1rem;
}

.addon-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.addon-item-main {
    margin-bottom: 0.25rem;
}

.addon-item-main a {
    font-weight: bold;
    color: #333;
}

.addon-item-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    overflow-x: auto;
    min-width: 0;
}

.addon-item-meta .addon-item-link {
    color: #2c5aa0;
}

.addon-item:last-child {
    margin-bottom: 0;
}

.addon-item-link {
    color: var(--gnd-blue, #0d6efd);
    text-decoration: none;
}

.addon-item-link:hover {
    text-decoration: underline;
}

.no-data {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border: 1px solid #f5c6cb;
}

.btn-explorer {
    background: var(--gnd-orange);
    color: white;
    border: 1px solid var(--gnd-orange);
}

.btn-danger {
    background: var(--gnd-error);
    color: white;
    border: 1px solid var(--gnd-error);
}

.btn-explorer:hover {
    background: #e6851a;
    color: white;
    border: 1px solid #e6851a;
}

.btn-icon {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: auto;
}

     /* Incubator */

.type-selection {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.type-selection h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.type-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    background: #f8f9fa;
}

.type-card a{
    cursor: pointer;
}

.type-card:hover {
    border-color: #2c5aa0;
    background: #e6f3ff;
}

.type-card.selected {
    border-color: #2c5aa0;
    background: #e6f3ff;
}

.type-icon {
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

.type-card h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.type-card p {
    font-size: 0.8rem;
    color: #666;
}

.entity-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: none;
}

.entity-form.active {
    display: block;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2c5aa0;
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.progress-indicator {
    background: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: none;
}

.progress-indicator.active {
    display: block;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.progress-step.active {
    color: #2c5aa0;
    font-weight: bold;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.progress-step.active .step-number {
    background: #2c5aa0;
    color: white;
}

.add-field-btn {
    background: #f8f9fa;
    color: #2c5aa0;
    border: 2px dashed #2c5aa0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.add-field-btn:hover {
    background: #e6f3ff;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }
}

#admin-menu {
    padding: 5px;
    list-style: none;
    position: absolute;
    background: white;
    border: 1px solid #2c5aa0;
    border-radius: 3px;
    margin-top: 5px;
}

#admin-menu.hidden{
    display: none;
}

#admin-menu li a {
    color: #666;
    text-decoration: none;
}

#user-form table {
    width: 100%;
}

tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* Form Page Specific Styles - Compact Layout */
.gnd-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.gnd-label {
    font-weight: 500;
    color: #666;
}

.gnd-id-title {
    font-family: monospace;
    color: var(--gnd-blue);
    font-weight: 500;
}

.explorer-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* Form section with compact layout (used in form pages) */
.page-container .form-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.subsection-group {
    margin-bottom: 0.5rem;
    padding-bottom: 0rem;
    border-bottom: 1px solid #f0f0f0;
}

.subsection-group:last-child {
    border-bottom: none;
}

.subsection-header {
    margin-bottom: 0.5rem;
}

.subsection-title {
    color: var(--gnd-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.subsection-content {
    margin-left: 0.75rem;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.field-row:hover {
    background-color: #f8f9fa;
}

.field-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.label4-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
}

.label-field-group {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}

.field-actions {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.field-actions-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid #f0f0f0;
}

.additional-content {
    display: inline;
}

.additional-row {
    display: inline-flex;
    margin-left: 0.25rem;
}

/* Form actions - default style */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    justify-content: flex-end;
}

/* Form actions - compact style (used in form pages) */
.page-container .form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.form-actions .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

/* Ensure section-content is visible when not collapsed */
.edit-section .section-content {
    display: none
}

.edit-section .section-content.active {
    display: block;
}


.edit-section .section-content[style*="display: none"] {
    display: none !important;
}

/* Compact styles for edit-section in form */
.page-container .edit-section {
    margin-bottom: 0.75rem;
}

.page-container .edit-section .section-header {
    padding: 0.75rem 1rem;
}

.page-container .edit-section .section-content {
    padding: 0.75rem 1rem;
}

.page-container .page-header {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.page-container .page-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}