/* Heftwell — "Kontakt" page */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.cbox { padding: 30px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cbox:hover { transform: translateY(-4px); border-color: var(--sage); box-shadow: var(--shadow); }
.cbox-ico { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--oat-2); color: var(--sage-d); font-size: 1.5rem; }
.cbox p { color: var(--ink-soft); font-size: .96rem; }
.cbox-link { display: inline-block; color: var(--sage-d); font-weight: 800; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; word-break: break-word; }
.cbox-link:hover { color: var(--clay); }

/* ----- form + order panel ----- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.cform { padding: 36px 34px 32px; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.ffield { position: relative; display: flex; flex-direction: column; }
.ffull { grid-column: 1 / -1; }
.ffield > label { margin-bottom: 7px; font-size: .86rem; font-weight: 800; letter-spacing: .02em; }
.opt { margin-left: 6px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.ffield input[type="text"], .ffield input[type="email"], .ffield input[type="tel"], .ffield input[type="number"], .ffield select, .ffield textarea {
	width: 100%; padding: 13px 16px; background: var(--oat); border: 1.5px solid var(--line); border-radius: 12px; color: var(--ink); outline: none;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.ffield textarea { min-height: 150px; resize: vertical; }
.ffield select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233f5547' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus { background: #fff; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(93, 119, 101, .16); }
.ferr { display: none; margin-top: 6px; color: var(--bad); font-size: .82rem; font-weight: 600; }
.ffield.bad .ferr { display: block; }
.ffield.bad input:not([type="checkbox"]), .ffield.bad select, .ffield.bad textarea { border-color: var(--bad); background: #fdf3f1; }
.fconsent { display: flex !important; align-items: flex-start; gap: 12px; margin: 0 !important; font-size: .88rem !important; font-weight: 500 !important; letter-spacing: 0 !important; color: var(--ink-soft); cursor: pointer; }
.fconsent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--sage-d); }
.fconsent a { color: var(--sage-d); text-decoration: underline; }
.ffield.bad .fconsent { color: var(--bad); }

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.fsubmit { padding: 15px 34px; border: 0; border-radius: 999px; background: var(--sage-d); color: #fff; font-weight: 800; transition: background .2s, transform .2s; }
.fsubmit:hover { background: var(--clay); transform: translateY(-2px); }
.fsubmit.sending { opacity: .65; pointer-events: none; }
.fnote { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.fstatus { margin: 16px 0 0; color: var(--bad); font-size: .9rem; font-weight: 600; }
.fstatus:empty { display: none; }

.order-panel { position: sticky; top: calc(var(--head-h) + 20px); padding: 28px 26px 26px; background: var(--paper); border: 1px solid var(--line); border-top: 5px solid var(--sage-d); border-radius: 18px; box-shadow: var(--shadow); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-head h3 { margin: 0; font-size: 1.15rem; }
.order-count { min-width: 30px; height: 30px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 15px; background: var(--sage-d); color: #fff; font-size: .84rem; font-weight: 800; }
.oempty { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.oempty a { color: var(--sage-d); font-weight: 700; text-decoration: underline; }
.oempty.hide, .order-foot.hide { display: none; }
.obox { display: grid; }
.oitem { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.oitem img, .oitem > span { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: var(--oat-2); }
.oitem-name { margin: 0; font-weight: 700; font-size: .9rem; line-height: 1.3; }
.oitem-meta { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.order-foot { margin-top: 16px; }
.ototal { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ototal b { font-family: var(--serif); font-size: 1.5rem; }
.ohint { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.oclear { padding: 0; border: 0; background: none; color: var(--bad); font-size: .86rem; font-weight: 700; text-decoration: underline; }

/* ----- thank-you popup ----- */
.thanks { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(27, 22, 17, .6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.thanks.open { opacity: 1; visibility: visible; }
.thanks-card { width: min(460px, 100%); padding: 44px 36px 38px; background: #fff; border-top: 6px solid var(--sage-d); border-radius: 18px; text-align: center; box-shadow: var(--shadow-lg); transform: translateY(18px); transition: transform .3s; }
.thanks.open .thanks-card { transform: none; }
.thanks-ico { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--sage-d); color: #fff; font-size: 1.9rem; }
.thanks-card p { margin-bottom: 24px; color: var(--ink-soft); }
.thanks-close { padding: 13px 34px; border: 0; border-radius: 999px; background: var(--sage-d); color: #fff; font-weight: 800; }
.thanks-close:hover { background: var(--clay); }

@media (max-width: 980px) {
	.form-wrap { grid-template-columns: 1fr; }
	.order-panel { position: static; }
}

@media (max-width: 600px) {
	.cform { padding: 26px 20px 24px; }
	.form-grid { grid-template-columns: 1fr; }
}
