/************************************************************
 * Mini-Konfiguration
 * Datei:      /assets/css/styles.css
 * Zweck:      Zentrales Layout + EINHEITLICHE Linkfarben
 * Gültig für: Startseite (index.php), Detailseiten, Länder-
 *             und Regionsseiten im neuen Layout.
 * Design:     Dark-Mode, Akzentfarbe auf Basis Dark-Green.
 ************************************************************/

/*----------------------------------------------------------
  1) Design-Variablen
----------------------------------------------------------*/
:root {
    --az-bg: #050a08;
    --az-bg-soft: #0b1410;
    --az-card-bg: rgba(5, 20, 10, 0.78);
    --az-border-soft: rgba(0, 255, 140, 0.28);
    --az-border-strong: rgba(0, 255, 140, 0.6);

    --az-text: #e8f5ee;
    --az-text-soft: #b6c9c0;
    --az-text-muted: #7d9187;

    --az-accent: #00ff99;
    --az-accent-soft: #00c46a;
    --az-accent-deep: #006400;

    --az-link: #7fffd4;          /* EINHEITLICHE Linkfarbe */
    --az-link-hover: #ffffff;    /* Hover/Fokus */
    --az-link-muted: #9fe7d1;

    --az-danger: #ff6b81;
    --az-radius-lg: 18px;
    --az-radius-xl: 26px;
    --az-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
    --az-shadow-subtle: 0 8px 24px rgba(0, 0, 0, 0.45);

    --az-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                    "Helvetica Neue", Arial, "Verdana", sans-serif;
}

/*----------------------------------------------------------
  2) Globales Reset / Basistypo
----------------------------------------------------------*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--az-font-main);
    background: radial-gradient(circle at top, #0f261a 0, #050a08 50%, #020303 100%);
    color: var(--az-text);
}

/* Scrollbar leicht abdunkeln (nicht kritisch) */
body::-webkit-scrollbar {
    width: 9px;
}
body::-webkit-scrollbar-track {
    background: #020303;
}
body::-webkit-scrollbar-thumb {
    background: #24342b;
    border-radius: 10px;
}

/*----------------------------------------------------------
  3) EINHEITLICHE Links (zentral!)
----------------------------------------------------------*/
a,
a:visited {
    color: var(--az-link);
    text-decoration: none;
    transition: color 0.15s ease, text-decoration-color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus-visible {
    color: var(--az-link-hover);
    text-decoration: underline;
    text-decoration-color: var(--az-link-hover);
    outline: none;
}

a:active {
    color: var(--az-link-hover);
    opacity: 0.9;
}

.page-footer a,
.az-footer a {
    color: var(--az-link);
}

/* Floatbox-Overlays: Links im Overlay ebenfalls angleichen */
.fbOverlay a,
.fbOverlay a:visited {
    color: var(--az-link);
}
.fbOverlay a:hover,
.fbOverlay a:focus-visible {
    color: var(--az-link-hover);
}

/*----------------------------------------------------------
  4) Hilfsklassen
----------------------------------------------------------*/
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*----------------------------------------------------------
  5) Startseite – Shell/Layout
----------------------------------------------------------*/
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at top, rgba(0, 255, 153, 0.16) 0, transparent 42%),
        radial-gradient(circle at bottom, rgba(0, 150, 80, 0.25) 0, transparent 55%),
        radial-gradient(circle at 10% 20%, rgba(0, 255, 200, 0.12) 0, transparent 35%),
        #020504;
    color: var(--az-text);
}

/*----------------------------------------------------------
  6) Header (Logo + Zählung)
----------------------------------------------------------*/
.header-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 5vw;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.65), transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 160, 0.22);
}

.header-left {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.header-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 255, 153, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.45);
    background: radial-gradient(circle, #07341f, #020403);
    flex-shrink: 0;
}
.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-text h1 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f4fff9;
}
.header-count {
    margin: 2px 0 0;
    font-size: 0.9rem;
    color: var(--az-text-soft);
}

/*----------------------------------------------------------
  7) Hero-Bereich (Suchfeld, Logo-Wasserzeichen)
----------------------------------------------------------*/
.hero-shell {
    position: relative;
    padding: 10vh 5vw 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Wasserzeichen im Hero (Startseite) */
.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://img.alltagsziele.de/upload/2025/04/20/20250420095006-3d9fd269.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: min(60vmin, 520px);
    opacity: 0.12;
    filter: grayscale(35%);
    pointer-events: none;
    z-index: 0;
}

.search-shell {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 28px 24px 32px;
    border-radius: var(--az-radius-xl);
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.7), rgba(5, 20, 10, 0.94));
    box-shadow: var(--az-shadow-soft);
    border: 1px solid var(--az-border-soft);
}

/* Suchformular */
.search-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
}

.search-form input[type="text"],
.search-form input[type="search"],
.search-form input[name="q"] {
    flex: 1 1 auto;
    padding: 14px 14px;
    font-size: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(161, 214, 190, 0.7);
    background: rgba(4, 12, 8, 0.85);
    color: var(--az-text);
    outline: none;
}
.search-form input::placeholder {
    color: var(--az-text-muted);
}

.search-form input:focus-visible {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.45);
}

.search-form button {
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--az-accent), var(--az-accent-soft));
    color: #020403;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 255, 160, 0.4);
}
.search-form button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
.search-form button:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 255, 160, 0.3);
}

/* Scroll-Hinweis */
.scroll-hint {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}

.scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.compass-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 170, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
    background: radial-gradient(circle, rgba(0, 255, 153, 0.3), rgba(0, 40, 25, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-arrow {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 12px solid #ffffff;
    animation: compass-bounce 1.7s infinite;
}

@keyframes compass-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.9; }
    50% { transform: translateY(6px); opacity: 0.6; }
}

/*----------------------------------------------------------
  8) Ergebnisbereich (Zufallsziele + letzte Updates)
----------------------------------------------------------*/
.results-shell {
    padding: 22px 5vw 12px;
}

.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

/* 2 Spalten Desktop, 1 Spalte Mobil */
@media (min-width: 720px) {
    .result-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1180px) {
    .result-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.result-item {
    margin: 0;
}

.result-link {
    display: flex;
    flex-direction: row;
    gap: 14px;
    padding: 10px;
    border-radius: var(--az-radius-lg);
    background: var(--az-card-bg);
    border: 1px solid rgba(0, 255, 140, 0.18);
    box-shadow: var(--az-shadow-subtle);
}

.result-link:hover {
    border-color: var(--az-border-strong);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7);
}

.result-thumb {
    flex: 0 0 112px;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}
.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--az-text-muted);
}

.result-name span {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--az-text);
}

.result-desc {
    font-size: 0.85rem;
    color: var(--az-text-soft);
}

/* Leerer Zustand */
.results-empty {
    padding: 18px 14px;
    border-radius: var(--az-radius-lg);
    background: rgba(5, 20, 10, 0.85);
    border: 1px dashed rgba(0, 255, 140, 0.35);
    text-align: center;
    color: var(--az-text-soft);
}

/*----------------------------------------------------------
  9) Filter-Bereich (Dropdowns)
----------------------------------------------------------*/
.filters-shell {
    padding: 8px 5vw 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Obere Kategorie-Leiste */
.filter-row-top {
    display: flex;
    justify-content: center;
}

.filter-block {
    width: 100%;
    max-width: 620px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(150, 210, 185, 0.7);
    background: linear-gradient(90deg, rgba(6, 18, 13, 0.95), rgba(4, 14, 11, 0.95));
    color: var(--az-text);
    font-size: 0.94rem;
}

/* Untere Leiste: Kategorie in Land */
.filter-row-main {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.filter-inline-text {
    color: var(--az-text-soft);
    font-size: 0.9rem;
}

.filter-land-group {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.filter-land-inner {
    flex: 1 1 auto;
}

.filter-go-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 153, 0.6);
    background: radial-gradient(circle, rgba(0, 255, 153, 0.4), rgba(0, 20, 12, 0.98));
    padding: 6px 10px;
    cursor: pointer;
}
.filter-go-btn img {
    display: block;
    height: 20px;
    width: auto;
}

/* Mobile Anpassungen */
@media (max-width: 640px) {
    .search-shell {
        padding: 20px 16px 24px;
    }
    .search-form {
        flex-direction: column;
    }
    .filter-row-main {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-land-group {
        width: 100%;
        justify-content: space-between;
    }
}

/*----------------------------------------------------------
  10) Footer
----------------------------------------------------------*/
.page-footer {
    margin-top: auto;
    padding: 14px 5vw 18px;
    border-top: 1px solid rgba(0, 255, 140, 0.2);
    background: radial-gradient(circle at bottom, rgba(0, 30, 18, 0.9), rgba(0, 0, 0, 0.96));
    text-align: center;
    font-size: 0.88rem;
    color: var(--az-text-soft);
}
.page-footer a {
    margin: 0 2px;
}

/*----------------------------------------------------------
  11) Detail-/Länder-/Regionsseiten – Grundlayout
----------------------------------------------------------*/
.az-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(0, 255, 153, 0.18) 0, transparent 40%),
        radial-gradient(circle at bottom, rgba(0, 120, 60, 0.3) 0, transparent 55%),
        #020403;
    color: var(--az-text);
    overflow-x: hidden;
}

/* zentrales Logo-Wasserzeichen – Seitenmitte */
.az-page::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(580px, 80vw);
    height: min(580px, 80vw);
    transform: translate(-50%, -50%);
    background-image: url("https://img.alltagsziele.de/upload/2025/04/20/20250420095006-3d9fd269.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.13;
    filter: grayscale(40%);
    pointer-events: none;
    z-index: 0;
}

.az-header,
.az-shell,
.az-footer {
    position: relative;
    z-index: 1;
}

/* Header */
.az-header {
    padding: 12px 5vw;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.az-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.az-logo-wrap img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 153, 0.7);
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.5);
    background: radial-gradient(circle, #07301f, #010201);
}

.az-brand-title {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--az-text-soft);
}

/* Shell */
.az-shell {
    padding: 6px 5vw 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/*----------------------------------------------------------
  12) Karten / Cards / Sektionen
----------------------------------------------------------*/
.az-card {
    margin: 10px 0 18px;
    padding: 14px 16px 16px;
    border-radius: var(--az-radius-xl);
    background: var(--az-card-bg);
    border: 1px solid var(--az-border-soft);
    box-shadow: var(--az-shadow-subtle);
}

.az-section-title {
    margin: 0 0 10px;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--az-text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.az-section-content {
    font-size: 0.95rem;
    color: var(--az-text);
}

/* Adresse & Kontakt Layout */
.az-addr-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.az-addr-left {
    flex: 1 1 260px;
}
.az-addr-right {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Meta-Infos */
.az-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.94rem;
    margin: 2px 0;
}
.az-meta-label {
    font-weight: 600;
    margin-right: 2px;
}

.icon {
    width: 18px;
    height: 18px;
}

/* QR */
.az-qr-small {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

/* Kleintext */
.az-meta-small {
    font-size: 0.8rem;
    color: var(--az-text-muted);
}

/*----------------------------------------------------------
  13) HERO-Bereich Detailseite
----------------------------------------------------------*/
.az-hero {
    margin-bottom: 12px;
}
.az-hero-main {
    position: relative;
}

.az-hero-image-wrap {
    position: relative;
    display: block;
    border-radius: var(--az-radius-xl);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 153, 0.25);
    box-shadow: var(--az-shadow-soft);
    background: #000;
}
.az-hero-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.az-hero-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.az-hero-title-main {
    font-size: 1.25rem;
    font-weight: 700;
}
.az-hero-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}
.az-hero-rating img {
    height: 28px;
    width: auto;
}

/* Bildrechte */
.az-hero-rights {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--az-text-muted);
}

/*----------------------------------------------------------
  14) Navigation (QR-Codes + Textlinks)
----------------------------------------------------------*/
.az-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}
.az-nav-item {
    text-align: center;
}
.az-nav-item img {
    max-width: 100%;
    border-radius: 14px;
    background: #000;
}
.az-nav-item-text {
    margin-top: 4px;
    font-size: 0.85rem;
}

/*----------------------------------------------------------
  15) Karte (Leaflet)
----------------------------------------------------------*/
#map {
    margin-top: 10px;
    width: 100%;
    height: 280px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 153, 0.3);
}

/*----------------------------------------------------------
  16) Bewertung
----------------------------------------------------------*/
.az-rating-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.az-rating-current {
    font-size: 0.95rem;
}
.az-rating-current img {
    height: 26px;
    width: auto;
    vertical-align: middle;
    margin-left: 6px;
}

.az-rating-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.93rem;
}

.az-rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}
.az-rating-stars input[type="radio"] {
    display: none;
}
.az-rating-stars label {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 153, 0.3);
    font-size: 0.8rem;
}
.az-rating-stars input[type="radio"]:checked + label {
    background: rgba(0, 255, 153, 0.15);
    border-color: var(--az-accent);
}

.az-rating-submit {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, var(--az-accent), var(--az-accent-soft));
    color: #020403;
    cursor: pointer;
}
.az-rating-submit:hover {
    filter: brightness(1.04);
}

.az-rating-msg {
    font-size: 0.84rem;
    color: var(--az-text-soft);
}

/*----------------------------------------------------------
  17) Galerie & Video
----------------------------------------------------------*/
.az-gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.az-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}
.az-gallery-grid img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.az-video-thumb img {
    width: 100%;
    border-radius: 18px;
}

/*----------------------------------------------------------
  18) Persönliche Meinung
----------------------------------------------------------*/
.az-opinion {
    display: flex;
    gap: 12px;
}
.az-author {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.az-opinion-text {
    font-size: 0.95rem;
}
.az-opinion-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--az-text-soft);
}
.az-opinion-meta img {
    height: 22px;
    width: auto;
}

/*----------------------------------------------------------
  19) Footer (Detailseiten)
----------------------------------------------------------*/
.az-footer {
    margin-top: 10px;
    padding: 10px 5vw 18px;
    border-top: 1px solid rgba(0, 255, 140, 0.2);
    background: radial-gradient(circle at bottom, rgba(0, 30, 18, 0.9), rgba(0, 0, 0, 0.96));
    font-size: 0.86rem;
}
.az-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.az-footer-links {
    text-align: center;
}
.az-footer-links a {
    margin: 0 2px;
}

/*----------------------------------------------------------
  20) Responsives Fine-Tuning
----------------------------------------------------------*/
@media (max-width: 768px) {
    .az-addr-layout {
        flex-direction: column;
        align-items: flex-start;
    }
    .az-addr-right {
        align-items: flex-start;
    }
    .az-hero-title-main {
        font-size: 1.05rem;
    }
    .az-shell {
        padding-inline: 4vw;
    }
}
