/*
Theme Name: Taxi Engelmann Rostock
Description: Responsive Startseite für Taxi Engelmann mit WordPress-Website-Editor und Formular für Fahrtanfragen.
Version: 1.0.27
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: taxi-engelmann
*/
:root { --te-ink: #172538; --te-cream: #f8f6f0; --te-yellow: #ffd44e; --te-border: #dedad1; --te-muted: #4b5563; }
.te-partner-card, .te-partner-intro { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.te-partner-card { margin-block: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--te-border); border-radius: 1rem; background: #fff; }
.te-partner-card > *, .te-partner-intro > * { min-width: 0; margin-block-start: 0 !important; }
.te-partner-logo { margin: 0; }
.te-partner-logo img { display: block; width: 100%; max-width: 160px; height: auto; object-fit: contain; }
.te-partner-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-block: .4rem .8rem; }
.te-partner-card .te-eyebrow { color: var(--te-muted); }
.te-partner-intro { margin-block: 2rem; }
.te-partner-website { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .te-partner-card, .te-partner-intro { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .te-partner-logo img { max-width: 120px; }
  .te-partner-card .wp-block-button, .te-partner-card .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
}
.te-wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto !important; }
.te-header, .te-hero, .te-cards, .te-book-grid, .te-footer-grid { display: grid; align-items: center; }
.te-header { grid-template-columns: 1fr auto auto; gap: clamp(1rem, 3.5vw, 3.5rem); padding-block: .45rem; }
.te-header > *, .te-hero > *, .te-cards > *, .te-book-grid > *, .te-footer-grid > *, .te-nav > * { margin-block-start: 0 !important; }
.te-logo { width: 280px; max-width: 100%; margin: 0; }
.te-logo a, .te-logo picture, .te-logo img { display: block; }
.te-logo img { width: 100%; height: auto; }
/* Trim the supplied logos' transparent vertical margins without shrinking the mark. */
.te-logo picture { aspect-ratio: 2048 / 520; overflow: hidden; }
.te-logo picture img { transform: translateY(-12.02%); }
.te-nav a { text-decoration: none; color: inherit; }
.te-nav { display: flex; gap: 1.6rem; align-items: center; }
.te-nav p { margin-block-end: 0; }
.te-nav a { display: inline-block; padding-block: .55rem; font-size: .9rem; font-weight: 650; }
.te-nav a:hover { text-decoration: underline; }
.te-hero { grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4.5vw, 4.75rem); padding-block: clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--te-border); }
.te-eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
.te-main h1, .te-main h2, .te-main h3, .te-footer h2 { font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.te-main h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.12; margin-block-start: .65rem; }
.te-main h2, .te-footer h2 { font-size: clamp(1.85rem, 4vw, 3rem); margin-block-start: .65rem; }
.te-main h3 { font-size: 1.38rem; letter-spacing: -.027em; }
.te-lead { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.3; }
.te-hero-copy > p:not(.te-eyebrow):not(.te-lead) { color: var(--te-muted); max-width: 39ch; }
.te-hero-copy .wp-block-buttons { margin-block-start: 1.55rem; }
.te-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; border-radius: 1.35rem; }
.te-hero-photo figcaption { font-size: .82rem; text-align: left; color: var(--te-muted); }
/* Full-width fleet image below the start-page introduction. */
.te-hero.te-hero-panorama { grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.te-hero-panorama .te-hero-copy { max-width: 900px; min-width: 0; }
.te-hero-panorama .te-hero-copy > p:not(.te-eyebrow):not(.te-lead) { max-width: 70ch; }
.te-hero-panorama .te-hero-photo { width: 100%; margin-inline: 0; margin-block-end: 0; }
.te-hero-panorama .te-hero-photo img { aspect-ratio: 2.65 / 1; object-position: center 58%; }
@media (max-width: 700px) {
  .te-hero-panorama .te-hero-photo img { aspect-ratio: auto; height: auto; border-radius: .85rem; }
}
.te-header .wp-block-button__link, .te-main .wp-block-button__link, .te-mobile-call .wp-block-button__link, .te-form button {
  display: inline-block; border: 1px solid transparent; border-radius: .65rem; padding: .68rem 1rem; color: var(--te-ink);
  background: var(--te-yellow); font: inherit; font-weight: 750; font-size: .9rem; text-decoration: none; cursor: pointer;
}
.te-main .te-secondary .wp-block-button__link { background: transparent; border-color: #8b939d; }
.te-header .wp-block-button__link:hover, .te-main .wp-block-button__link:hover, .te-form button:hover { background: #ffe286; }
.te-main .te-secondary .wp-block-button__link:hover { background: #eeebe2; }
:focus-visible { outline: 3px solid #2866a0; outline-offset: 4px; }
.te-section { padding-block: clamp(2.4rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.te-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: .85rem; margin-block-start: 1.45rem !important; }
.te-cards.te-cards-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.te-cards-five > .te-card { grid-column: span 2; }
.te-cards-five > .te-card:nth-last-child(-n+2) { grid-column: span 3; }
.te-card { display: flex; flex-direction: column; padding: clamp(1rem, 2vw, 1.55rem); border: 1px solid var(--te-border); border-radius: 1rem; background: #fff; }
.te-card > * { margin-block: 0; }
.te-card > * + * { margin-block-start: .8rem; }
.te-card > p:not(.te-card-number):not(.te-card-link) { color: var(--te-muted); font-size: .93rem; }
.te-card-number { align-self: flex-start; background: #fff0b9; padding: .28rem .55rem; border-radius: .38rem; font-size: .76rem; font-weight: 800; }
.te-card .te-card-link { margin-block-start: auto; padding-block-start: .95rem; font-size: .87rem; font-weight: 750; }
.te-card-link a { color: inherit; text-underline-offset: .2em; }
.te-book { background: var(--te-ink); color: white; }
.te-book-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: clamp(1.25rem, 5vw, 5.5rem); }
.te-book-copy .te-eyebrow, .te-footer .te-eyebrow { color: var(--te-yellow); }
.te-form { background: white; color: var(--te-ink); padding: clamp(1rem, 3vw, 1.8rem); border-radius: 1rem; }
.te-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.te-form label { display: grid; gap: .24rem; font-weight: 680; font-size: .86rem; }
.te-form input:not([type=checkbox]), .te-form select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; color: inherit; background: white; border: 1px solid #828a96; border-radius: .45rem; padding: .55rem; }
.te-form .te-check { display: flex; align-items: center; }
.te-form .te-check input { width: 1.2rem; height: 1.2rem; accent-color: var(--te-ink); }
.te-form .te-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.te-form .te-privacy-note { margin-block: .85rem; font-size: .8rem; color: var(--te-muted); }
.te-form .te-privacy-note a { color: inherit; }
.te-form .te-notice { border-left: 4px solid #986300; background: #fff5d6; padding: .75rem; margin-block: 0 1rem; }
.te-form .te-notice-success { border-color: #25754b; background: #edf8f1; }
.te-intro { max-width: 66ch; color: var(--te-muted); }
.te-about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.25rem; }
.te-main .te-about-actions .te-secondary .wp-block-button__link { color: var(--te-ink); border-color: var(--te-ink); }
@media (max-width: 700px) {
  .te-about-actions { flex-direction: column; align-items: stretch; }
  .te-about-actions > .wp-block-button, .te-about-actions .wp-block-button__link { width: 100%; box-sizing: border-box; }
  .te-about-actions .wp-block-button__link { display: block; text-align: center; }
}
.te-faq { border-top: 1px solid var(--te-border); }
.te-faq details { max-width: 50rem; border-bottom: 1px solid var(--te-border); padding-block: .65rem; }
.te-faq summary { cursor: pointer; font-weight: 720; padding-block: .35rem; }
.te-footer { color: white; background: var(--te-ink); padding-block: 3rem; }
.te-footer a { color: inherit; text-underline-offset: .2em; }
.te-footer-grid { grid-template-columns: 1.15fr 1fr auto; align-items: start; gap: 1.5rem; }
.te-footer h2 { font-size: 1.55rem; }
.te-footer-phone { font-size: 1.45rem; font-weight: 760; }
.te-footer-address p, .te-footer-contact p { margin-block-end: 0; }
.te-footer-contact a { overflow-wrap: anywhere; }
.te-mobile-call { display: none; }
@media (max-width: 960px) {
  .te-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-cards.te-cards-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .te-cards-five > .te-card, .te-cards-five > .te-card:nth-last-child(-n+2) { grid-column: auto; }
  .te-cards-five > .te-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .te-wrap { width: calc(100% - 2rem); }
  .te-header { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding-block: .7rem; }
  .te-logo { width: 160px; }
  .te-header > .wp-block-buttons { display: none; }
  .te-nav { gap: .6rem; flex-wrap: wrap; }
  .te-nav a { font-size: .77rem; }
  .te-hero, .te-book-grid, .te-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .te-hero-photo img { aspect-ratio: auto; }
  .te-footer { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .te-mobile-call { display: block; position: fixed; inset: auto 0 0; z-index: 10; background: var(--te-ink); padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); }
  .te-mobile-call .wp-block-button, .te-mobile-call .wp-block-button__link { width: 100%; box-sizing: border-box; }
}
@media (max-width: 420px) {
  .te-header { grid-template-columns: minmax(0, 1fr); }
  .te-nav { gap: 1rem; }
  .te-cards, .te-form-grid { grid-template-columns: minmax(0, 1fr); }
  .te-cards.te-cards-five { grid-template-columns: minmax(0, 1fr); }
}

.te-whatsapp { margin-block-start: 1rem; }
.te-whatsapp-link { display: inline-block; background: #146c46; color: #fff; border-radius: .65rem; padding: .68rem 1rem; font-size: .9rem; font-weight: 750; text-decoration: none; }
.te-whatsapp-link:hover { background: #0e5335; color: #fff; }
.te-whatsapp-note { font-size: .8rem; line-height: 1.5; max-width: 49ch; margin-block: .5rem 0; }

/* Separate callback and conditional ride forms. */
.te-book-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.te-book-copy { max-width: 65ch; }
.te-request-forms { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; gap: 1.25rem; }
.te-request-forms.te-request-picker-ready { grid-template-columns: minmax(0, 1fr); }
.te-request-choices { display: flex; flex-wrap: wrap; gap: .75rem; }
.te-request-forms [hidden] { display: none !important; }
.te-request-choices button, .te-request-close { font: inherit; font-weight: 750; cursor: pointer; border: 2px solid var(--te-yellow); border-radius: .65rem; padding: .8rem 1.1rem; background: var(--te-yellow); color: var(--te-ink); }
.te-request-choices button:hover { background: #ffe286; }
.te-request-choices button[aria-expanded="true"] { background: transparent; color: var(--te-yellow); }
.te-request-choices button:focus-visible, .te-request-close:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.te-request-panel { min-width: 0; }
.te-request-panel > .te-form { margin: 0; }
.te-request-panel[data-te-request-panel="rueckruf"] { max-width: 620px; }
.te-request-close { display: block; margin-block-start: .75rem; padding: .5rem .8rem; background: transparent; border-color: currentColor; color: inherit; font-size: .85rem; }
@media (max-width: 600px) {
  .te-request-choices { flex-direction: column; }
  .te-request-choices button { width: 100%; }
}
.te-form { min-width: 0; scroll-margin-top: 1rem; }
.te-form h3 { font-size: 1.5rem; margin: 0 0 .6rem; line-height: 1.2; letter-spacing: -.025em; }
.te-form-intro, .te-form-help { font-size: .82rem; line-height: 1.5; color: var(--te-muted); }
.te-form .te-form-grid { margin-block: .9rem; }
.te-form fieldset { min-width: 0; border: 1px solid var(--te-border); border-radius: .55rem; padding: .8rem; margin: 1rem 0; }
.te-form fieldset[hidden] { display: none !important; }
.te-form legend { padding-inline: .3rem; font-size: .92rem; font-weight: 750; }
.te-form .te-check { align-items: flex-start; gap: .5rem; }
.te-form .te-check input { flex: 0 0 auto; margin-top: .2rem; }
.te-form textarea { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; border: 1px solid #828a96; border-radius: .45rem; padding: .55rem; resize: vertical; }
.te-form-error { max-width: 850px; }
#rueckrufanfrage .te-form-grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 850px) {
  .te-request-forms { grid-template-columns: minmax(0, 1fr); }
}

/* Readable, editable service pages. */
.te-service-page { padding-block: 2rem 4rem; }
.te-service-page > h1 { max-width: 24ch; margin-top: .5rem; }
.te-service-page .wp-block-post-content { max-width: 850px; }
.te-service-page p, .te-service-page li { line-height: 1.65; }
.te-service-page a:not(.wp-block-button__link):not(.te-whatsapp-link) { color: inherit; text-underline-offset: .2em; }
.te-service-lead { font-size: 1.35rem; font-weight: 700; }
.te-service-page .te-breadcrumb { font-size: .8rem; color: var(--te-muted); }
.te-service-section { margin-block: 2.5rem !important; }
.te-service-page h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.18; }
.te-service-section li + li { margin-top: .45rem; }
.te-service-photo img { width: 100%; height: auto; border-radius: 1rem; margin-block: 1rem; }
.te-service-page details { padding-block: .85rem; border-bottom: 1px solid var(--te-border); }
.te-service-page summary { cursor: pointer; font-weight: 720; }
.te-service-contact { background: #fff; border: 1px solid var(--te-border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.7rem); margin-top: 2.5rem !important; }

.te-school-contact { background: #fff; border: 1px solid var(--te-border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.7rem); margin-block: 2rem; }

.te-travel-contact { background: #fff; border: 1px solid var(--te-border); border-radius: 1rem; padding: clamp(1rem, 3vw, 1.7rem); margin-block: 2rem; }
.te-language-link { font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.te-footer-contact-en a { overflow-wrap: anywhere; }

.te-fleet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-block: 2rem; }
.te-fleet-card { overflow: hidden; background: white; border: 1px solid var(--te-border); border-radius: 1rem; }
.te-fleet-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.te-fleet-card-copy { padding: 1.25rem; }
.te-main .te-fleet-card h2 { font-size: 1.65rem; line-height: 1.2; }
.te-fleet-card a { color: inherit; text-underline-offset: .2em; }
.te-fleet-variants { padding-left: 1.3rem; }
.te-fleet-variants li + li { margin-top: .5rem; }
.te-fleet-carousel { position: relative; min-width: 0; margin-top: 1.5rem; container-type: inline-size; }
.te-fleet-photos { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; }
.te-fleet-photos.te-fleet-enhanced { overflow: visible; }
.te-fleet-photos > .te-fleet-photo { flex: 0 0 100%; scroll-snap-align: start; }
.te-fleet-photo[hidden], .te-fleet-controls[hidden] { display: none !important; }
.te-fleet-photos, .te-fleet-dialog-photo { touch-action: pan-y pinch-zoom; }
.te-fleet-photos img, .te-fleet-dialog-photo img { -webkit-user-drag: none; user-select: none; }
.te-fleet-photos img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.te-fleet-controls { display: flex; align-items: center; justify-content: center; margin-top: .5rem; min-height: 2rem; }
.te-fleet-counter { margin: 0; color: var(--te-muted); font-size: .85rem; font-weight: 700; }
.te-fleet-nav { position: absolute; top: 45%; top: 28.125cqw; transform: translateY(-50%); z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(16,32,51,.88); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); cursor: pointer; }
.te-fleet-prev { left: .6rem; }
.te-fleet-next { right: .6rem; }
.te-fleet-nav:hover { background: var(--te-yellow); color: var(--te-ink); }
.te-fleet-nav:focus-visible { outline-color: var(--te-yellow); }

/* Keep the vehicle front clear and place readable information over side lettering. */
.te-fleet-visual {
  display: block; position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9; width: 100%; container-type: inline-size;
  background: #e8e6df; text-align: left;
}
.te-fleet-visual > img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 0; }
.te-fleet-info-panel, .te-fleet-rear-soften { position: absolute; top: var(--te-fleet-panel-top, 22%); left: 6%; width: var(--te-fleet-panel-width, 36%); min-height: var(--te-fleet-panel-height, 34%); box-sizing: border-box; }
.te-fleet-visual--right .te-fleet-info-panel, .te-fleet-visual--right .te-fleet-rear-soften { left: auto; right: 6%; }
.te-fleet-rear-soften {
  z-index: 1; pointer-events: none; top: calc(var(--te-fleet-panel-top, 22%) - 5%);
  left: 3%; width: calc(var(--te-fleet-panel-width, 36%) + 6%); height: calc(var(--te-fleet-panel-height, 34%) + 10%);
  background: rgba(16, 32, 51, .04); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: radial-gradient(ellipse, #000 50%, transparent 75%); mask-image: radial-gradient(ellipse, #000 50%, transparent 75%);
}
.te-fleet-visual--right .te-fleet-rear-soften { right: 3%; }
.te-fleet-info-panel {
  z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  padding: 1rem; padding: clamp(.4rem, 1.6cqw, 1.25rem); color: #fff;
  background: rgba(16, 32, 51, .30); border: 1px solid rgba(255,255,255,.36); border-radius: .6rem;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(7,18,32,.12); overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 8px rgba(0,0,0,.6);
}
.te-fleet-visual-title { display: block; color: #fff; font-size: .85rem; font-size: clamp(.7rem, 2.8cqw, 1.55rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.te-fleet-visual-summary { display: block; font-size: .75rem; font-size: clamp(.55rem, 2.3cqw, 1.2rem); font-weight: 650; line-height: 1.25; }
.te-fleet-visual-access { display: block; color: #ffe286; font-size: .7rem; font-size: clamp(.53rem, 2cqw, 1rem); line-height: 1.2; }
.te-fleet-visual-label { display: block; color: #cfd9e4; font-size: .6rem; font-size: clamp(.48rem, 1.5cqw, .8rem); line-height: 1.2; }
.te-fleet-photo { min-width: 0; margin: 0; }
.te-fleet-photo .te-fleet-visual { border-radius: .75rem; }
.te-fleet-enlarge { display: block; width: 100%; padding: 0; margin: 0; border: 0; border-radius: .75rem; font: inherit; color: inherit; background: transparent; cursor: zoom-in; }
.te-fleet-enlarge:disabled { opacity: 1; cursor: default; }
.te-fleet-photo figcaption { color: var(--te-muted); font-size: .8rem; margin-top: .4rem; }
.te-fleet-dialog { width: min(1160px, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); box-sizing: border-box; overflow: auto; padding: .75rem; border: 1px solid #48586a; border-radius: 1rem; background: #102033; color: #fff; }
.te-fleet-dialog::backdrop { background: rgba(5, 12, 21, .88); }
.te-fleet-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.te-fleet-dialog-head h2 { margin: 0; font-size: 1rem; line-height: 1.3; }
.te-fleet-dialog-close { min-height: 44px; padding: .5rem .8rem; border: 0; border-radius: .5rem; font: inherit; font-weight: 700; background: var(--te-yellow); color: var(--te-ink); cursor: pointer; }
.te-fleet-dialog .te-fleet-visual { border-radius: .5rem; }
.te-fleet-dialog .te-fleet-carousel { margin-top: 0; }
.te-fleet-dialog .te-fleet-counter { color: #e3eaf3; }
@media (max-height: 550px) and (min-width: 700px) {
  .te-fleet-dialog { width: min(1160px, calc((100dvh - 6rem) * 16 / 9)); }
}
@media (max-width: 980px) {
  .te-header { column-gap: 1.2rem; }
  .te-nav { gap: .85rem; flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .te-fleet-grid { grid-template-columns: minmax(0, 1fr); }
  .te-fleet-controls { justify-content: space-between; gap: .75rem; }
  .te-fleet-nav { position: static; transform: none; flex: 0 0 44px; width: 44px; height: 44px; }
}

/* About page: editable WordPress blocks, with room for optional team photos. */
.te-about-page .wp-block-post-content { max-width: none; }
.te-about-intro, .te-about-story { max-width: 74ch; }
.te-about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; margin-block: 2rem !important; }
/* Grid gaps replace the default WordPress spacing between sibling blocks. */
.te-about-facts > *, .te-about-values > *, .te-about-team > * { margin-block: 0 !important; }
.te-about-fact { padding: 1.25rem; border-block: 1px solid var(--te-border); }
.te-about-fact p { margin: 0; }
.te-about-fact .te-about-number { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.2; margin-bottom: .35rem; }
.te-about-values, .te-about-team { display: grid; align-items: stretch; gap: 1rem; margin-block: 1.5rem !important; }
.te-about-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.te-about-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.te-about-card { min-width: 0; padding: clamp(1rem, 2.5vw, 1.6rem); background: #fff; border: 1px solid var(--te-border); border-radius: 1rem; }
.te-about-page .te-about-card h3, .te-about-page .te-about-owner h3 { font-size: 1.35rem; line-height: 1.25; }
.te-about-card > :first-child, .te-about-owner > :first-child { margin-top: 0; }
.te-about-card > :last-child, .te-about-owner > :last-child { margin-bottom: 0; }
.te-about-card p:not(.te-about-role) { color: var(--te-muted); }
.te-about-role { font-size: .9rem; font-weight: 750; }
.te-about-owner { border-left: 4px solid var(--te-yellow); padding: 1rem 1.4rem; margin-block: 1.5rem !important; }
.te-about-team .wp-block-image { margin: 0 0 1rem; }
.te-about-team .wp-block-image img { display: block; width: 100%; height: auto; border-radius: .65rem; }
@media (max-width: 850px) {
  .te-about-values { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .te-about-facts, .te-about-team { grid-template-columns: minmax(0, 1fr); }
  .te-about-fact { padding: 1rem 0; border-top: 0; }
}

/* Fare estimate and keyboard-accessible address suggestions. */
.te-fare { margin-block: 1.5rem; }
.te-main .te-fare h2 { margin-top: 0; font-size: 1.75rem; }
.te-fare [hidden] { display: none !important; }
.te-fare-address { min-width: 0; }
.te-fare-address > label { margin-bottom: .24rem; }
.te-fare-address > .te-form-help { margin-block: .35rem; }
.te-fare-address ul { list-style: none; padding: 0; margin: 0; }
.te-fare-address li { margin: 0; }
.te-form .te-fare-address button { width: 100%; text-align: left; border: 1px solid var(--te-border); border-radius: .35rem; background: #f8f6f0; padding: .65rem; margin-top: .25rem; font-weight: 500; overflow-wrap: anywhere; }
.te-form .te-fare-address button:hover { background: #fff0b9; }
.te-fare button:disabled { cursor: wait; opacity: .65; }
.te-fare fieldset:disabled { opacity: .65; }
.te-fare [data-fare-status] { min-height: 1.5em; font-size: .9rem; }
.te-fare [data-fare-result] { border-top: 1px solid var(--te-border); padding-top: 1.2rem; }
.te-fare .te-fare-price { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-block: .7rem; }
.te-fare dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; }
.te-fare dt, .te-fare dd { margin: 0; }
.te-fare [data-fare-warning]:not(:empty) { border-left: 3px solid #986300; padding: .6rem; background: #fff5d6; }

/* Homepage: softly blurred fleet image behind a readable foreground. */
.te-hero.te-hero-backdrop {
  position: relative; isolation: isolate; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0;
  min-height: 520px; box-sizing: border-box; padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 0; background: var(--te-ink); color: #fff;
}
.te-hero-backdrop .te-hero-backdrop-photo {
  position: absolute; inset: -12px; z-index: 0; width: auto; max-width: none;
  margin: 0 !important; overflow: hidden; pointer-events: none;
}
.te-hero-backdrop-photo img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center 60%; filter: blur(3px); transform: scale(1.02);
}
.te-hero-backdrop::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 32, 51, .90) 0%, rgba(16, 32, 51, .80) 40%, rgba(16, 32, 51, .48) 100%);
}
.te-hero-backdrop .te-hero-copy { position: relative; z-index: 2; min-width: 0; }
.te-hero-backdrop .te-hero-copy > :first-child { margin-top: 0; }
.te-hero-backdrop .te-hero-copy > :last-child { margin-bottom: 0; }
.te-main .te-hero-backdrop h1 { max-width: 18ch; font-size: clamp(2.25rem, 4.8vw, 3.65rem); color: #fff; }
.te-hero-backdrop .te-eyebrow { color: var(--te-yellow); }
.te-hero-backdrop .te-lead { max-width: 43ch; color: #fff; }
.te-hero-backdrop .te-hero-copy > p:not(.te-eyebrow):not(.te-lead) { max-width: 50ch; color: #eff2f5; }
.te-main .te-hero-backdrop .te-secondary .wp-block-button__link { color: #fff; border-color: #c8d1db; }
.te-main .te-hero-backdrop .te-secondary .wp-block-button__link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.te-hero-backdrop .te-whatsapp-note { color: #eff2f5; }
/* Put all three contact actions together, followed by the shared WhatsApp note. */
.te-hero-backdrop .te-hero-with-whatsapp {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: .75rem;
  grid-template-areas: "eyebrow eyebrow" "title title" "lead lead" "description description" "whatsapp actions" "note note";
}
.te-hero-with-whatsapp > .te-eyebrow { grid-area: eyebrow; }
.te-hero-with-whatsapp > h1 { grid-area: title; }
.te-hero-with-whatsapp > .te-lead { grid-area: lead; }
.te-hero-with-whatsapp > p:not(.te-eyebrow):not(.te-lead) { grid-area: description; }
.te-hero-with-whatsapp > .te-whatsapp { display: contents; }
.te-hero-with-whatsapp .te-whatsapp-link { grid-area: whatsapp; align-self: start; margin-top: .5rem; }
.te-hero-backdrop .te-hero-with-whatsapp > .wp-block-buttons { grid-area: actions; align-self: start; gap: .75rem; margin-block: .5rem 0; }
.te-hero-with-whatsapp .te-whatsapp-note { grid-area: note; max-width: 85ch; margin-block: .75rem 0; }
@media (max-width: 850px) {
  .te-hero-backdrop .te-hero-with-whatsapp {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "lead" "description" "whatsapp" "actions" "note";
  }
  .te-hero-with-whatsapp .te-whatsapp-link { justify-self: start; }
}

/* Standalone entry to the calculator, directly below the title area. */
.te-fare-entry {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem;
  box-sizing: border-box; padding: clamp(1.25rem, 3vw, 2rem); margin-block: 2rem 0 !important;
  background: #fff; border: 1px solid var(--te-border); border-left: 5px solid var(--te-yellow);
  border-radius: 1rem; box-shadow: 0 8px 28px rgba(23, 37, 56, .04);
}
.te-fare-entry > *, .te-fare-entry-copy > :first-child { margin-block-start: 0 !important; }
.te-fare-entry > :last-child, .te-fare-entry-copy > :last-child { margin-block-end: 0; }
.te-main .te-fare-entry h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; margin-block: .5rem .75rem; }
.te-fare-entry-copy > p:not(.te-eyebrow) { max-width: 65ch; color: var(--te-muted); }
.te-fare-entry .wp-block-button__link { white-space: nowrap; }
.te-fare-entry + #leistungen { padding-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 700px) {
  .te-hero.te-hero-backdrop { min-height: 0; padding-block: 3rem; }
  .te-hero-backdrop-photo img { object-position: 60% 60%; filter: blur(2px); }
  .te-hero-backdrop::after { background: rgba(16, 32, 51, .82); }
  .te-fare-entry { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.25rem !important; }
  .te-fare-entry .wp-block-buttons, .te-fare-entry .wp-block-button, .te-fare-entry .wp-block-button__link { width: 100%; box-sizing: border-box; }
  .te-fare-entry .wp-block-button__link { text-align: center; white-space: normal; }
}

/* Compact mobile entry, with WhatsApp before the other contact buttons. */
@media (max-width: 700px) {
  .te-header { padding-block: .4rem; gap: .25rem; }
  .te-logo picture { aspect-ratio: 2048 / 595; }
  .te-logo picture img { transform: translateY(-15.18%); }
  .te-nav { column-gap: .85rem; row-gap: .15rem; }
  .te-nav a { padding-block: .35rem; }
  .te-hero.te-hero-backdrop { padding-block: 1.5rem 2rem; }
  .te-hero-backdrop .te-eyebrow { font-size: .65rem; letter-spacing: .1em; margin: 0; }
  .te-main .te-hero-backdrop h1 { font-size: clamp(2rem, 7vw, 2.25rem); line-height: 1.08; margin-block: .45rem .75rem; }
  .te-hero-backdrop .te-lead { font-size: 1.1rem; line-height: 1.35; margin-block: .75rem; }
  .te-hero-backdrop .te-hero-description { display: none; }
  .te-hero-backdrop .te-whatsapp { width: 100%; max-width: 380px; margin-block: 1rem 0; }
  .te-hero-backdrop .te-whatsapp-link { display: block; width: 100%; box-sizing: border-box; text-align: center; }
  .te-hero-backdrop .te-hero-copy .wp-block-buttons { margin-top: .85rem; gap: .65rem; }
  .te-hero-backdrop .te-hero-with-whatsapp .te-whatsapp-link { justify-self: stretch; max-width: 380px; margin-top: .4rem; }
  .te-hero-backdrop .te-hero-with-whatsapp > .wp-block-buttons { margin-block: .65rem 0; }
  .te-mobile-call-with-whatsapp > .wp-block-buttons { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: .5rem; }
  .te-mobile-call-with-whatsapp .wp-block-button__link { display: flex; align-items: center; justify-content: center; min-height: 44px; height: 100%; padding: .6rem .45rem; font-size: .8rem; line-height: 1.25; text-align: center; }
  .te-mobile-call .te-mobile-whatsapp .wp-block-button__link { background: #146c46; color: #fff; }
  .te-mobile-call .te-mobile-whatsapp .wp-block-button__link:hover { background: #0e5335; }
}
