body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #000;
    color: #fff;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

header nav {
    display: flex;
    gap: 1rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.hidden {
        position: absolute; /* Убирает элемент из потока документа */
        left: -9999px; /* Перемещает элемент за пределы экрана */
        white-space: nowrap; /* Убирает переносы, чтобы элемент был на одной строке */
        overflow: hidden; /* Убирает прокрутку */
        width: 1px; /* Минимальная ширина */
        height: 1px; /* Минимальная высота */
        clip: rect(1px, 1px, 1px, 1px); /* Обрезает элемент для старых браузеров */
        clip-path: inset(50%); /* Поддержка для современных браузеров */
}


.social-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.social-icon img {
    width: 15px; /* Размер иконок социальных сетей */
    height: 15px;
}

.faq-icon {
    position: absolute;
    top: 10px;
    left: 10px; /* Иконки будут слева */
    display: flex; /* Распределение иконок в ряд */
    gap: 10px; /* Расстояние между иконками */
}

.faq-link {
    text-decoration: none; /* Убирает подчеркивание */
}

.faq-link img {
    width: 15px; /* Размер иконок */
    height: 15px;
}



header nav a.active::after {
    content: '';
    position: absolute;
    bottom: -15px; /* Опустим полоску на 15 пикселей */
    left: 0;
    right: 0;
    height: 5px;
    background-color: #fff; /* Белая полоска */
}

.service-name {
    font-weight: 300;
    font-size: 25px;
    /* Другие стили для названия услуги */
}

.city-name {
    font-weight: 300;
    font-size: 25px;
    /* Другие стили для названия города */
}


main {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Добавим, чтобы main занимал все доступное пространство */
}


#map {
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

.map-default {
    background-image: url("https://maps.googleapis.com/maps/api/staticmap?center=Germany&zoom=5&size=640x640&format=webp&scale=1&key=YOUR_API_KEY");
}

.map-city {
    background-image: url("https://maps.googleapis.com/maps/api/staticmap?center={{ city.lat }},{{ city.lng }}&zoom=12&size=640x640&format=webp&scale=1&key=YOUR_API_KEY");
}



body {
    font-family: 'Montserrat', sans-serif;
}

footer {
    background-color: #000;
    color: #fff;
    width: 100%;
    height: 30px; /* Высота футера */
    display: flex;
    align-items: center; /* Центрирование элементов по вертикали */
    justify-content: space-between; /* Расположение элементов по краям */
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: 12px; /* Размер шрифта для футера */
    padding: 0 10px; /* Уменьшение отступов по краям для сдвига значка ближе к левому краю */
}

footer .left-side {
    display: flex;
    align-items: center; /* Центрирование текста и иконки по вертикали */
}

/* Стили для текста и ссылки в футере */
footer .left-side p {
    margin: 0;
    padding-right: 10px; /* Отступ справа от текста */
}

footer .left-side a,
footer .left-side a:visited {  /* Добавлено :visited */
    color: inherit; /* Наследование цвета от родителя */
    text-decoration: none; /* Без подчеркивания по умолчанию */
}

footer .left-side a:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}

footer #kontaktButton {
    color: #fff;
    text-decoration: none;
    font-size: 15px; /* Размер шрифта для кнопки */
    margin-left: 0; /* Уменьшение отступа слева для кнопки */
    margin-right: 15px; /* Увеличение отступа справа от значка контакта */
}

footer #kontaktButton:hover {
    text-decoration: underline;
}

footer #sosButton {
    color: red;
    text-decoration: none;
    font-size: 15px; /* Размер шрифта для кнопки */
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}

footer #sosButton:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    #bookButton {
        margin-bottom: 60px; /* Пространство для кнопки на мобильных устройствах */
    }
}





#leftColumn {
    display: flex;
    flex-direction: column;
    max-width: 400px; /* Ограничим максимальную ширину */
    width: 100%; /* Установим ширину в 100% */
    margin-right: 1rem; /* Добавим отступ справа */
    margin-bottom: 1rem; /* Добавим отступ снизу для карты */
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

form div {
    position: relative;
    margin-bottom: 1rem;
}

form div img {
    position: absolute;
    right: 10px; /* Отступ слева */
    top: 50%;
    transform: translateY(-50%);
    width: 20px; /* Размер иконки */
    height: 20px;
}

.input-group {
    position: relative; /* Родительский элемент должен быть относительно позиционирован */
    margin-bottom: 1rem;
    width: 100%; /* Убедись, что ширина 100% от родителя */
}

.input-group img:first-child {
    position: absolute;
    left: 10px; /* Оставляем отступ слева только для основной иконки */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.clear-icon {
    position: absolute;
    right: 10px; /* Иконка очистки справа */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1; /* Убеждаемся, что иконка видима поверх текста */
}

/* Переопределяем стиль именно для иконки смены направлений */
.reverse-icon {
    position: static; /* Сбрасываем абсолютное позиционирование */
    margin-left: auto; /* Автоматический отступ слева, чтобы иконка была справа */
    margin-right: 0; /* Убираем отступ справа */
    width: 20px;
    height: 20px;
}

input {
    padding: 0.5rem 45px 0.5rem 35px; /* Отступы для размещения иконок */
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.reverse-icon-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: -1px 0; /* Уменьшаем отступы сверху и снизу до 5px */
}

.reverse-icon {
    position: static;
    margin-left: auto;
    margin-right: 0;
    width: 20px;
    height: 20px;
}

.reverse-icon:hover {
    filter: brightness(0.8);
}


.location-link {
    font-size: 0.8rem; /* Размер шрифта меньше */
    color: #007bff; /* Цвет ссылки */
    text-decoration: none; /* Убираем подчеркивание */
    margin: -7px 0 15px; /* Поднимем вверх и добавим отступ снизу */
    display: inline-block; /* Делаем ссылку блочным элементом */
}

.location-link:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
    color: #0056b3; /* Темный цвет при наведении */
}

button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    width: 100%; /* Кнопка теперь будет той же ширины, что и поля ввода */
    box-sizing: border-box;
    margin-top: 1rem; /* Добавим отступ сверху для кнопки "Fahrt buchen?" */
}

button:hover {
    background-color: #444;
}

#routeInfo {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.announcement {
    border: 1px solid #ec4807;
    padding: 10px;
    margin-top: 1rem;
    background-color: #f9f9f9;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #333;
    text-align: center; /* Выравнивание текста по центру */
}

.announcement p {
    margin: 0;
}

.announcement .red-exclamation {
    color: red;
    font-weight: bold;
}

#map {
    height: 350px; /* Уменьшим высоту карты */
    width: 100%;
    margin-bottom: 20px; /* Добавим отступ снизу */
}

/* Добавляем стили для списка такси-компаний */
#leftColumn h3 {
    margin-bottom: 1rem;
}

#leftColumn ul {
    list-style-type: none;
    padding: 0;
}

#leftColumn li {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

@media (min-width: 768px) {
    main {
        flex-direction: row; /* Изменим направление на горизонтальное */
        justify-content: space-between; /* Разделим пространство между элементами */
    }
    header {
        text-align: left;
        align-items: flex-start; /* Выравниваем элементы по левому краю */
    }
    header nav {
        margin-top: 0.5rem; /* Добавим отступ сверху для навигации */
        margin-left: 0; /* Уберем отступ слева */
    }
    #leftColumn {
        margin-right: 1rem; /* Добавим отступ справа */
    }
    #map {
        width: 1500px !important; /* Установим ширину карты */
        height: 730px !important; /* Уменьшим высоту карты */
    }
}
#taxiList {
    list-style-type: none;
    padding: 0;
}

#taxiList li {
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    padding-right: 40px; /* пространство для иконки */
}

#taxiList .firm-name {
    font-weight: bold;
}

#taxiList .city{
    color: grey;
}

#taxiList .phone {
    color: grey;  /* Вы можете изменить цвет на любой другой */
    font-size: 0.9em;  /* Увеличивает размер текста */
}



#taxiList .phone-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

#taxiList .phone-icon img {
    width: 40px;
    height: 40px;
}
#homeLink {
    color: white;
    text-decoration: none;
}

#homeLink:hover {
    color: white;
    text-decoration: none;
}

.promo-firm {
    position: relative; /* Необходимо для абсолютного позиционирования иконки */
    border: 1px solid #ccc;
    padding: 3px 3px;
    margin: 5px 0;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.promo-firm h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.promo-firm p {
    margin: 3px 0;
}

.promo-firm .phone {
    font-weight: bold;
    color: #333;
}

.promo-firm .phone-icon {
    position: absolute; /* Позволяет позиционировать иконку относительно блока */
    top: 50%; /* Центрирование по вертикали */
    right: 10px; /* Отступ справа */
    transform: translateY(-50%); /* Центрирование по вертикали */
    width: 50px; /* Ширина иконки */
    height: 50px; /* Высота иконки */
}

/* Стили для баннера согласия на использование файлов cookie */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f4f4f4;
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex; /* Verwende Flexbox */
    justify-content: center; /* Zentriere die Elemente horizontal */
    align-items: center; /* Zentriere die Elemente vertikal */
    gap: 10px; /* Abstand zwischen den Tasten */
    flex-wrap: wrap; /* Позволяет кнопкам располагаться в две строки на маленьких экранах */
}

#cookieBanner button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    flex: 1 1 auto; /* Кнопки занимают одинаковую ширину */
    max-width: 200px; /* Максимальная ширина для кнопок */
    margin: 5px; /* Добавлен отступ вокруг кнопок */
}

#cookieBanner button#declineCookies {
    background-color: #4f4f4f; /* Dunkelgraue Farbe für die Ablehnungsschaltfläche */
}



/* Стили для страницы Kontakt */
html, body {
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
    margin: 0; /* Убираем внешние отступы */
    padding: 0; /* Убираем внутренние отступы */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

*, *::before, *::after {
    box-sizing: inherit; /* Устанавливаем box-sizing для всех элементов */
}

.kontakt-form-container {
    padding: 2rem;
    width: 700px !important; /* Явно устанавливаем ширину контейнера для десктопа */
    margin: 50px auto; /* Центрируем форму и добавляем отступ сверху */
    background-color: #f9f9f9; /* Добавим легкий фон для формы */
    border-radius: 8px; /* Скруглим углы формы */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Добавим легкую тень */
}

.kontakt-form-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.kontakt-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt-form-container form div {
    display: flex;
    flex-direction: column;
    width: 100%; /* Устанавливаем ширину для div */
}

.kontakt-form-container form label {
    margin-bottom: 0.5rem;
    font-weight: 500; /* Добавим жирность шрифту */
}

.kontakt-form-container form input,
.kontakt-form-container form textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s; /* Плавный переход при наведении */
    width: calc(100% - 1.5rem) !important; /* Устанавливаем ширину полей формы */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

.kontakt-form-container form input:focus,
.kontakt-form-container form textarea:focus {
    border-color: #000; /* Изменение цвета границы при фокусе */
    outline: none;
}

.kontakt-form-container form textarea {
    height: 200px; /* Увеличим высоту текстового поля */
    resize: vertical; /* Разрешаем вертикальное изменение размера */
}

.kontakt-form-container form button {
    padding: 0.75rem;
    font-size: 1rem;
    color: #fff;
    background-color: #e67e22; /* Оранжевый цвет для кнопки */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s; /* Плавный переход при наведении */
    width: calc(100% - 1.5rem) !important; /* Заставим кнопку занимать всю ширину контейнера */
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

.kontakt-form-container form button:hover {
    background-color: #d35400; /* Темный оранжевый цвет при наведении */
}

.kontakt-form-container form button:active {
    background-color: #e67e22; /* Цвет кнопки при клике */
}

.kontakt-form-container form input,
.kontakt-form-container form textarea {
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Добавим легкую тень для полей формы */
}

.kontakt-form-container form input:focus,
.kontakt-form-container form textarea:focus {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Увеличим тень при фокусе */
}

@media (max-width: 768px) {
    .kontakt-form-container {
        max-width: 100%;
        width: 100% !important;
        padding: 1rem;
        margin: 0 auto; /* Центрируем контейнер */
    }

    .kontakt-form-container form textarea {
        height: 150px; /* Уменьшаем высоту текстового поля на мобильных устройствах */
    }
}

@media (min-width: 769px) {
    .half-width {
        display: flex;
        justify-content: space-between;
    }

    .half-width > div {
        width: 48%;
    }
    
.faq-container {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        line-height: 1.6;
    }
    
    .faq-question {
        margin-bottom: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    
    .faq-question p {
        font-size: 1em;
        margin: 0;
    }
    
    @media (max-width: 768px) {
        .faq-container {
            padding: 15px;
        }
    }
    
}

/* Стили для баннера установки приложения */
#install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f4f4f4; /* Цвет фона */
    padding: 15px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex; /* Используем Flexbox */
    justify-content: center; /* Центрируем элементы по горизонтали */
    align-items: center; /* Центрируем элементы по вертикали */
    gap: 10px; /* Расстояние между кнопками */
    flex-wrap: wrap; /* Позволяет кнопкам становиться в две строки на маленьких экранах */
}

#install-banner button {
    padding: 10px 20px;
    background-color: #007bff; /* Синий цвет для кнопок */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    flex: 1 1 auto; /* Кнопки занимают одинаковую ширину */
    max-width: 200px; /* Максимальная ширина для кнопок */
    margin: 5px; /* Отступы вокруг кнопок */
}

#install-banner button#decline-button {
    background-color: #4f4f4f; /* Темно-серый цвет для кнопки "Nein, danke" */
}

.internal-link {
    text-decoration: none; /* Убирает подчеркивание */
    color: black; /* Делает текст черным */
}


h2 {
    font-size: 1.2rem; /* Уменьшение на 10–15% */
}

.styled-link {
    text-decoration: none; /* Убирает стандартное подчёркивание */
    color: inherit; /* Сохраняет цвет, соответствующий основному тексту */
    transition: color 0.2s ease-in-out; /* Плавное изменение цвета */
}

.styled-link:hover {
    color: #007bff; /* Акцент при наведении, например, синий */
    cursor: pointer; /* Указывает, что это ссылка */
}


.seo-text {
    text-align: center; /* Центрируем текст внутри блока */
    font-size: 12px; /* Меньший размер шрифта для SEO-текста */
    color: #6c757d; /* Серый цвет текста */
    line-height: 1.5; /* Увеличиваем межстрочный интервал для удобства чтения */
    margin-top: 20px; /* Отступ сверху */
}


.faq-toc {
    list-style: none; /* Убираем стандартные маркеры списка */
    padding: 0; /* Убираем отступы */
    margin: 1rem 0; /* Добавляем отступы сверху и снизу */
}

.faq-toc li {
    margin-bottom: 1rem; /* Добавляем отступы между элементами списка */
}

.faq-toc a {
    text-decoration: none; /* Убираем подчёркивание */
    color: #007bff; /* Цвет ссылок */
    font-size: 1rem; /* Размер текста */
    font-weight: 500; /* Небольшая "жирность" для акцента */
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

.faq-toc a:hover {
    color: #0056b3; /* Более тёмный синий цвет при наведении */
}

@media (max-width: 768px) {
    #bookButton {
        margin-bottom: 60px; /* Для мобильных устройств */
    }

        }



