/* =========================================================================
   Max Headroom – Dark Theme Stylesheet
   ========================================================================= */

/* --- Reset & Base ------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
        Arial, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

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

/* --- Börsen-Ticker ------------------------------------------------------- */
.ticker-wrap {
    position: sticky;
    top: 0;
    z-index: 101;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    height: 30px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
    will-change: transform;
}

.ticker:hover {
    animation-play-state: paused;
}

.ticker-inner {
    display: flex;
    flex-shrink: 0;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-right: 1px solid #21262d;
    flex-shrink: 0;
}

.ticker-name {
    color: #8b949e;
    font-weight: 600;
}

.ticker-price {
    color: #f0f6fc;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ticker-change {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ticker-up {
    color: #3fb950;
}

.ticker-down {
    color: #f85149;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Header rutscht unter die Ticker */
.site-header {
    top: 58px;
}

/* --- Wetter-Ticker ------------------------------------------------------ */
.ticker-wrap-weather {
    height: 28px;
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.ticker-weather {
    animation: ticker-weather 90s linear infinite;
}

.ticker-weather:hover {
    animation-play-state: paused;
}

.ticker-item-weather {
    font-size: 0.82rem;
    padding: 0 0.75rem;
    border-right: 1px solid #30363d;
}

.ticker-emoji {
    font-size: 0.95rem;
    line-height: 1;
}

.ticker-temp {
    color: #79c0ff;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@keyframes ticker-weather {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- Container --------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Header ------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 0.75rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: #f0f6fc;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #58a6ff;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #c9d1d9;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    color: #58a6ff;
    text-decoration: none;
    border-bottom-color: #58a6ff;
}

/* --- Main -------------------------------------------------------------- */
.site-main {
    flex: 1;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* --- Page Header ------------------------------------------------------- */
.page-header {
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

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

/* --- Hero Section ------------------------------------------------------ */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f0f6fc;
    margin-bottom: 0.25rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #58a6ff;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-text {
    max-width: 680px;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
    color: #c9d1d9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: #238636;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2ea043;
    color: #fff;
    box-shadow: 0 0 10px rgba(46, 160, 67, 0.4);
}

.btn-secondary {
    background-color: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.btn-secondary:hover {
    background-color: #30363d;
    color: #f0f6fc;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.2);
}

/* --- Feature Cards (Landing) ------------------------------------------- */
.features h2 {
    font-size: 1.6rem;
    color: #f0f6fc;
    margin-bottom: 1.25rem;
    text-align: center;
}

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

.feature-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: #f0f6fc;
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #8b949e;
}

/* --- Services Grid ----------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.service-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 0.75rem;
}

.service-card h2 {
    font-size: 1.2rem;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #8b949e;
    line-height: 1.6;
}

/* --- Service-Status Badge ----------------------------------------------- */
.service-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    float: right;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.service-status--aktiv {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.service-status--geplant {
    background: rgba(210, 153, 34, 0.15);
    color: #d29922;
    border: 1px solid rgba(210, 153, 34, 0.3);
}

/* --- Service-Feature-Liste ---------------------------------------------- */
.service-features {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    color: #b1bac4;
    line-height: 1.5;
}

.service-features li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #58a6ff;
    font-weight: 700;
}

/* --- Geplante Services --------------------------------------------------- */
.service-card--planned {
    opacity: 0.75;
}

.service-card--planned:hover {
    border-color: #d29922;
    opacity: 1;
}

/* --- Blog -------------------------------------------------------------- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-post {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.blog-post:hover {
    border-color: #58a6ff;
}

.blog-post h2 {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.blog-post h2 a {
    color: #f0f6fc;
}

.blog-post h2 a:hover {
    color: #58a6ff;
}

.blog-post time {
    display: block;
    font-size: 0.85rem;
    color: #8b949e;
    margin-bottom: 0.75rem;
}

.blog-post p {
    color: #c9d1d9;
    margin-bottom: 0.75rem;
}

.read-more {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- About & Contact --------------------------------------------------- */
.about-content h2,
.contact-content h2 {
    font-size: 1.4rem;
    color: #f0f6fc;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.about-content p,
.contact-content p {
    margin-bottom: 1rem;
    max-width: 720px;
}

.contact-info {
    margin-bottom: 1.5rem;
}

/* --- Contact Form ------------------------------------------------------ */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #c9d1d9;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    max-width: 520px;
    padding: 0.6rem 0.75rem;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.15);
}

/* --- Footer ------------------------------------------------------------ */
.site-footer {
    background-color: #161b22;
    border-top: 1px solid #30363d;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #8b949e;
}

.footer-inner a {
    color: #8b949e;
}

.footer-inner a:hover {
    color: #58a6ff;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        gap: 0.6rem;
    }

    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .feature-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================================
   USA-Reise 2026
   ========================================================================= */

/* --- Übersicht: City Grid ---------------------------------------------- */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.city-card {
    display: flex;
    flex-direction: column;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.city-card:hover {
    border-color: #58a6ff;
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.city-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.city-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.city-card:hover .city-card-image img {
    transform: scale(1.05);
}

.city-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.city-card-body h2 {
    font-size: 1.3rem;
    color: #f0f6fc;
    margin-bottom: 0.3rem;
}

.city-card-body > p {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 0.5rem;
}

.city-card-desc {
    font-size: 0.88rem;
    color: #c9d1d9;
    line-height: 1.5;
    flex: 1;
}

.city-card-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #58a6ff;
}

/* --- City Detail ------------------------------------------------------- */

.back-link {
    margin-bottom: 0.5rem;
}

.back-link a {
    font-weight: 600;
    color: #8b949e;
}

.back-link a:hover {
    color: #58a6ff;
}

.bottom-back {
    margin-top: 2rem;
}

.city-hero-image {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.city-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.city-section {
    margin-bottom: 2.5rem;
}

.city-section h2 {
    font-size: 1.5rem;
    color: #f0f6fc;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #21262d;
}

/* --- TOP 5 List -------------------------------------------------------- */

.top-list {
    list-style: none;
    counter-reset: top-counter;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-item {
    counter-increment: top-counter;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    padding-left: 3.5rem;
}

.top-item::before {
    content: counter(top-counter);
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 28px;
    height: 28px;
    background-color: #238636;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-item strong {
    display: block;
    font-size: 1.05rem;
    color: #f0f6fc;
    margin-bottom: 0.3rem;
}

.top-item p {
    font-size: 0.95rem;
    color: #c9d1d9;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.map-link {
    font-size: 0.88rem;
    font-weight: 500;
}

/* --- Food Grid --------------------------------------------------------- */

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.food-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease;
}

.food-card:hover {
    border-color: #58a6ff;
}

.food-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.food-card-header h3 {
    font-size: 1.05rem;
    color: #f0f6fc;
    margin: 0;
}

.food-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.food-type-koreanisch { background-color: #0d1117; color: #58a6ff; border: 1px solid #58a6ff; }
.food-type-chinesisch  { background-color: #0d1117; color: #d29922; border: 1px solid #d29922; }
.food-type-steak       { background-color: #0d1117; color: #f85149; border: 1px solid #f85149; }
.food-type-fisch       { background-color: #0d1117; color: #3fb950; border: 1px solid #3fb950; }
.food-type-mexikanisch { background-color: #0d1117; color: #db6d28; border: 1px solid #db6d28; }

.food-card-body p {
    font-size: 0.88rem;
    color: #c9d1d9;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.food-address {
    color: #8b949e !important;
}

.food-price strong {
    color: #f0f6fc;
}

.food-stars strong {
    color: #f0f6fc;
}

.star-icons {
    font-size: 0.85rem;
    margin-left: 0.25rem;
    letter-spacing: 1px;
}

.food-card-body .map-link {
    display: inline-block;
    margin-top: 0.4rem;
}

/* --- Hinweise ---------------------------------------------------------- */

.city-notes {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
}

.city-notes h2 {
    border-bottom-color: #30363d;
    margin-bottom: 0.75rem;
}

.city-notes p {
    font-size: 0.95rem;
    color: #c9d1d9;
    line-height: 1.7;
}

/* --- Responsive USA ---------------------------------------------------- */

@media (max-width: 640px) {
    .city-hero-image {
        height: 240px;
    }

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

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

    .food-card-header {
        flex-direction: column;
    }
}