/*
Theme Name:   TROY Child
Theme URI:    https://troy-restaurant.de/
Description:  Child-Theme für TROY Restaurant & Café (Hello Elementor).
Author:       LiD Werbeagentur
Template:     hello-elementor
Version:      0.8.0
Text Domain:  troy-child
*/

/* Farben und Typografie kommen aus dem Elementor Global Kit.
   Hier nur, was das Kit nicht abdeckt. */
:root {
	--troy-primary: #1F1B18;
	--troy-accent: #C2582B;
	--troy-accent-2: #6B7A3A;
	--troy-bg: #F5EFE6;
	--troy-white: #FFFFFF;
	--troy-text: #2B2522;
	--troy-radius: 8px;
}

html { scroll-behavior: smooth; }
body { color: var(--troy-text); }

/* ---------- Header: „Tisch reservieren“ als Button im Menü ---------- */
.troy-mainnav .elementor-nav-menu--main .troy-menu-cta > a.elementor-item {
	background: var(--troy-accent);
	color: var(--troy-white) !important;
	border-radius: var(--troy-radius);
	padding: 10px 20px !important;
	margin-left: 12px;
	transition: background-color .2s;
}
.troy-mainnav .elementor-nav-menu--main .troy-menu-cta > a.elementor-item:hover,
.troy-mainnav .elementor-nav-menu--main .troy-menu-cta > a.elementor-item:focus-visible {
	background: #A84A22;
}
.troy-mainnav .elementor-nav-menu--main .troy-menu-cta > a.elementor-item::after,
.troy-mainnav .elementor-nav-menu--main .troy-menu-cta > a.elementor-item::before { display: none; }
.troy-mainnav .elementor-nav-menu--dropdown .troy-menu-cta > a {
	background: var(--troy-accent) !important;
	justify-content: center;
	font-weight: 600;
}
/* Header beim Scrollen: leichter Schatten */
.troy-header.elementor-sticky--effects { box-shadow: 0 2px 16px rgba(0,0,0,.25); }

/* ---------- Footer ---------- */
.troy-footer { border-top: 1px solid rgba(245,239,230,.14); }
.troy-footer a { text-decoration: none; }
.troy-footer p { margin: 0 0 .6em; }
.troy-hours { list-style: none; margin: 0; padding: 0; }
.troy-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid rgba(245,239,230,.12); }
.troy-hours li span:first-child { font-weight: 600; }
.troy-copyright p { margin: 0; }
.troy-hours--light li { border-bottom-color: rgba(43,37,34,.12); }
.troy-on-dark .troy-eyebrow { color: #E9A27E; }

/* ---------- Bausteine für Seiten ---------- */
.troy-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.troy-badge {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	background: var(--troy-accent); color: var(--troy-white);
	font: 600 17px/1.2 'Inter', sans-serif;
}
.troy-badge--light { background: var(--troy-white); color: var(--troy-primary); border: 2px solid var(--troy-accent); }
.troy-eyebrow { font: 600 14px/1.2 'Inter', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--troy-accent); margin: 0; }

/* Outline-Button (zweite Aktion neben dem Akzent-Button) */
.troy-btn-outline .elementor-button {
	background: transparent !important; color: var(--troy-primary) !important;
	box-shadow: inset 0 0 0 2px var(--troy-primary);
}
.troy-btn-outline .elementor-button:hover { background: var(--troy-primary) !important; color: var(--troy-white) !important; }
.troy-btn-outline .elementor-button svg, .troy-btn-outline .elementor-button i { fill: currentColor !important; color: currentColor !important; }
.troy-on-dark .troy-btn-outline .elementor-button { color: var(--troy-white) !important; box-shadow: inset 0 0 0 2px var(--troy-white); }
.troy-on-dark .troy-btn-outline .elementor-button:hover { background: var(--troy-white) !important; color: var(--troy-primary) !important; }

/* Tabelle (Preise & Zeiten) */
.troy-table { width: 100%; border-collapse: collapse; font-size: 18px; background: var(--troy-white); border-radius: 12px; overflow: hidden; }
.troy-table th, .troy-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid rgba(43,37,34,.1); vertical-align: top; }
.troy-table th { width: 42%; font-weight: 600; color: var(--troy-primary); }
.troy-table td strong { color: var(--troy-accent); }
.troy-table tr:last-child th, .troy-table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) { .troy-table { font-size: 17px; } .troy-table th, .troy-table td { padding: 12px 14px; } }

/* Türkische Zeile */
.troy-tr-line { font-family: 'Playfair Display', serif; font-style: italic; font-size: 22px; color: var(--troy-primary); margin: 0 0 4px; }
.troy-tr-line + .troy-tr-note { font-size: 15px; color: #6b615a; margin: 0; }

/* FAQ-Akkordeon */
.troy-faq { display: grid; gap: 10px; }
.troy-faq__item { background: var(--troy-white); border-radius: 10px; border: 1px solid rgba(43,37,34,.12); }
.troy-faq__q {
	cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
	font: 600 18px/1.4 'Inter', sans-serif; color: var(--troy-primary);
}
.troy-faq__q::-webkit-details-marker { display: none; }
.troy-faq__q::after {
	content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	font-size: 26px; font-weight: 400; color: var(--troy-accent); transition: transform .2s;
}
.troy-faq__item[open] .troy-faq__q::after { transform: translateY(-50%) rotate(45deg); }
.troy-faq__a { padding: 0 20px 18px; }
.troy-faq__a p { margin: 0; }

/* Info-Leiste / Heute geöffnet */
.troy-infobar { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 32px; font: 500 17px/1.4 'Inter', sans-serif; color: var(--troy-primary); }
.troy-infobar li { display: flex; align-items: center; gap: 10px; }
.troy-infobar svg { color: var(--troy-accent); flex: 0 0 auto; }
.troy-infobar a { color: inherit; text-decoration: none; }
@media (max-width: 767px) { .troy-infobar { flex-direction: column; font-size: 16px; } }
.troy-today__status {
	display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px;
	font-size: 14px; font-weight: 600; vertical-align: 1px;
}
.troy-today__status.is-open { background: var(--troy-accent-2); color: #fff; }
.troy-today__status.is-soon { background: #E8DCC8; color: var(--troy-primary); }
.troy-today__status.is-closed { background: #E8DCC8; color: var(--troy-primary); }

/* Signature-Gerichte */
.troy-dishes { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 600px) { .troy-dishes { grid-template-columns: 1fr; gap: 16px; } }
.troy-dish { background: var(--troy-white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 14px rgba(31,27,24,.08); display: flex; flex-direction: column; }
.troy-dish__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.troy-dish__body { padding: 18px 20px 20px; }
.troy-dish__head { display: flex; align-items: baseline; gap: 12px; }
.troy-dish__name { margin: 0; font-size: 22px; flex: 1; }
.troy-dish__price { font: 700 18px/1.2 'Inter', sans-serif; color: var(--troy-accent); white-space: nowrap; }
.troy-dish__tr { font-style: italic; font-size: 15px; color: #6b615a; margin-top: 2px; }
.troy-dish__desc { margin: 8px 0 0; font-size: 16px; line-height: 1.5; }

/* Bewertungen (Platzhalter-Karten) */
.troy-reviews { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .troy-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .troy-reviews { grid-template-columns: 1fr; } }
.troy-review { background: var(--troy-bg); border: 2px dashed rgba(194,88,43,.45); border-radius: 12px; padding: 20px; min-height: 140px; }
.troy-review__label { display: block; font: 600 13px/1 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--troy-accent); margin-bottom: 10px; }
.troy-review p { margin: 0; font-size: 16px; }
.troy-review--real { background: var(--troy-white); border: 1px solid rgba(43,37,34,.12); box-shadow: 0 2px 14px rgba(31,27,24,.06); display: flex; flex-direction: column; gap: 12px; }
.troy-review__stars { color: #F2A900; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.troy-review blockquote { margin: 0; padding: 0; border: 0; flex: 1; }
.troy-review blockquote p { font-size: 16px; line-height: 1.55; color: var(--troy-text); font-style: italic; }
.troy-review__meta { font-size: 14px !important; color: #6b615a; }
.troy-review__meta strong { color: var(--troy-primary); }

/* Kacheln (Restaurant / Frühstück / Feiern) */
.troy-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.troy-tile .elementor-widget-button { margin-top: auto; }

/* Karte (2-Klick) */
.troy-map { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; min-height: 320px; border-radius: 12px; overflow: hidden; background: var(--troy-bg); }
.troy-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.troy-map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 24px; font-size: 15px; }
.troy-map__consent p { margin: 0; max-width: 42ch; }
.troy-map__title { font: 600 22px/1.2 'Playfair Display', serif; color: var(--troy-primary); }
.troy-map__btn {
	border: 0; cursor: pointer; padding: 12px 24px; border-radius: var(--troy-radius);
	background: var(--troy-accent); color: #fff; font: 600 16px/1 'Inter', sans-serif;
}
.troy-map__btn:hover { background: #A84A22; }

/* Reservierung / OpenTable */
.troy-ot { background: var(--troy-white); border-radius: 12px; min-height: 120px; }
/* OpenTable „standard“-Widget ist 224 px breit – iframe auf diese Breite setzen, damit es mittig steht */
.troy-ot iframe { display: block; margin: 0 auto; width: 224px !important; max-width: 100%; }
.troy-ot { padding: 16px 0; }
.troy-ot--pending { background: var(--troy-bg); border: 2px dashed rgba(194,88,43,.45); padding: 28px; }
.troy-ot__title { font: 600 24px/1.3 'Playfair Display', serif; color: var(--troy-primary); margin: 0 0 8px; }
.troy-ot__call {
	display: inline-block; margin: 8px 0; padding: 14px 24px; border-radius: var(--troy-radius);
	background: var(--troy-accent); color: #fff !important; font: 600 17px/1 'Inter', sans-serif; text-decoration: none;
}
.troy-ot__call:hover { background: #A84A22; }
.troy-ot__todo { font-size: 14px; color: #6b615a; margin: 8px 0 0; }
.troy-ot__fallback { font-size: 15px; margin-top: 12px; text-align: center; }
.troy-ot__fallback .troy-ot__call { padding: 0; background: none; color: var(--troy-accent) !important; font-size: 15px; }

/* Kontaktliste, Checkliste, Park-Badge */
.troy-contact { list-style: none; margin: 0; padding: 0; }
.troy-contact li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(43,37,34,.1); }
.troy-contact li span { min-width: 92px; font-weight: 600; color: var(--troy-primary); }
.troy-checklist { list-style: none; margin: 0 0 12px; padding: 0; }
.troy-checklist li { position: relative; padding: 6px 0 6px 30px; }
.troy-checklist li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--troy-accent-2); font-weight: 700; }
.troy-parking-badge .elementor-heading-title {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 10px;
	background: #1F4E9B; color: #fff !important; font: 700 30px/1 'Inter', sans-serif !important;
}

/* Rechtstexte */
.troy-legal h2 { font-size: 24px; margin: 28px 0 8px; }
.troy-legal p { margin: 0 0 12px; }

/* Formulare */
.troy-form .elementor-field-group .elementor-field-textual:focus { border-color: var(--troy-accent) !important; box-shadow: 0 0 0 2px rgba(194,88,43,.2); }
.troy-form .elementor-field-type-acceptance label { font-weight: 400 !important; font-size: 15px; }
.troy-form .e-form__indicators__indicator--state-active .e-form__indicators__indicator__number,
.troy-form .e-form__indicators__indicator--state-completed .e-form__indicators__indicator__number { background: var(--troy-accent); border-color: var(--troy-accent); color: #fff; }
.troy-form .e-form__indicators__indicator--state-active .e-form__indicators__indicator__label,
.troy-form .e-form__indicators__indicator--state-completed .e-form__indicators__indicator__label { color: var(--troy-accent); }
.troy-form .e-form__buttons__wrapper__button-previous { background: transparent !important; color: var(--troy-primary) !important; box-shadow: inset 0 0 0 2px var(--troy-primary); }

/* Bilder mit runden Ecken */
.troy-rounded img { border-radius: 12px; }

/* ---------- Mobile Sticky-Leiste ---------- */
.troy-mobile-bar { display: none; }
@media (max-width: 767px) {
	.troy-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
		background: var(--troy-primary);
		box-shadow: 0 -2px 12px rgba(0,0,0,.2);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.troy-mobile-bar a {
		display: flex; align-items: center; justify-content: center; gap: 8px;
		min-height: 56px;
		font: 600 17px/1 'Inter', sans-serif;
		color: var(--troy-white); text-decoration: none;
	}
	.troy-mobile-bar__reserve { background: var(--troy-accent); }
	.troy-mobile-bar a:active { opacity: .85; }
	body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Kein seitliches Scrollen auf dem Handy (z. B. zugeklapptes Elementor-Dropdown ragt rechts heraus). clip statt hidden: kein Scroll-Container, sticky bleibt intakt. */
html, body { overflow-x: clip; }
/* Lange URLs in Impressum/Datenschutz umbrechen */
.troy-legal { overflow-wrap: anywhere; }
/* Hochformat-Bilder am Handy flacher zuschneiden */
@media (max-width: 767px) {
	.troy-img-crop-mobile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
