/* Pacura doc – Verfügbarkeitskalender 1.3.3
   Präfix "html body .pd-verfuegbarkeit" + !important, damit sich die Regeln
   gegen Avada- und Quform-Button-Styles durchsetzen. */

html body .pd-verfuegbarkeit {
	--pdv-petrol: #3E809A;
	--pdv-petrol-dark: #2F6A80;
	--pdv-cta: #EC9679;
	--pdv-ink: #303133;
	--pdv-ink-soft: #5E7178;
	--pdv-line: #D5DFE3;
	--pdv-line-strong: #AFC4CB;
	--pdv-bg-soft: #F4F7F8;
	--pdv-off: #AFC4CB;
	--pdv-radius: 1rem;
	--pdv-cell: 44px;
	--pdv-kw: 52px;
	--pdv-gap: 6px;
	color: var(--pdv-ink);
	font-family: inherit;
	margin: 0 0 8px;
}

html body .pd-verfuegbarkeit *,
html body .pd-verfuegbarkeit *::before,
html body .pd-verfuegbarkeit *::after { box-sizing: border-box; }

html body .pd-verfuegbarkeit p { margin: 0 !important; padding: 0 !important; }

/* ---------- Layout ---------- */
html body .pd-verfuegbarkeit .pdv { display: flex; flex-direction: column; gap: 16px; }
html body .pd-verfuegbarkeit .pdv-hint {
	display: flex !important; align-items: flex-start; gap: 10px;
	background: #EEF5F7; border: 1px solid #D5E5EB; border-radius: 12px;
	padding: 12px 16px !important; font-size: 15px; line-height: 1.5; color: var(--pdv-ink);
}
html body .pd-verfuegbarkeit .pdv-hint svg { flex: none; margin-top: 1px; color: var(--pdv-petrol-dark); }

html body .pd-verfuegbarkeit .pdv-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
html body .pd-verfuegbarkeit .pdv-cal {
	flex: 1 1 380px; max-width: 520px; min-width: 0;
	display: flex; flex-direction: column; gap: var(--pdv-gap);
	border: 1px solid var(--pdv-line); border-radius: var(--pdv-radius); padding: 16px 20px 20px; background: #FFFFFF;
}
html body .pd-verfuegbarkeit .pdv-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
html body .pd-verfuegbarkeit .pdv-label { font-size: 18px; font-weight: 800; text-align: center; flex: 1 1 auto; }

html body .pd-verfuegbarkeit .pdv-grid {
	display: grid; grid-template-columns: var(--pdv-kw) repeat(7, minmax(0, 1fr)); gap: var(--pdv-gap);
}
html body .pd-verfuegbarkeit .pdv-weekdays { font-size: 12px; font-weight: 700; color: var(--pdv-ink-soft); text-align: center; padding-bottom: 2px; }
/* feste Höhe für 6 Wochen, damit beim Monatswechsel nichts springt */
html body .pd-verfuegbarkeit .pdv-rows {
	display: flex; flex-direction: column; gap: var(--pdv-gap);
	min-height: calc(6 * var(--pdv-cell) + 5 * var(--pdv-gap));
}

/* ---------- Buttons: gemeinsamer Reset ---------- */
html body .pd-verfuegbarkeit button {
	font-family: inherit !important; margin: 0 !important; box-shadow: none !important;
	text-transform: none !important; letter-spacing: 0 !important; line-height: 1 !important;
	min-height: 0 !important; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-appearance: none; appearance: none;
}
html body .pd-verfuegbarkeit button:disabled { cursor: default; }
html body .pd-verfuegbarkeit button:focus-visible { outline: 3px solid var(--pdv-cta) !important; outline-offset: 2px !important; }

html body .pd-verfuegbarkeit .pdv-nav {
	width: 44px !important; height: 44px !important; padding: 0 !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	border: 1px solid var(--pdv-line-strong) !important; border-radius: 12px !important;
	background: #FFFFFF !important; color: var(--pdv-ink) !important;
}
html body .pd-verfuegbarkeit .pdv-nav:disabled { opacity: .35; }

html body .pd-verfuegbarkeit .pdv-day,
html body .pd-verfuegbarkeit .pdv-kw {
	width: 100% !important; height: var(--pdv-cell) !important; padding: 0 !important;
	border-radius: 10px !important; font-size: 15px !important; font-weight: 600 !important;
	display: flex !important; align-items: center; justify-content: center;
}
html body .pd-verfuegbarkeit .pdv-day {
	border: 1px solid var(--pdv-line) !important; background: #FFFFFF !important; color: var(--pdv-ink) !important;
}
html body .pd-verfuegbarkeit .pdv-day.is-we {
	border-color: #E3EAED !important; background: var(--pdv-bg-soft) !important; color: var(--pdv-ink-soft) !important;
}
html body .pd-verfuegbarkeit .pdv-day.is-sel {
	border-color: var(--pdv-petrol-dark) !important; background: var(--pdv-petrol-dark) !important;
	color: #FFFFFF !important; font-weight: 800 !important;
}
html body .pd-verfuegbarkeit .pdv-kw {
	border: 1px dashed var(--pdv-line-strong) !important; background: transparent !important;
	color: var(--pdv-ink-soft) !important; font-size: 12px !important; font-weight: 700 !important; white-space: nowrap;
}
html body .pd-verfuegbarkeit .pdv-kw:disabled { opacity: .4; }

html body .pd-verfuegbarkeit .pdv-off {
	height: var(--pdv-cell); display: flex; align-items: center; justify-content: center;
	font-size: 15px; color: var(--pdv-off); text-decoration: line-through;
}

html body .pd-verfuegbarkeit .pdv-link {
	border: none !important; background: transparent !important; padding: 10px 0 !important;
	color: var(--pdv-petrol-dark) !important; font-size: 14px !important; font-weight: 700 !important;
	text-decoration: underline !important; text-underline-offset: 3px;
}
html body .pd-verfuegbarkeit .pdv-link:disabled { opacity: .4; text-decoration: none !important; }
html body .pd-verfuegbarkeit [hidden] { display: none !important; }

/* Hover nur auf Geräten mit Maus – auf Touch bleibt sonst der Hover-Zustand nach dem Antippen hängen */
@media (hover: hover) and (pointer: fine) {
	html body .pd-verfuegbarkeit .pdv-day:not(.is-sel):hover { border-color: var(--pdv-petrol) !important; }
	html body .pd-verfuegbarkeit .pdv-kw:hover:not(:disabled) { border-color: var(--pdv-petrol) !important; color: var(--pdv-petrol-dark) !important; }
}


/* ---------- Auswahl ---------- */
html body .pd-verfuegbarkeit .pdv-summary {
	flex: 1 1 260px; min-width: 0; background: var(--pdv-bg-soft); border-radius: var(--pdv-radius);
	padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
html body .pd-verfuegbarkeit .pdv-summary-title { font-size: 15px; font-weight: 700; color: var(--pdv-ink-soft); }
html body .pd-verfuegbarkeit .pdv-count { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--pdv-petrol-dark); }
html body .pd-verfuegbarkeit .pdv-summary .pdv-link { padding: 4px 0 8px !important; }
html body .pd-verfuegbarkeit .pdv-line { font-size: 15px; line-height: 1.6; color: var(--pdv-ink); }
html body .pd-verfuegbarkeit .pdv-period {
	margin-top: auto !important; padding-top: 14px !important; font-size: 13px; color: var(--pdv-ink-soft);
}
html body .pd-verfuegbarkeit .pdv-summary.is-empty .pdv-count { color: var(--pdv-ink); font-size: 18px; }
html body .pd-verfuegbarkeit .pdv-summary.is-empty .pdv-line { color: var(--pdv-ink-soft); }

/* ---------- Mobil ---------- */
@media (max-width: 699px) {
	html body .pd-verfuegbarkeit { --pdv-kw: 38px; --pdv-gap: 4px; }
	html body .pd-verfuegbarkeit .pdv { gap: 12px; }
	html body .pd-verfuegbarkeit .pdv-hint { font-size: 14px; padding: 10px 12px !important; gap: 8px; }
	html body .pd-verfuegbarkeit .pdv-body { gap: 16px; }
	html body .pd-verfuegbarkeit .pdv-cal { flex-basis: 100%; max-width: none; border: 0; padding: 0; }
	html body .pd-verfuegbarkeit .pdv-label { font-size: 17px; }
	html body .pd-verfuegbarkeit .pdv-weekdays { font-size: 11px; }
	html body .pd-verfuegbarkeit .pdv-kw { font-size: 11px !important; }
	/* komplett vergangene / spätere Wochen ausblenden, keine feste Höhe */
	html body .pd-verfuegbarkeit .pdv-row-out { display: none; }
	html body .pd-verfuegbarkeit .pdv-rows { min-height: 0; }
	html body .pd-verfuegbarkeit .pdv-summary { flex-basis: 100%; padding: 16px 18px; }
	html body .pd-verfuegbarkeit .pdv-count { font-size: 20px; }
	html body .pd-verfuegbarkeit .pdv-line { font-size: 14px; }
	html body .pd-verfuegbarkeit .pdv-summary .pdv-link { padding: 12px 0 !important; }

}

/* Sehr schmale Geräte (z. B. iPhone SE 1. Gen., 320 px) */
@media (max-width: 359px) {
	html body .pd-verfuegbarkeit .pdv-kw-pre { display: none; }
	html body .pd-verfuegbarkeit { --pdv-kw: 32px; --pdv-gap: 3px; --pdv-cell: 40px; }
	html body .pd-verfuegbarkeit .pdv-day { font-size: 14px !important; }
	html body .pd-verfuegbarkeit .pdv-kw { font-size: 10px !important; }
}

/* ---------- Quform: Tage-Feld unsichtbar, Fehlermeldung sichtbar ---------- */
html body .quform .pdv-hidden-field .quform-label,
html body .quform .pdv-hidden-field textarea,
html body .quform .pdv-hidden-field input {
	position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important;
	padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important;
	clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
html body .quform .pdv-hidden-field .quform-input { border: 0 !important; padding: 0 !important; min-height: 0 !important; background: none !important; }
html body .quform .pdv-hidden-field.pdv-has-value .quform-error { display: none !important; }
html body .quform .pdv-hidden-readable { display: none !important; }
