.gast-navlink {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid var(--line);
    padding: .5rem .75rem;
    border-radius: .65rem;
    font-weight: 750;
    text-decoration: none;
}
.gast-navlink::before { content: '☆'; color: var(--accent); }
.hotel-kachel { position: relative; min-width: 0; }
.hotel-kachel > .hotel { height: 100%; }
.hotel-favorit {
    position: absolute; top: 8px; right: 8px; z-index: 1;
    display: grid; place-items: center; width: 44px; height: 44px;
    padding: 0; border: 1px solid #fff9; border-radius: 50%;
    color: white; background: #131a16eb; cursor: pointer;
}
.hotel-favorit svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hotel-favorit[aria-pressed="true"] svg { fill: white; }
.hotel-favorit:hover { background: #344838; }
.hotel-favorit:focus-visible { outline: 3px solid #ff9e48; outline-offset: 2px; }
.hotel-kachel-compact .hotel-favorit { top: 3px; right: auto; left: 27px; width: 32px; height: 32px; }
.hotel-kachel-compact .hotel-favorit svg { width: 17px; height: 17px; }
.gast-seite { padding-block: clamp(24px,5vw,66px); }
.gast-panel {
    box-sizing: border-box; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 1.25rem;
    padding: clamp(1rem, 4vw, 2.3rem); box-shadow: var(--shadow);
}
.gast-formular { width: min(100%, 600px); margin: 0 auto; }
.gast-panel h1, .gast-panel h2 { margin: 0; letter-spacing: -.035em; }
.gast-panel h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; }
.gast-panel p { color: var(--muted); }
.gast-panel form { display: grid; gap: 1rem; }
.gast-panel label { display: grid; gap: .35rem; font-weight: 650; }
.gast-panel input {
    box-sizing: border-box; width: 100%; padding: .68rem .75rem; color: var(--ink);
    background: var(--page); border: 1px solid var(--line); border-radius: .6rem; font: inherit;
}
.gast-panel input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.gast-felder { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 180px),1fr)); gap: .85rem; }
.gast-aktion, .gast-nebenaktion {
    display: inline-flex; width: fit-content; align-items: center; border: 1px solid var(--line);
    padding: .7rem 1rem; border-radius: .65rem; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none;
}
.gast-aktion { background: #ff9e48; color: #21160d; border-color: transparent; }
.gast-aktion:hover { background: #ffb577; }
.gast-nebenaktion { background: var(--surface); color: var(--ink); }
.gast-textaktion { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; width: fit-content; }
.gast-formlinks, .gast-willkommen { display: flex; gap: .85rem 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.gast-formlinks { margin-block: 1rem; }
.gast-schritt { font-weight: 800; margin: 0 0 .6rem; }
.gast-falle { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.gast-dialog { width: min(94vw, 530px); }
.gast-dialog::backdrop { background: #000a; }
.gast-toast { position: fixed; bottom: 1rem; inset-inline: 1rem; max-width: 30rem; margin: auto; z-index: 1200; box-shadow: var(--shadow); }
.gast-hotel-grid { margin-top: 1rem; }
@media (max-width: 690px) {
    .top-controls .gast-navlink { font-size: .78rem; padding: .35rem .45rem; }
    .top-controls:has(.gast-navlink) { flex-wrap: wrap; gap: .4rem; }
}

.hotel-kachel .hotel-media .badge { white-space: nowrap; }

@media (max-width: 690px) {
    .hotel-kachel .hotel { border-radius: 12px; }
    .hotel-kachel .hotel-media .badge {
        inset: 6px auto auto 5px;
        padding: 2px 3px;
        border-radius: 4px;
        font-size: clamp(.53125rem, 2.44vw, .5625rem);
        line-height: 1.25;
        letter-spacing: .02em;
    }
    .hotel-kachel:not(.hotel-kachel-compact) .hotel-favorit { top: 4px; right: 4px; }
    .hotel-kachel:not(.hotel-kachel-compact) .hotel-text { padding: 9px; gap: 5px; }
    .hotel-kachel .hotel-text h3,
    .hotel-kachel .hotel-text p { overflow-wrap: anywhere; }
    .hotel-kachel .hotel-rating { flex-wrap: wrap; }
}

@media (max-width: 319px) { .hotel-grid:has(.hotel-kachel) { grid-template-columns: minmax(0, 1fr); } }

.gast-konto-kopf {
    display: inline-flex;
    gap: .48rem;
    align-items: center;
    max-width: min(205px, 45vw);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 750;
}
.gast-konto-kopf > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gast-konto-bild {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: #f4dcc3;
    color: #442817;
}
.gast-konto-bild img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gast-foto-upload {
    border: 1px dashed var(--line);
    border-radius: .7rem;
    padding: .75rem;
}
.gast-foto-upload small { font-weight: 400; }
.gast-foto-upload input { font-size: .9rem; }
.gast-foto-upload input::file-selector-button { margin-inline-end: .5rem; cursor: pointer; }
@media (max-width: 690px) {
    .top-controls:has(.gast-konto-kopf) { flex-wrap: wrap; gap: .4rem; }
}


.gast-konto-loeschen {
    margin-top: 1.5rem;
    border: 2px solid #b84b46;
    scroll-margin-top: 7rem;
}

.gast-konto-loeschen .gast-loesch-bestaetigung {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.gast-loesch-bestaetigung input {
    width: auto;
    margin: .25em 0 0;
}

.gast-loesch-button {
    justify-self: start;
    border: 0;
    border-radius: .6rem;
    padding: .7rem 1rem;
    color: white;
    background: #a72f2f;
    font: inherit;
    cursor: pointer;
}

.gast-loesch-button:hover {
    background: #872222;
}
.gast-reiseanfrage{margin:.5rem 0;padding:.7rem .9rem;border-radius:9px;background:#fff1cd;color:#352711}
.gast-reiseanfrage p{overflow-wrap:anywhere}
.gast-anfrage-angebot{background:#fae0df;color:#461a1b}
.gast-anfrage-angenommen{background:#dff1db;color:#17351c}
.gast-anfrage-abgelehnt summary{text-decoration:line-through}
.gast-angebot-antwort{display:grid;gap:.5rem}
.gast-angebot-antwort label{display:block}
.gast-angebot-antwort textarea,.gast-angebot-antwort input:not([type=checkbox]){display:block;width:100%;font:inherit}
.gast-angebot-buttons{display:flex;flex-wrap:wrap;gap:.5rem}
.gast-angebot-buttons button{border:1px solid #83a97e;border-radius:7px;background:#dff1db;color:#17351c;padding:.65rem;font-weight:700}
.gast-angebot-buttons button:last-child{background:#fae0df;color:#461a1b;border-color:#c59090}

/* Keep iPhone focus zoom off while preserving manual page zoom. */
.gast-panel :is(input, select, textarea) { min-width: 0; max-width: 100%; font-size: max(16px, 1rem); }
.gast-panel label { min-width: 0; }
.gast-panel :is(textarea, select) { width: 100%; padding: .68rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--page); color: var(--ink); font-family: inherit; }
.gast-panel .gast-freigabe { display: block; }
.gast-panel .gast-freigabe input { width: 1.2rem; height: 1.2rem; margin: 0 .4rem 0 0; vertical-align: middle; }
.gast-panel [data-eingabefehler] { color: #63222a; }

.gast-layout .gast-panel,.gast-layout .gast-panel form,.gast-reise-felder>*{min-inline-size:0;max-inline-size:100%}
.gast-panel input[type=date]{display:block;inline-size:100%;min-inline-size:0;max-inline-size:100%;box-sizing:border-box;-webkit-appearance:none;appearance:none}
.gast-panel input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:start}
.gast-reise-felder{grid-template-columns:repeat(2,minmax(0,1fr))}
.gast-reise-felder label{overflow-wrap:anywhere}
.gast-kalender{min-inline-size:0;padding:.6rem;border:1px solid var(--line);border-radius:10px}
.gast-kalender summary{font-weight:750}
.gast-kalender p{margin:.5rem 0}
.gast-monat{display:grid;grid-template-columns:2.25rem 1fr 2.25rem;gap:.3rem;align-items:center;text-align:center;margin:.4rem 0}
.gast-kalendertage{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.gast-kalendertage button,.gast-monat button{min-width:0;min-height:37px;padding:0;border:1px solid var(--line);border-radius:5px;background:var(--page);color:var(--ink)}
.gast-kalender button:disabled{opacity:.45}
.gast-kalendertage button[aria-pressed=true]{background:var(--button);color:var(--button-ink);font-weight:800}
.gast-kalendertage .gast-reise-dazwischen{background:var(--surface);border-color:var(--accent)}
@media(max-width:690px){
    .gast-layout .top-inner{flex-direction:column;align-items:flex-start}
    .gast-layout .top-inner .top-controls{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:clamp(3px,1.5vw,9px);inline-size:100%;min-inline-size:0;font-size:clamp(.7rem,3vw,.86rem)}
    .gast-layout .top-controls>a,.gast-layout .langs summary{white-space:nowrap}
    .gast-layout .gast-konto-kopf{flex:0 1 auto;min-width:0}
    .gast-layout .gast-konto-kopf>span:last-child{overflow:hidden;text-overflow:ellipsis}
    .gast-layout .top-controls .theme,.gast-layout .langs summary{padding:.35rem}
}

.gast-reiseanfrage{margin:.75rem 0;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.gast-reiseanfrage summary{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .7rem;cursor:pointer}
.gast-reiseanfrage summary:before{content:'▸'}
.gast-reiseanfrage[open] summary:before{content:'▾'}
.gast-reiseanfrage summary img{width:clamp(46px,12vw,72px);height:clamp(36px,9vw,52px);object-fit:cover;border-radius:6px}
.gast-reiseanfrage summary small{display:block}
.gast-reiseanfrage .gast-anfrage-status{padding:.25rem .6rem;border:1px solid #b8c0b8;border-radius:6px;background:#edf2eb;color:#263d2b;font-weight:740;font-size:.87em}
.gast-anfrage-angebot .gast-anfrage-status{background:#fff1cd;color:#352711}
.gast-anfrage-angenommen .gast-anfrage-status{background:#dff1db;color:#17351c}
.gast-anfrage-abgelehnt summary{text-decoration:none}
.gast-archiv-inhalt{display:grid;gap:.7rem;padding-top:.85rem}
.gast-archiv-schritt{border:1px solid var(--line);border-radius:8px;padding:.7rem .85rem}
.gast-archiv-schritt h3,.gast-archiv-schritt p{margin:.18rem 0}
.gast-archiv-entscheidung{border-color:#83a97e}
.gast-archiv-aktionen{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem}
.gast-archiv-aktionen button{padding:.38rem .65rem;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--page)}
@media print{
    .gast-einzeldruck{background:#fff;color:#000}
    .gast-einzeldruck> :not(main),.gast-einzeldruck main> :not(#anfragen),.gast-einzeldruck #anfragen>details:not(.gast-druckziel),.gast-einzeldruck .gast-archiv-aktionen,.gast-einzeldruck .gast-angebot-antwort{display:none!important}
    .gast-einzeldruck main,.gast-einzeldruck #anfragen{width:100%;margin:0;padding:0;border:0;background:white;color:#000}
    .gast-einzeldruck .gast-druckziel{background:#fff;color:#000;border:0}
    .gast-einzeldruck .gast-archiv-schritt{break-inside:avoid;border-color:#bbb}
    .gast-einzeldruck .gast-archiv-schritt p{color:#222}
}
.gast-druckdaten{display:none}
@media(max-width:690px){
    .gast-layout .top-controls .langs{order:1}
    .gast-layout .top-controls .gast-startseitenlink{order:2}
    .gast-layout .top-controls .theme{order:3}
}
@media print{
    html:has(.gast-einzeldruck){background:#fff!important;color:#000!important;color-scheme:light}
    .gast-einzeldruck,.gast-einzeldruck *{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}
    .gast-einzeldruck .gast-druckdaten{display:block}
    .gast-einzeldruck #anfragen{max-width:none}
    .gast-einzeldruck .gast-druckziel summary img,.gast-einzeldruck .gast-druckziel summary:before{display:none}
    .gast-einzeldruck .gast-druckziel summary{display:block}
    .gast-einzeldruck .gast-anfrage-status{display:inline-block;margin-top:.3rem}
    .gast-einzeldruck .gast-druckdaten a{overflow-wrap:anywhere}
}
