/* shared EN layers brought to German (loaded here so no per-page <link> is needed): guide byline, hero B-r3, standard footer */
@import url('/shared/guide/byline.css?v=bl1');
@import url('/shared/guide/hero-br3.css?v=br3d');
@import url('/shared/footer-standard.css?v=fs1');
/* German card overlays (i18n spec 4.10): the painted card art stays text-free;
   the card text is real HTML over a gradient scrim in the painted text zone. */
.eat-ov { position: relative; display: block; container-type: inline-size; }
.eat-ov > img { display: block; width: 100%; height: auto; }
.eat-ov-band {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 13.5% 8% 12%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(to bottom, rgba(12, 14, 10, var(--ov-scrim, .45)) 55%, rgba(12, 14, 10, 0));
  pointer-events: none;
}
.eat-ov-wide .eat-ov-band { padding-left: 6%; padding-right: 6%; }
.eat-ov-eb { font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif; font-weight: 600; font-size: 3.2cqw; letter-spacing: .18em; text-transform: uppercase; color: #f6d08a; }
.eat-ov-t { font-family: 'IBM Plex Serif', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 8.4cqw; line-height: 1.08; color: #fff; margin-top: 1.2cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eat-ov-dk { font-family: 'IBM Plex Serif', Georgia, 'Times New Roman', serif; font-weight: 600; font-style: italic; font-size: 3.8cqw; line-height: 1.25; color: #faf4e8; margin-top: 1.6cqw; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eat-ov-h { font-family: 'Libre Franklin', 'Helvetica Neue', sans-serif; font-weight: 600; font-size: 3cqw; color: #fff; opacity: .92; margin-top: 1.6cqw; }

/* ---- Round 3 (Core fix list A1): tier toggle chips. The shared English
   custom.css forces .tw-chip{white-space:nowrap} — English labels fit a
   third of 375px, "Goldener Mittelweg" (18 chars) does not. German only:
   allow the wrap. Never edit the shared English css. */
html[lang="de"] .tw-chip{white-space:normal!important;overflow-wrap:normal;hyphens:none;line-height:1.15;font-size:.8rem;padding:6px 3px;text-wrap:balance}

/* ---- Round 3 (Core fix list C1): CSS-injected English words (content:)
   on German pages. The strings live in shared English stylesheets (guide
   signature bundles, season.css, nl.css, custom.css, fp.css, conv.css)
   which must not be edited; these html[lang="de"] overrides carry one
   extra attribute selector and win the cascade. */
/* Watermark folio words (shared/guide-signature.css + bundles) */
html[lang="de"].gsig #idea::before{content:"IDEE"}
html[lang="de"].gsig section.overview::before{content:"ÜBERBLICK"}
html[lang="de"].gsig #route::before{content:"ROUTE"} /* same word in German — confirmed intended */
html[lang="de"].gsig #make-it-yours::before{content:"FÜR SIE"}
html[lang="de"].gsig #planning::before{content:"PACKEN"}
html[lang="de"].gsig #gallery::before{content:"BILDER"}
html[lang="de"].gsig #faq::before{content:"NOTIZEN"}
/* Editorial legend (editorial-v4.css + bundles) */
html[lang="de"] body main .ed1 .ed-leg-hi::before{content:"Höhepunkt · "}
/* Season ticket flip labels (per-guide season.css; tap = touch default,
   click = hover/fine-pointer media, mirrored from the source rules) */
html[lang="de"] #eat-season .tsh-tkt-f .tsh-flip::after{content:"Zum Wenden tippen"}
html[lang="de"] #eat-season .tsh-tkt[aria-pressed="true"] .tsh-tkt-f .tsh-flip::after,
html[lang="de"] #eat-season .tsh-tkt-b .tsh-flip::after{content:"Zum Zurückwenden tippen"}
@media (hover:hover) and (pointer:fine){
html[lang="de"] #eat-season .tsh-tkt-f .tsh-flip::after{content:"Zum Wenden klicken"}
html[lang="de"] #eat-season .tsh-tkt[aria-pressed="true"] .tsh-tkt-f .tsh-flip::after,
html[lang="de"] #eat-season .tsh-tkt-b .tsh-flip::after{content:"Zum Zurückwenden klicken"}
}
/* Custom-plan tier picker (shared/guide/nl.css) */
html[lang="de"] body #ce-cta-end .nl-cu-tier .lad:not(.on) .lad-check:before{content:"Wählen"}
html[lang="de"] .nl-cu-tier .lad.on .lad-top b:after{content:" · ausgewählt"}
/* Sample-plan margin note (custom/custom.css) */
html[lang="de"] #ce-sm .sm-margin::before{content:"Maßgeschneidert · "}
/* Locked plan tile (shared/membership/fp.css) */
html[lang="de"] .pt-locked::after{content:"Mit Freiheitspass"}
/* Nav pill (shared/conv/conv.css) */
html[lang="de"].cv-app-on .site-nav a.cv-nav-pill[data-cv-pl="home_nav_pill"]::before{content:"Neu"}
/* Bundle variant of the tier-picker "Choose" affordance (guide-signature
   bundles): full selector recovered from g-9091839ea22c.css. */
html[lang="de"].gsig #ce-cta-end .lad-row > .lad:not(.on):not([aria-pressed="true"]) .lad-check::before{content:"Wählen"}

/* A1 sweep (round 3): /de/reisen/ at 320px — the stats grid uses
   max-content columns and the one-word label "Filtermöglichkeiten"
   widens the page (docSW 387 vs 333 for the English page, which has the
   same hero shape). German-only: flexible columns + wrappable labels,
   and the footer credit may wrap. */
@media (max-width: 360px) {
  html[lang="de"] .tp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html[lang="de"] .tp-stats span { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  /* the credit link itself carries nowrap in the site CSS (363px at a
     320px viewport); let it wrap on small screens */
  html[lang="de"] .vm-credit a { white-space: normal; }
}

/* A1 sweep (round 3): the guide hero ledger strip truncates its items on
   narrow screens in English too, but the German item labels are longer
   and cut mid-phrase; let the strip wrap on small screens (de only). */
@media (max-width: 480px) {
  html[lang="de"] .nl-ledger-in { flex-wrap: wrap; row-gap: 6px; }
}

/* ROUND 4 (item 7): the footer legal row (Impressum + Widerrufsbelehrung +
   Verträge hier kündigen) is styled only in legal-site.css, which most pages
   do not load — on /de/freiheitspass/kasse/ the links ran together and
   overlapped. Give the row its own de-wide rule here. */
html[lang="de"] .eat-legal-row { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; justify-content: center; align-items: center; padding: 10px 16px 18px; font-size: .78rem; text-align: center; }
html[lang="de"] .eat-legal-row a { color: inherit; opacity: .75; text-decoration: none; white-space: nowrap; }
html[lang="de"] .eat-legal-row a:hover { opacity: 1; text-decoration: underline; }

/* ROUND 4 (A1 sweep): the German consent line is longer than the English
   one; the Kasse terms row is flex/nowrap and forced the page 20px wide
   at 320px. Let it wrap, and keep the waiver box inside its container. */
.fp-terms-row { flex-wrap: wrap; }
#eat-waivers { box-sizing: border-box; max-width: 100%; }

/* ---- Footer language row + "Cookie-Einstellungen" (Core checkout review, Nov 19: "lang switch and
   Cookie-Einstellungen outside the footer"). Both are appended by JS as direct children of
   footer.eat-footer after the .eat-legal-row, so they sat flush-left at x=0 with no container padding,
   and the cookie link inherited a dark link colour on the dark footer (unreadable). German pages only
   (this file is only loaded on /de/). Same look as .eat-legal-row above: centred, small, light. */
html[lang="de"] footer.eat-footer > .eat-lang-foot { justify-content: center; padding: 4px 16px 0; font-size: .78rem; text-align: center; }
html[lang="de"] footer.eat-footer > .eat-lang-foot a { min-height: 44px; padding: 6px 8px; color: inherit; opacity: .85; }
html[lang="de"] footer.eat-footer > #eat-consent-settings { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px 24px; font-size: .78rem; color: inherit; opacity: .75; text-decoration: underline; text-underline-offset: 3px; }

/* ---- D8 (Core review, Nov 19): the read-only tier ladder card for the long-trip tier prints
   "22–100 Tage · Große Reise · 713 €" (+ "✓ Ausgewählt"), longer than the other cards. German only: let the
   card text wrap instead of running past the card edge (same approach as the .tw-chip rule above). */
html[lang="de"] .lad-ri, html[lang="de"] .lad-ri .lad-rt { overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
html[lang="de"] .lad-ri .lad-rt::after, html[lang="de"] .lad-ri::after { white-space: normal; }

/* ===== P4 (Core retest of JA7q, Nov 19) ===== */
/* Item 1: the "Zahlung bestätigt" banner on /de/konto/?paid=1 had no styling at all (no padding, flush to the
   window edge; the English /account/ banner is unstyled the same way, left alone). German only: a centred card
   in the same width as the account card, with the Konto-einrichten panel inside it. */
html[lang="de"] #pay-ok-acct { box-sizing: border-box; max-width: 640px; margin: 24px auto 0; padding: 20px 24px 8px; border: 1px solid rgba(31, 92, 70, .35); border-left: 4px solid #1f5c46; border-radius: 12px; background: rgba(31, 92, 70, .07); text-align: left; }
html[lang="de"] #pay-ok-acct[hidden] { display: none; }
html[lang="de"] #pay-ok-acct .ty-h { margin: 0 0 6px; font-family: Newsreader, Georgia, serif; font-size: 1.5rem; line-height: 1.2; }
html[lang="de"] #pay-ok-acct .cd-ty-sub { margin: 0 0 14px; }
html[lang="de"] #pay-ok-acct .pay-setup { margin-left: 0; margin-right: 0; }
@media (max-width: 700px) { html[lang="de"] #pay-ok-acct { margin: 16px 12px 0; padding: 16px 16px 4px; } }

/* r4: DE ledger labels ("AM BESTEN FÜR", "JAHRESZEIT") are longer than EN: slightly tighter tracking everywhere, and they may wrap on phones instead of touching the cell edge. (The action-cell wrap rule now lives in the shared guide/hero-br3.css for EN and DE.) */
html body .nl-ledger .nl-cell .nl-k{letter-spacing:.08em}
@media (max-width:480px){html body .nl-ledger .nl-cell:not(.nl-free) .nl-k{white-space:normal;overflow-wrap:break-word;letter-spacing:.06em}}
/* r4: the German action cell wraps to two rows at every width, so DE keeps the wider 130px data columns at 1200px+ (the longer labels like "AM BESTEN FÜR" need them); EN uses 118px so its three buttons stay on one row */
@media (min-width:1200px){
 html body .nl-ledger .nl-ledger-in{grid-template-columns:270px 130px 130px 130px minmax(0,1fr)!important}
}
/* r4: ledger value cells never break a word mid-word (e.g. "Septemb/er"); hyphenate at real German break points instead (pages are lang=de) */
html body .nl-ledger .nl-cell:not(.nl-free):not(.nl-act) .nl-v{overflow-wrap:normal;word-break:normal;hyphens:auto}

/* herofix: the cover card (figure.hero-art > span.eat-ov) must take the full width of the figure. On phones the figure is a centred flex column (site.css hero ladder), and a container-type:inline-size block as a flex item shrinks to 0x0, which collapsed the figure to ~28px and hid the image. */
.hero-art > .eat-ov{width:100%;align-self:stretch;flex:0 0 auto}
.hero-art > .eat-ov img{width:100%;height:auto;display:block}
/* herofix: on phones up to 400px the German byline halves may wrap inside the rule instead of running past it */
@media (max-width:400px){html[lang=de] .g-byline .g-nw{white-space:normal}}
