/*
Theme Name: TaxiTransferTo City
Description: Custom theme for TaxiTransferTo City
Version: 1.0
Author: TaxiTransferTo
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}


/* Typography - Minimal Spacing */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 0.75rem;
    margin-top: 0;
    line-height: 1.6;
}

/* ============================================
   HEADER STYLES
   ============================================ */
header,
.modern-header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-top {
    padding: 16px 0;
}

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

.logo-modern {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1a1a1a;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle svg {
    width: 24px;
    height: 24px;
}

.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.logo-domain {
    color: #666666;
    font-weight: 400;
}

.nav-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #666666;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.nav-item:hover {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

.nav-item.active {
    background-color: #000000;
    color: #ffffff;
}

.user-menu {
    display: flex;
    align-items: center;
}

.menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}

.menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.menu-close:hover {
    background-color: #f5f5f5;
}

.menu-nav {
    padding: 20px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.menu-link:hover {
    background-color: #f9f9f9;
}

.menu-link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-link-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   FOOTER STYLES - Minimal Spacing, Sticky Footer
   ============================================ */
.modern-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 0 20px;
    margin-top: auto;
    flex-shrink: 0;
}

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

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 0;
}

.footer-main * {
    line-height: 1.3;
}

.footer-column {
    height: auto;
    min-height: 0;
}

.footer-column * {
    height: auto;
    min-height: 0;
}

.footer-main p,
.footer-main li,
.footer-main a {
    margin-top: 4px;
    margin-bottom: 4px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Leere Zeilen entfernen */
.footer-main br + br,
.footer-list br + br,
.footer-copyright br + br {
    display: none;
}

.footer-main p:empty,
.footer-list p:empty,
.footer-copyright p:empty {
    display: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Abstände zwischen Listenelementen */
.footer-list li + li {
    margin-top: 4px;
}

.footer-list li {
    margin-bottom: 4px;
    margin-top: 4px;
    line-height: 1.3;
    padding: 0;
    height: auto;
    min-height: 0;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-copyright p {
    color: #999999;
    font-size: 13px;
    margin: 4px 0;
    padding: 0;
    line-height: 1.4;
    height: auto;
    min-height: 0;
}

.footer-copyright p:empty {
    display: none;
}

.footer-right {
    flex: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    row-gap: 0;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.3;
}

.footer-list {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}

.footer-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list p {
    margin: 4px 0;
    padding: 0;
    line-height: 1.3;
}

.footer-list li:empty {
    display: none;
}

.footer-list a {
    color: #cccccc;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: block;
    margin: 4px 0;
    padding: 0;
    height: auto;
    min-height: 0;
}

.footer-list a:hover {
    color: #ffffff;
}

/* ============================================
   POSTS & PAGES - Minimal Spacing
   ============================================ */
.post,
.page {
    margin-bottom: 20px;
}

.post-title,
.page-title {
    margin-bottom: 12px;
    margin-top: 0;
}

.post-content,
.page-content {
    line-height: 1.6;
    margin-top: 0;
}

.post-content img,
.page-content img {
    margin: 12px 0;
    border-radius: 8px;
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */
.homepage-main {
    padding: 30px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Buchungsformular Text-Ausrichtung */
.homepage-main .chbs-booking-form,
.homepage-main .chbs-main {
    text-align: left;
}

.homepage-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 0;
}

.homepage-content {
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 0;
    margin-top: 0;
}

.homepage-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    margin-top: 0;
    margin-bottom: 0;
}

/* ============================================
   BOOKING FORM STYLES
   ============================================ */
.homepage-main .chbs-booking-form,
.homepage-main .chbs-main,
.homepage-main [class*="chbs"] {
    max-width: 100%;
    margin: 0 auto;
}

/* Buchungsformular Container */
.homepage-main .chbs-booking-form-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}


/* Responsive Anpassungen für Buchungsformular */
@media (max-width: 768px) {
    .homepage-main .chbs-booking-form,
    .homepage-main .chbs-main {
        padding: 0;
    }
    
    .homepage-main .chbs-booking-form-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - DESKTOP (> 1024px)
   ============================================ */
/* Desktop: Standard-Styles sind bereits oben definiert */

/* ============================================
   RESPONSIVE DESIGN - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Typography */
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.625rem;
    }
    
    h4 {
        font-size: 1.375rem;
    }
    
    body {
        font-size: 15px;
    }
    
    /* Container */
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    /* Main Content */
    main {
        padding: 40px 30px;
        max-width: 960px;
    }
    
    /* Homepage Tablet */
    .homepage-main {
        padding: 40px 30px;
        max-width: 700px;
    }
    
    .homepage-title {
        font-size: 32px;
    }
    
    .homepage-content,
    .homepage-subtitle {
        font-size: 17px;
    }
    
    /* Header */
    .header-top {
        padding: 14px 0;
    }
    
    .header-inner {
        gap: 16px;
    }
    
    .logo-name {
        font-size: 18px;
    }
    
    .logo-circle {
        width: 36px;
        height: 36px;
    }
    
    .logo-circle svg {
        width: 20px;
        height: 20px;
    }
    
    .nav-modern {
        gap: 6px;
    }
    
    .nav-item {
        padding: 6px 14px;
        font-size: 14px;
    }
    
    .menu-icon {
        width: 30px;
        height: 30px;
    }
    
    /* Footer */
    .footer-container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .footer-main {
        gap: 25px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .footer-list a {
        font-size: 13px;
    }
    
    .footer-copyright p {
        font-size: 12px;
    }
    
    .footer-social {
        gap: 10px;
        margin-bottom: 6px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Footer Abstände Tablet */
    .footer-list li {
        margin-bottom: 5px;
    }
    
    .footer-list li + li {
        margin-top: 5px;
    }
    
    /* Menu Panel */
    .menu-panel {
        width: 300px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (< 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.875rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    h2 {
        font-size: 1.625rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.375rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    /* Container */
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Main Content */
    main {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    /* Homepage Mobile */
    .homepage-main {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .homepage-title {
        font-size: 28px;
    }
    
    .homepage-content,
    .homepage-subtitle {
        font-size: 16px;
    }
    
    /* Header */
    .header-top {
        padding: 12px 0;
    }
    
    .header-inner {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .logo-modern {
        flex: 0 0 auto;
    }
    
    .logo-name {
        font-size: 16px;
    }
    
    .logo-circle {
        width: 32px;
        height: 32px;
    }
    
    .logo-circle svg {
        width: 18px;
        height: 18px;
    }
    
    .logo-link {
        gap: 10px;
    }
    
    /* Navigation - Hidden on Mobile, shown in menu */
    .nav-modern {
        display: none !important;
    }
    
    .user-menu {
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .menu-icon {
        width: 28px;
        height: 28px;
    }
    
    .menu-icon span {
        height: 2px;
    }
    
    /* Menu Panel Mobile */
    .menu-panel {
        width: 85%;
        max-width: 320px;
    }
    
    .menu-header {
        padding: 16px;
    }
    
    .menu-close {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }
    
    .menu-nav {
        padding: 16px 0;
    }
    
    .menu-link {
        padding: 14px 16px;
        font-size: 15px;
        gap: 14px;
    }
    
    .menu-link-icon {
        width: 22px;
        height: 22px;
    }
    
    .menu-link-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Footer Mobile */
    .footer-container {
        padding: 0 20px;
    }
    
    .modern-footer {
        padding: 24px 0 16px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .footer-left {
        width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .footer-copyright p {
        font-size: 12px;
        margin: 0;
    }
    
    .footer-right {
        width: 100%;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-list {
        margin: 0;
        padding: 0;
    }
    
    .footer-list li {
        margin-bottom: 6px;
        margin-top: 0;
    }
    
    .footer-list li + li {
        margin-top: 6px;
    }
    
    .footer-list a {
        font-size: 13px;
        margin: 0;
    }
    
    /* Footer Mobile Verbesserungen */
    .footer-main {
        padding-bottom: 0;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
    
    /* Posts & Pages Mobile */
    .post,
    .page {
        margin-bottom: 24px;
    }
    
    .post-title,
    .page-title {
        margin-bottom: 16px;
    }
    
    .post-content,
    .page-content {
        line-height: 1.7;
    }
    
    .post-content img,
    .page-content img {
        margin: 16px 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (< 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.625rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    body {
        font-size: 14px;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Main Content */
    main {
        padding: 20px 16px;
    }
    
    /* Homepage Small Mobile */
    .homepage-main {
        padding: 20px 16px;
    }
    
    .homepage-title {
        font-size: 24px;
    }
    
    .homepage-content,
    .homepage-subtitle {
        font-size: 15px;
    }
    
    /* Header */
    .header-top {
        padding: 10px 0;
    }
    
    .header-inner {
        gap: 10px;
    }
    
    .logo-name {
        font-size: 14px;
    }
    
    .logo-circle {
        width: 28px;
        height: 28px;
    }
    
    .logo-circle svg {
        width: 16px;
        height: 16px;
    }
    
    .logo-link {
        gap: 8px;
    }
    
    .menu-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Menu Panel Small Mobile */
    .menu-panel {
        width: 90%;
        max-width: 280px;
    }
    
    .menu-link {
        padding: 12px 14px;
        font-size: 14px;
        gap: 12px;
    }
    
    /* Footer Small Mobile */
    .footer-container {
        padding: 0 16px;
    }
    
    .modern-footer {
        padding: 20px 0 14px;
    }
    
    .footer-main {
        gap: 20px;
    }
    
    .footer-social {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
    
    .footer-copyright p {
        font-size: 11px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .footer-column h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-list a {
        font-size: 12px;
    }
    
    .footer-list li {
        margin-bottom: 4px;
    }
    
    .footer-list li + li {
        margin-top: 4px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - LARGE DESKTOP (> 1440px)
   ============================================ */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    main {
        max-width: 1400px;
    }
    
    .footer-container {
        max-width: 1400px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - LANDSCAPE ORIENTATION
   ============================================ */
@media (max-width: 1024px) and (orientation: landscape) {
    .header-top {
        padding: 10px 0;
    }
    
    .modern-footer {
        padding: 20px 0 16px;
    }
    
    main {
        padding: 20px;
    }
    
    .homepage-main {
        padding: 20px;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Größere Touch-Targets für Mobile */
    .nav-item {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-link {
        min-height: 48px;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .footer-list a {
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    
    /* Entferne Hover-Effekte auf Touch-Geräten */
    .nav-item:hover {
        background-color: transparent;
    }
    
    .menu-close:hover {
        background-color: transparent;
    }
    
    .menu-link:hover {
        background-color: transparent;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .modern-header,
    .nav-modern,
    .user-menu,
    .menu-overlay,
    .modern-footer {
        display: none !important;
    }
    
    main {
        padding: 0;
        max-width: 100%;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-circle svg,
    .social-link svg,
    .menu-link-icon svg {
        /* Optimiert für Retina-Displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Kann später für Dark Mode verwendet werden */
    /* body {
        background-color: #1a1a1a;
        color: #ffffff;
    } */
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */
/* Focus States für bessere Tastatur-Navigation */
.nav-item:focus,
.menu-link:focus,
.social-link:focus,
.footer-list a:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.menu-icon:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to Content Link für Screen Reader */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
}

/* ============================================
   ANIMATION REDUCTION (Accessibility)
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
