/* style.css */

/* Basislayout */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #101827 0%, #020617 50%, #000 100%);
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ---------- SITE HEADER / HERO ---------- */

.site-header {
    position: relative;
    padding-bottom: 1rem;
    color: #f9fafb;
    background: linear-gradient(135deg, #020617 0%, #0b1120 45%, #111827 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    overflow: hidden;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Logo / Brand */
.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 20% 0%, #22d3ee, #0ea5e9 40%, #1d4ed8 100%);
    box-shadow: 0 10px 35px rgba(56, 189, 248, 0.35);
    font-size: 1.4rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: #e5e7eb;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.main-nav a:hover {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.6);
    transform: translateY(-1px);
}

.main-nav .nav-admin {
    border-color: rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.02));
}

/* Hero-Bereich */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 0.5rem auto 1rem;
    padding: 1.25rem 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    z-index: 1;
}

.hero--compact {
    padding-bottom: 1.25rem;
}

.hero-inner {
    max-width: 640px;
}

.hero-inner h1 {
    margin: 0 0 0.35rem;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
}

.hero-inner p {
    margin: 0;
    font-size: 0.95rem;
    color: #9ca3af;
}

/* cineastischer Glow-Blob */
.hero-glow {
    position: absolute;
    inset: auto -40% -80px auto;
    width: 420px;
    height: 420px;
    background:
      radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.35), transparent 55%),
      radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.25), transparent 60%),
      radial-gradient(circle at 40% 80%, rgba(129, 140, 248, 0.32), transparent 60%);
    opacity: 0.6;
    filter: blur(2px);
    pointer-events: none;
}

/* ---------- GLOBAL MAIN / CONTAINERS ---------- */

main {
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    padding: 0 1.5rem 2.5rem;
}

/* Karten-Seite (index.php) */
#map {
    width: 100%;
    height: 70vh;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.7);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #020617;
}

.below-map {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
}

.dest-summary {
    flex: 2;
    min-width: 260px;
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.24), rgba(15, 23, 42, 0.96));
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(45, 212, 191, 0.28);
}

.dest-summary h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #ecfeff;
}

.dest-summary ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
}

.dest-summary li {
    margin: 0.2rem 0;
}

.dest-summary span {
    color: #9ca3af;
    font-size: 0.8rem;
}

.legend-box {
    flex: 1;
    min-width: 220px;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.24), rgba(15, 23, 42, 0.96));
    padding: 0.9rem 1rem;
    border-radius: 16px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.35);
    font-size: 0.9rem;
    color: #cbd5f5;
}

.legend-box h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #eff6ff;
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem 2rem;
    }
    #map {
        height: 60vh;
    }
    .site-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* ---------- BLOG-ÜBERSICHT ---------- */

.blog-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.blog-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.post-list {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.98));
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(129, 140, 248, 0.45);
}

.post-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.post-card h2 a {
    text-decoration: none;
    color: #e5e7eb;
}

.post-meta {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e5e7eb;
}

.read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ---------- EINZELANSICHT ---------- */

.article-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.article-wrapper h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-content {
    background: radial-gradient(circle at top left, rgba(8, 47, 73, 0.28), rgba(15, 23, 42, 0.98));
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.85);
    line-height: 1.65;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* Video-Embed */
.video-embed {
    margin: 1.5rem 0;
}

.video-embed-inner {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: #020617;
}

.video-embed-inner iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Galerie */
.gallery-heading {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.post-gallery figure {
    margin: 0;
}

.post-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.post-gallery figcaption {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    text-align: center;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-overlay.visible {
    display: flex;
}

.lightbox-inner {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-inner img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-btn {
    pointer-events: all;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 0.5rem;
}

.lightbox-close-hint {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #e5e7eb;
}

/* ---------- ADMIN: admin_locations.php ---------- */

.admin-main {
    max-width: 1200px;
    margin: 1.5rem auto 2rem;
    padding: 0 1.5rem 2rem;
}

.msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.msg.success {
    background: rgba(22, 163, 74, 0.13);
    color: #bbf7d0;
    border: 1px solid rgba(22, 163, 74, 0.6);
}

.msg.error {
    background: rgba(185, 28, 28, 0.16);
    color: #fecaca;
    border: 1px solid rgba(220, 38, 38, 0.7);
}

.hint {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.bulk-actions {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.bulk-actions button {
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-save-all {
    background: #22c55e;
    color: #022c22;
}

.btn-geocode-all {
    background: #eab308;
    color: #1f2937;
}

.btn-save-all:hover {
    background: #16a34a;
}

.btn-geocode-all:hover {
    background: #ca8a04;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.9);
}

th, td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.8);
    vertical-align: middle;
}

th {
    background: rgba(15, 23, 42, 0.95);
    text-align: left;
    color: #e5e7eb;
}

tr:last-child td {
    border-bottom: none;
}

td.slug {
    font-family: monospace;
    font-size: 0.85rem;
    color: #9ca3af;
}

td.actions {
    white-space: nowrap;
}

input[type="text"] {
    width: 90px;
    padding: 0.25rem 0.35rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

input[type="text"].query-input {
    width: 180px;
}

button.btn-save,
button.btn-geocode {
    border: none;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 0.25rem;
}

.btn-save {
    background: #3b82f6;
    color: #eff6ff;
}

.btn-geocode {
    background: #facc15;
    color: #1f2937;
}

.btn-save:hover {
    background: #2563eb;
}

.btn-geocode:hover {
    background: #eab308;
}

/* ---------- FOOTER ---------- */

.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 1);
    background: radial-gradient(circle at top, #020617 0%, #000 75%);
    padding: 1rem 0 1.5rem;
    color: #9ca3af;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.site-footer-tagline {
    color: #e5e7eb;
}
