:root {
    /* Brand palette */
    --primary-blue: hsl(210, 74%, 35%);
    --primary-blue-medium: hsl(210, 74%, 50%);
    --primary-blue-light: hsl(210, 74%, 65%);
    --primary-blue-lighter: hsl(210, 74%, 88%);
    --primary-bright-blue: hsl(197, 94%, 45%);
    --primary-bright-blue-dark: hsl(197, 94%, 25%);
    --primary-bright-blue-gray: hsl(197, 35%, 65%);
    --primary-orange: hsl(32, 76%, 50%);
    --primary-orange-darker: hsl(32, 76%, 35%);

    /* States */
    --success-green: hsl(180, 21%, 51%);
    --error-red: hsl(9, 52%, 47%);

    /* Neutrals */
    --surface-0: hsl(0, 0%, 100%);
    --surface-50: hsl(0, 0%, 97%);
    --text-muted: #6b6b6b;
    --border: hsl(0, 0%, 86%);
    --border-muted: #dee2e6;
    --border-subtle: #ededed;

    --default-border-radius: 10px;

    /* Shared focus ring. Lived in packing_item.css, so it resolved to nothing on every page that
       does not load that stylesheet. */
    --focus-ring: 0 0 0 2px rgba(100, 170, 250, 0.3);
}


/* Carousel / md-gallery */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--default-border-radius);
  background: #000;
}

.carousel-track {
  display: flex;
  transition: transform 0.35s ease;
}

.carousel-slide {
  min-width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: hsla(0, 0%, 0%, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}

.carousel-button:hover {
  background: hsla(0, 0%, 0%, 0.7);
}

.carousel-button.prev { left: 0.6rem; }
.carousel-button.next { right: 0.6rem; }

.pagination-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
  background: hsla(0, 0%, 0%, 0.45);
}

.pagination-dots .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: hsla(0, 0%, 100%, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.pagination-dots .dot.active {
  background: #fff;
}

.calendar-popover {
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 20rem;
  background: #fff;
  border-radius: .5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  width: 100%;
}

.calendar-popover:has(.calendar) {
  display: block;
}

.calendar-popover.is-open { display: block; }

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.8rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-sans-ui);
    text-wrap: pretty;
}

* {
    box-sizing: border-box;
}

dialog[open] {
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: var(--default-border-radius);
}

dialog::backdrop {
    background-color: hsla(0, 0%, 0%, 0.549);
}

dialog[open] .modal_header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--primary-blue);
    color: white;
    font-weight: bold;
    border-top-left-radius: var(--default-border-radius);
    border-top-right-radius: var(--default-border-radius);
}

dialog[open] .modal_header.danger {
    background-color: var(--error-red);
}

dialog[open] .modal_content {
    padding: 1rem 2.5rem;
    max-width: 675px;
    margin: auto;
    width: 100%;
}

dialog[open] .modal_header h2 {
    font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.375rem);
    margin: 0.75rem 0;
}

body {
    font-family: var(--font-sans-body);
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-muted);
    font-size: clamp(1rem, 0.875rem + 0.3vw, 1.1rem);
}

.turbo-native nav {
    display: none;
}

remote-modal-container dialog {
    padding: 0;
    overflow: hidden;
    border: none;
}

.card {
    box-shadow:
        0 0.5em 1em -0.125em #0a0a0a1a,
        0 0 0 1px #0a0a0a05;
    background-color: white;
    border-radius: var(--default-border-radius);
}

.card.padding {
    padding: 0.25rem 1.5rem;
}

.card .journey-page-title {
    margin: 1rem;
}

.card_header {
    background-color: var(--primary-blue);
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: var(--default-border-radius);
    border-top-right-radius: var(--default-border-radius);
    gap: 0.5rem;
}

.card_header__title {
    flex: 1;
    text-align: center;
}

/* Place the close button to the far right while title stays centered */
.card_header form[method="dialog"] {
    margin: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.booked {
    color: var(--success-green);
}

.text-error {
    color: var(--error-red);
}

.text-center {
    text-align: center;
}

.text-centered {
    text-align: center;
}

.text-primary {
    color: var(--primary-blue);
}

.text-bold {
    font-weight: bold;
}

.text-black {
    color: black;
}

.text-primary-light {
    color: var(--primary-bright-blue);
}

.text-large {
    font-size: 2rem;
}

.card_header.error {
    background-color: var(--error-red);
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.is-grouped {
    display: flex;
    gap: 0.5rem;
}

dialog[open] {
    overflow: visible; /* = kein Scroll-Container mehr   */
}

#sidebar-places {
    display: contents;
}

#places:has(ul),
[id^="places-"]:has(ul) {
    position: relative;
    display: block;
    z-index: 1000;
}

#places ul,
[id^="places-"] ul {
    list-style: none;
    list-style-position: outside;
    list-style-position: inside;
    padding: 0;
    position: absolute;
    margin: 0;
    background: white;
    z-index: 1001;
    width: 100%;
    border: 1px solid var(--primary-blue-light);
    border-radius: 10px;
}

#places ul li,
[id^="places-"] ul li {
    padding: 0.5rem;
}

#places ul li:hover,
[id^="places-"] ul li:hover {
    background-color: var(--primary-blue-lighter);
    cursor: pointer;
}

/* .field:not(:last-child) {
    margin-bottom: 0.95rem;
} */

.field > label + input {
    margin-top: 0.5rem;
}

dialog .label {
    font-weight: 600;
    color: #666;
}

.card_content {
    padding: 1rem 2.5rem;
}

.card_header form[method="dialog"] button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    border-radius: 50%;
    padding: 4px;
    background: var(--error-red);
    color: white;
    cursor: pointer;
}

.card_header form[method="dialog"] button:hover {
    background: white;
    color: var(--error-red);
}

/* red header: invert so the button stays visible */
.card_header.error form[method="dialog"] button {
    background: white;
    color: var(--error-red);
}

.card_header.error form[method="dialog"] button:hover {
    background: var(--error-red);
    color: white;
}

.is-h1 {
    font-size: clamp(1.25rem, 1.125rem + 0.4vw, 1.375rem);
}

#journey-planner-content h1:not(trix-editor h1) {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

a {
    color: inherit;
    text-decoration: none;
}

img.o-cover {
    object-fit: cover;
}

img.o-center {
    object-position: center;
}

.country-tag {
    max-width: 100%;
    gap: 0.25rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
    border: 2px solid var(--primary-blue);
    letter-spacing: 0.35px;
    font-size: 0.85rem;
    align-items: center;
    background-color: var(--surface-50);
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    padding-right: 0.4rem;
    padding-left: 0.5rem;
    white-space: nowrap;
    border-radius: 290486px;
    gap: 7px;
}

.country-tag .delete-button {
    display: flex;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    padding: 0px;
    height: 18px;
    align-content: center;
    justify-content: center;
    cursor: pointer;
}
.country-tag .delete-button:hover {
    background: var(--error-red);
}

.shourney-time {
    color: var(--primary-bright-blue);
}

.shourney-heading {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important; /* Legacy syntax */
    clip-path: inset(50%) !important; /* Modern browsers */
    white-space: nowrap !important; /* Prevent line-breaks */
    border: 0 !important;
}

/* Lucide icons. Inline SVG sits on the text baseline by default, which reads low next to text;
   the nudge matches what icon fonts did. No width/height here on purpose — CSS beats SVG
   presentation attributes and would silently override the tag's `size`. */
.lucide,
.brand-icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.site-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.12em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.input-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-icon .icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    color: var(--primary-bright-blue);
}

.input-icon input {
    padding-left: 2.75rem !important;
}

/* The field already carries a clock icon on the left; Chrome draws its own picker button right
   after the value, which cannot be moved to the right edge (margin-left/::-webkit-datetime-edit
   sizing are both ignored). Hiding it leaves keyboard and arrow-key entry on desktop, and mobile
   still opens the native picker on tap. */
.input-icon input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
}

.input-addon {
    position: relative;
    display: inline-block;
    max-width: 20ch;
}

.input-addon::after {
    --border-width: 1px;
    content: attr(data-symbol);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - calc(var(--border-width) * 2));
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background-color: #f0f0f0;
    border-radius: 0.25rem;
    pointer-events: none;
    overflow: hidden;
    border: var(--border-width) solid hsl(0deg, 0%, 86%);
}

.input-addon input {
    padding-left: 2.5rem;
}

.input-addon.input-addon__right input {
    padding-left: 0.8rem;
}

.empty-disclaimer {
    color: gray;
    font-style: italic;
    text-align: center;
    text-wrap: balance;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
}

.md-contact-form {
    margin-block: 1rem;
}

/* Impressum Styles */
.impressum-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: var(--font-sans-body);
    color: #333;
    line-height: 1.6;
}

.impressum-header {
    margin-bottom: 2rem;
    text-align: center;
}

.impressum-title {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.impressum-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.impressum-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.impressum-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.impressum-section-title {
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-sans-ui);
}

.impressum-address {
    font-style: normal;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.impressum-address p {
    margin: 0.25rem 0;
}

.impressum-legal-details {
    margin-bottom: 1.5rem;
}

.impressum-legal-details p {
    margin: 0.5rem 0;
}

.impressum-representation {
    margin-bottom: 1.5rem;
}

.impressum-representation p {
    margin: 0.5rem 0;
}

.impressum-contact p {
    margin: 0.5rem 0;
}

.impressum-email {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.impressum-email:hover {
    color: var(--primary-bright-blue);
    text-decoration: underline;
}

.impressum-tax p {
    margin: 0.5rem 0;
}

.impressum-dispute p {
    margin: 0.5rem 0;
}

.impressum-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.impressum-link:hover {
    color: var(--primary-bright-blue);
    text-decoration: underline;
}

.impressum-liability p,
.impressum-copyright p {
    margin: 0.5rem 0;
    text-align: justify;
}

.impressum-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .impressum-container {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .impressum-title {
        font-size: 1.75rem;
    }

    .impressum-section-title {
        font-size: 1.25rem;
    }

    .impressum-liability p,
    .impressum-copyright p {
        text-align: left;
    }
}

/* Datenschutz Styles */
.datenschutz-container {
    max-width: 860px;
    margin: 2rem auto 3rem;
    padding: 2rem;
    font-family: var(--font-sans-body);
    line-height: 1.65;
    color: #333;
}

.datenschutz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.datenschutz-title {
    font-size: 2.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.datenschutz-subtitle {
    color: var(--text-muted);
}

.datenschutz-toc {
    background: #f6f9fc;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.datenschutz-toc-list {
    margin: 0;
    padding-left: 1.5rem;
}

.datenschutz-toc-list li {
    margin: 0.4rem 0;
    font-weight: 500;
}

.datenschutz-toc-list a {
    color: var(--primary-blue);
    text-decoration: none;
}

.datenschutz-toc-list a:hover {
    text-decoration: underline;
}

.datenschutz-section {
    margin-bottom: 2.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.datenschutz-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.datenschutz-section-title {
    font-family: var(--font-sans-ui);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.datenschutz-subsection {
    margin-bottom: 1.5rem;
}

.datenschutz-subsection h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-family: var(--font-sans-ui);
}

.datenschutz-address {
    font-style: normal;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}

.datenschutz-section p + p {
    margin-top: 0.9rem;
}

.datenschutz-section ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.datenschutz-section ul li {
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .datenschutz-container {
        padding: 1.5rem;
        margin: 1rem auto 2rem;
    }

    .datenschutz-title {
        font-size: 1.75rem;
    }

    .datenschutz-section-title {
        font-size: 1.35rem;
    }
}
