
/* Ronnys Taxi - Frontend Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f1723; /* deep charcoal */
    --primary-light: #1b2430;
    --primary-dark: #07090b;
    --accent: #c59d4a; /* warm gold */
    --accent-2: #b8862b;
    --muted: #9aa3ad;
    --success: #27ae60;
    --danger: #c33a2b;
    --bg-1: #fbfbfc;
    --bg-2: linear-gradient(180deg,#f7f7f8 0%, #f1f3f5 100%);
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(2,6,23,0.12);
    --shadow-lg: 0 18px 48px rgba(2,6,23,0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-1);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR */
.navbar {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid rgba(15,23,35,0.04);
    box-shadow: 0 6px 20px rgba(2,6,23,0.06);
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(6px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.navbar-brand h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.25s, transform 0.25s;
    position: relative;
    opacity: 0.9;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.maintenance-admin-notice {
    background: #fff4c9;
    border-bottom: 1px solid #f0d979;
    color: #5f4a00;
    font-weight: 600;
    text-align: center;
    padding: 10px 14px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f8 40%, #eef2f6 100%);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 54px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.5px;
    animation: fadeUp 0.8s ease both;
}

.hero-content p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s 0.15s ease both;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 6px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    text-align: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(90deg,var(--primary-dark),var(--primary-light));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(2,6,23,0.12);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

/* FEATURES */
.features {
    padding: 80px 20px;
    background: var(--gray-50);
}

.features h2 {
    font-size: 36px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* GUEST APP */
.guest-app-section {
    padding: 75px 20px;
    background: var(--bg-2);
}

.guest-app-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 50px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.guest-app-copy {
    max-width: 650px;
}

.guest-app-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.guest-app-copy h2 {
    margin-bottom: 12px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 38px;
    line-height: 1.15;
}

.guest-app-copy p {
    color: rgba(255,255,255,0.82);
    font-size: 17px;
}

.guest-app-download {
    flex: 0 0 min(330px, 34vw);
}

.guest-app-download a {
    display: block;
    transition: transform 0.2s, filter 0.2s;
}

.guest-app-download a:hover,
.guest-app-download a:focus-visible {
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.guest-app-download img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-card {
    background: linear-gradient(180deg,#ffffff,#fbfbfd);
    padding: 36px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1), box-shadow 0.36s;
    border-top: 4px solid rgba(197,157,74,0.14);
    transform: translateY(0);
    opacity: 0;
    animation: cardIn 0.8s ease forwards;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(-0.5deg);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 44px;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(90deg,var(--accent),var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.7;
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e0e7f1 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-header p {
    font-size: 16px;
    color: var(--gray-600);
}

/* PAGE CONTENT */
.page-content {
    padding: 60px 20px;
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-wrapper h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.booking-form, .calculator-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group p.muted {
    font-size: 14px;
    color: var(--muted);
    margin-top: 8px;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    border: 1px solid rgba(15, 23, 35, 0.12);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 16px 28px rgba(2, 6, 23, 0.12);
}

.autocomplete-item {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-bottom: 1px solid rgba(15, 23, 35, 0.08);
    background: transparent;
    color: var(--primary);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
    background: rgba(197, 157, 74, 0.12);
    outline: none;
}

.autocomplete-list .autocomplete-item:last-child {
    border-bottom: none;
}

input.autocomplete-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.pricing-info {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
}

.pricing-info p {
    margin: 8px 0;
    color: var(--gray-700);
    font-weight: 500;
}

/* ALERTS */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #27ae60;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #e74c3c;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #3498db;
}

/* CONTACT GRID */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--primary);
}

/* PARTNERS */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.partner-card {
    background: linear-gradient(180deg,#ffffff,#fbfbfd);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(2,6,23,0.06);
    transition: transform 0.36s, box-shadow 0.36s;
    border-top: 4px solid rgba(197,157,74,0.12);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.partner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.partner-card h3 {
    font-size: 18px;
    color: var(--primary);
    padding: 20px 20px 10px;
    font-weight: 600;
}

.partner-card p {
    padding: 0 20px 15px;
    color: var(--gray-600);
    font-size: 14px;
}

.partner-info {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-link {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 4px;
    transition: background 0.3s;
}

.partner-link:hover {
    background: var(--accent);
    color: var(--white);
}

/* LEGAL CONTENT */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
}

.legal-content h2 {
    font-size: 20px;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content h3 {
    font-size: 16px;
    color: var(--gray-700);
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--gray-700);
    line-height: 1.8;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    display: block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-payments li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-payments i {
    width: 20px;
    color: var(--accent);
    text-align: center;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
    color: var(--primary-dark);
    background: var(--accent);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar .container {
        height: auto;
        min-height: 62px;
        padding-top: 10px;
        padding-bottom: 10px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .navbar-brand h1 {
        font-size: 20px;
        line-height: 1.1;
    }

    .navbar-brand img {
        height: 38px !important;
        width: auto;
    }

    .navbar-menu {
        display: none;
        gap: 12px;
        font-size: 13px;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .features h2,
    .cta-section h2,
    .page-header h1 {
        font-size: 28px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid,
    .contact-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .navbar-toggle {
        display: inline-flex;
        margin-left: auto;
        width: 40px;
        height: 40px;
    }

    .guest-app-section {
        padding: 50px 20px;
    }

    .guest-app-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 32px 24px;
    }

    .guest-app-copy h2 {
        font-size: 30px;
    }

    .guest-app-download {
        flex: none;
        width: min(100%, 300px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .form-wrapper {
        padding: 25px;
    }
}

/* Mobile menu open state */
.navbar-menu.open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    background: rgba(255,255,255,0.98);
    padding: 14px;
    z-index: 9998;
    box-shadow: 0 20px 60px rgba(2,6,23,0.12);
    border: 1px solid rgba(15,23,35,0.06);
    border-radius: 12px;
    gap: 10px;
}

.navbar-menu.open a {
    padding: 4px 0;
}

.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,35,0.06);
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    position: relative;
    z-index: 10001;
}

@media (min-width: 769px) {
    .navbar-toggle { display: none; }
}

/* Muss nach der allgemeinen .navbar-toggle-Regel stehen, damit die mobile
   Anzeige nicht durch deren `display: none` wieder überschrieben wird. */
@media (max-width: 768px) {
    .navbar-toggle {
        display: inline-flex;
    }
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Decorative moving taxi in hero */
.hero::before {
    content: '🚕';
    position: absolute;
    font-size: 48px;
    right: -60px;
    top: 20%;
    transform: rotate(-6deg);
    opacity: 0.12;
    animation: taxiMove 10s linear infinite;
    pointer-events: none;
}

@keyframes taxiMove {
    0% { right: -80px; transform: translateX(0) rotate(-6deg); }
    50% { right: 100%; transform: translateX(-40vw) rotate(-4deg); }
    100% { right: -80px; transform: translateX(0) rotate(-6deg); }
}

/* subtle focus outlines */
input:focus, textarea:focus, select:focus, button:focus {
    box-shadow: 0 6px 22px rgba(197,157,74,0.08);
    outline: none;
}

/* small utility */
.muted { color: var(--muted); }

/* Cookie banner */
.cookie-banner { display:none; position:fixed; left:16px; right:16px; bottom:24px; background:rgba(15,23,35,0.98); color:#fff; padding:18px 18px; border-radius:10px; box-shadow:0 12px 40px rgba(2,6,23,0.3); z-index:20050; }
.cookie-inner { display:flex; gap:16px; align-items:center; justify-content:space-between; max-width:1200px; margin:0 auto; }
.cookie-text { flex:1; color:rgba(255,255,255,0.9); }
.cookie-actions { display:flex; gap:10px; }
.cookie-close { position:absolute; top:8px; right:10px; background:transparent; border:none; color:#fff; font-size:20px; cursor:pointer; }
.cookie-banner .btn-primary { background: linear-gradient(90deg,var(--accent),var(--accent-2)); color:#111; padding:10px 16px; border-radius:6px; }
.cookie-banner .btn-secondary { background:transparent; color:#fff; border:1px solid rgba(255,255,255,0.12); padding:10px 14px; border-radius:6px; }

@media (max-width: 768px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 14px 14px 0 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
        box-shadow: 0 -10px 36px rgba(2,6,23,0.35);
    }

    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-text {
        font-size: 14px;
        line-height: 1.45;
        padding-right: 28px;
    }

    .cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-banner .btn-primary,
    .cookie-banner .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 42px;
    }

    .cookie-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: rgba(255,255,255,0.08);
    }
}
