/* =========================================================
   RESET / BASIS
   ========================================================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #020b17 url("../img/astronom.jpg") no-repeat center top fixed;
    background-size: cover;
    color: #e6f1ff;
}

/* =========================================================
   PAGE WRAPPER (Footer-Fix)
   ========================================================= */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: linear-gradient(
        to bottom,
        rgba(5, 25, 55, 0.95),
        rgba(5, 25, 55, 0.75)
    );
    border-bottom: 1px solid rgba(120,180,255,0.3);
}

.header-inner {
    max-width: 1300px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* =========================================================
   LOGO
   ========================================================= */
.site-logo-img {
    height: 58px;
    width: auto;
}

/* =========================================================
   NAVIGATION – HAUPTMENÜ
   ========================================================= */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 6px 12px;
    color: #cfe6ff;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #ffffff;
}

/* =========================================================
   SUBMENÜS – GRUNDSTRUKTUR
   ========================================================= */
.main-nav li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    min-width: 220px;
    background: rgba(10, 30, 60, 0.97);
    border-radius: 6px;
    padding: 6px 0;
    z-index: 1000;
}

.main-nav li:hover > ul {
    display: flex;
}

/* Sub-Sub-Menüs */
.main-nav ul ul ul {
    top: 0;
    left: 100%;
}

/* =========================================================
   SUBMENÜ-INDIKATOREN (DREIECKE)
   ========================================================= */

/* Basis: alle Menüeinträge mit Untermenü */
.main-nav li.has-children > a,
.main-nav .nav-item.has-children > a {
    position: relative;
    padding-right: 24px; /* Platz für Dreieck */
}

/* ► Dreieck (Standardzustand) */
.main-nav li.has-children > a::after,
.main-nav .nav-item.has-children > a::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #f5d000;   /* GELB */
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.2s ease;
}

/* ▼ Dreieck bei Hover (aufklappend) */
.main-nav li.has-children:hover > a::after,
.main-nav .nav-item.has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* =========================================================
   USER BOX (root | Admin | Logout)
   ========================================================= */

.user-box {
    margin-left: auto;
    font-size: 14px;
    font-weight: 500;
    color: #bcdcff;                 /* Grundtext (root, Trenner) */
    white-space: nowrap;
}

/* Trenner "|" explizit */
.user-box span {
    color: #bcdcff;
}

/* Links: Admin / Logout */
.user-box a {
    color: #ffd84d;                 /* Gelb – hoher Kontrast */
    text-decoration: none;
    font-weight: 600;
}

/* Hover-Zustand */
.user-box a:hover {
    color: #fff3a0;
    text-decoration: underline;
}

/* Sicherheit gegen globale Überschreiber */
.site-header .user-box a {
    color: #ffd84d;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.site-main {
    flex: 1;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px 40px;
    background: rgba(3, 15, 35, 0.75);
    border-radius: 10px;
}

/* =========================================================
   SEITENTITEL (bereits korrekt – bleibt so)
   ========================================================= */
.site-main .page-title-bar h1 {
    color: #2fd3d3 !important;
}

/* =========================================================
   KATEGORIE- / GRUPPENTEXTE (GELB)
   ========================================================= */
.download-category h3,
.download-category-title,
.downloads h3,
.download-category strong,
.download-category p.category {
    color: #ffd84d;
    font-weight: 600;
}

/* =========================================================
   LINKS – NICHT ÜBERSCHREIBEN
   ========================================================= */
.download-category a {
    color: inherit;
}

/* =========================================================
   FOOTER
   SHOW
   ========================================================= */
.site-footer {
    background: linear-gradient(
        to top,
        rgba(5, 25, 55, 0.95),
        rgba(5, 25, 55, 0.7)
    );
    border-top: 1px solid rgba(120,180,255,0.3);
}

.footer-inner {
    max-width: 1300px;
    margin: auto;
    padding: 15px 20px;
    font-size: 13px;
    text-align: center;
}

.site-footer {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
}

.site-footer .footer-links a {
    margin: 0 1rem;
    color: #00d4d4;           /* türkis */
    font-weight: 500;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #ffd84d;           /* gelb */
    text-decoration: underline;
}

/* =========================================================
   DJANGO ADMIN – LISTENANSICHT (bleibt erhalten)
   ========================================================= */
.change-list td.field-title a {
    color: #1ecad3 !important;
    font-weight: 600;
}

.change-list td.field-title a:hover {
    color: #6feaf0 !important;
}

.change-list td.field-category {
    color: #f2c94c !important;
    font-weight: 600;
}

.change-list td.field-page {
    color: #7fbcd2;
}

.section-title {
    color: #40e0d0;
}

.category-title {
    color: #ffd84d;
}

.doc-list a,
.link-list a {
    color: #5fd3ff;
}

.doc-meta {
    font-size: 0.9em;
    color: #bcdcff;
}


.empty-state {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px dashed rgba(255,255,255,0.25);
    text-align: center;
    color: #9fdde6;
    font-style: italic;
}

.astro-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.astro-gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}


/* =========================================================
   ASTRO-PHOTOS AUF SEITEN (Sonne, Mond, etc.)
   ========================================================= */

.astro-gallery {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.astro-gallery figure {
    margin: 0 0 3rem 0;
    text-align: center;
}

.astro-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 160, 200, 0.25);
}

/* Bildtitel / Caption */
.astro-gallery figcaption {
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: #ffd84d;          /* GELB – wie Kategorien */
    letter-spacing: 0.03em;
}

.message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}

.message.success {
    background: #dff0d8;
    color: #2e7d32;
}

.message.error {
    background: #f8d7da;
    color: #842029;
}
/* Kontaktformular zentrieren */
.contact-form,
form {
    max-width: 600px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form {
    max-width: 600px;
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #999;
    border-radius: 4px;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    margin-top: 1rem;
}
