/************************************************************
 * Mini-Konfiguration
 * Datei:      /assets/css/styles.css
 * Projekt:    neu.passgenerator.de
 * Basis:      Farben + Verläufe 1:1 aus alltagsziele.de
 * Ziel:       Generator-UI + Content-Card sauber responsiv
 ************************************************************/

/*----------------------------------------------------------
  1) Design-Variablen (1:1)
----------------------------------------------------------*/
: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;
    --az-link-hover: #ffffff;
    --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) Global Reset / Basistypo (1:1)
----------------------------------------------------------*/
*,
*::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 */
body::-webkit-scrollbar { width: 9px; }
body::-webkit-scrollbar-track { background: #020303; }
body::-webkit-scrollbar-thumb { background: #24342b; border-radius: 10px; }

/*----------------------------------------------------------
  3) EINHEITLICHE Links (1:1)
----------------------------------------------------------*/
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; }

/* Hilfsklasse */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/*----------------------------------------------------------
  4) Shell / Hintergrund (1:1)
----------------------------------------------------------*/
.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);
}

/*----------------------------------------------------------
  5) Header (rechts oben entfernt)
----------------------------------------------------------*/
.header-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    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.2rem, 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);
}

/*----------------------------------------------------------
  6) Hero + Card (Wasserzeichen angepasst)
----------------------------------------------------------*/
.hero-shell {
    position: relative;
    padding: 10vh 5vw 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.pg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://img.dataurl.de/upload/2025/07/05/20250705192159-952d7d93.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(760px, 100%);
    margin: 0 auto;
    padding: 28px 24px 28px;
    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);
}

/*----------------------------------------------------------
  7) Passgenerator UI
----------------------------------------------------------*/
.pg-topline { margin-bottom: 14px; }
.pg-title {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f4fff9;
}
.pg-subtitle {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: var(--az-text-soft);
    line-height: 1.45;
}

.pg-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.pg-opt {
    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);
    padding: 12px;
}

.pg-opt-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.pg-opt-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--az-text-soft);
}
.pg-opt-meta {
    font-size: 0.85rem;
    color: var(--az-text-muted);
}

.pg-input,
.pg-select {
    width: 100%;
    padding: 12px 14px;
    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;
    font-size: 1rem;
}

.pg-input:focus-visible,
.pg-select:focus-visible {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.45);
}

.pg-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(255,255,255,.78) 50%),
        linear-gradient(135deg, rgba(255,255,255,.78) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}
.pg-select option { color: #111; }

.pg-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pg-hint {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--az-text-muted);
    line-height: 1.35;
}

.pg-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pg-seg input { display: none; }
.pg-seg label {
    border-radius: 999px;
    border: 1px solid rgba(161, 214, 190, 0.7);
    background: rgba(4, 12, 8, 0.85);
    color: var(--az-text);
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}
.pg-seg input:checked + label {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.35);
}

.pg-actions {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}
.pg-btn {
    padding: 14px 18px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.95rem;
    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);
}
.pg-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.pg-btn:active { transform: translateY(0); box-shadow: 0 6px 18px rgba(0, 255, 160, 0.3); }
.pg-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.pg-status {
    min-height: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--az-text-soft);
}

.pg-output {
    margin-top: 12px;
    display: grid;
    gap: 12px;
}
.pg-outbox {
    border-radius: var(--az-radius-lg);
    background: rgba(5, 20, 10, 0.85);
    border: 1px solid rgba(0, 255, 140, 0.22);
    box-shadow: var(--az-shadow-subtle);
    padding: 12px;
}
.pg-outhead {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.pg-outlabel {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--az-text-soft);
}
.pg-outmeta {
    font-size: 0.85rem;
    color: var(--az-text-muted);
}
.pg-outrow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.pg-copy {
    padding: 12px 16px;
    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-weight: 700;
    cursor: pointer;
}
.pg-copy:hover {
    border-color: var(--az-border-strong);
    box-shadow: 0 0 0 2px rgba(0, 255, 153, 0.25);
}

/* Scroll hint */
.scroll-hint { margin-top: 18px; 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) Content Bereich (unten, mittig)
----------------------------------------------------------*/
.pg-main { padding: 16px 0 0; }
.pg-content-shell {
    padding: 10px 5vw 28px;
    display: flex;
    justify-content: center;
}
.pg-content-card {
    width: min(980px, 100%);
    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);
    padding: 20px 18px;
}
.pg-content-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--az-text-soft);
}

.pg-content-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.pg-cbox {
    border-radius: var(--az-radius-lg);
    background: rgba(5, 20, 10, 0.85);
    border: 1px solid rgba(0, 255, 140, 0.18);
    box-shadow: var(--az-shadow-subtle);
    padding: 14px 14px;
}
.pg-cbox h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--az-text-soft);
}
.pg-cbox p {
    margin: 0;
    color: var(--az-text-soft);
    line-height: 1.55;
    font-size: 0.95rem;
}
.pg-cbox ul {
    margin: 0;
    padding-left: 18px;
    color: var(--az-text-soft);
    line-height: 1.55;
    font-size: 0.95rem;
}
.pg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.pg-links a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 153, 0.35);
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.15);
}

/*----------------------------------------------------------
  9) Footer (Links sichtbar)
----------------------------------------------------------*/
.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; }

/*----------------------------------------------------------
  10) Responsive
----------------------------------------------------------*/
@media (min-width: 860px) {
    .pg-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pg-outrow  { grid-template-columns: 1fr 170px; align-items: stretch; }
    .pg-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .hero-shell { padding: 7vh 5vw 6vh; }
    .search-shell { padding: 20px 16px 20px; }
    .pg-subtitle { font-size: 0.9rem; }
}
