/* WIRE-800 — Water Analysis Box styles. Font: Spartan (already loaded site-wide).
   Tokens: red #2382c3, navy #003C5A, deep navy #14344E, panel grey #EDEDED, green #2E9E5B. */

.swi-water,
.swi-water * { box-sizing: border-box; }

.swi-water { font-family: 'Spartan', sans-serif; min-height:500px; }
.swi-water [hidden] { display: none !important; }

.swi-water__inner { max-width: 1100px; margin: 0 auto; }

/* ---- Section 1: search ---- */
.swi-water__search .swi-water__inner { padding-top: 10px; padding-bottom: 10px; }
.swi-water__title,
.swi-water__title, .swi-water__detail-title {
	color: #2382c3;
	font-weight: 800;
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 20px;
}
.swi-water__intro {
	color: #000;
	font-size: 15px;
	line-height: 1.5;
	max-width: 520px;
	margin: 0 0 18px;
}

.swi-water__form { display: flex; gap: 14px; align-items: stretch; max-width: 560px; margin-top: 6px; }
.swi-water__field { position: relative; flex: 1 1 auto; }
/* selectors scoped under .swi-water to outrank the theme's global
   input[type=text]{border-radius:0} / element rules (specificity) */
.swi-water .swi-water__input {
	width: 100%;
	border: 1px solid #003C5A;
	background: #fff;
	border-radius: 30px;
	padding: 16px 26px;
	font-family: 'Spartan', sans-serif;
	font-size: 15px;
	color: #000;
	-webkit-appearance: none;
	appearance: none;
}
.swi-water .swi-water__input:focus-visible {
	box-shadow: none !important;
}
.swi-water .swi-water__input:focus { border-color: #2382c3; box-shadow: 0 0 0 2px rgba(255,40,80,.25); }
.swi-water .swi-water__btn {
    background: #2382c3;
    color: #fff;
    border: 0;
    border-radius: 30px;
    padding: 0 34px;
    font-family: 'Spartan', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    -webkit-appearance: none;
    appearance: none;
}
.swi-water .swi-water__btn:hover { background: #2382c3; }
/* outline is killed globally by `* { outline:none !important }` — use box-shadow for a11y focus */
.swi-water__info:focus,
.swi-water__info:focus-visible,
.swi-water__gk:focus,
.swi-water__gk:focus-visible,
.swi-water__btn:focus-visible { box-shadow: 0 0 0 2px #2382c3; border-radius: 4px; }

.swi-water__suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    list-style: none;
    margin: 0; padding: 6px 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    max-height: 280px;
    overflow: auto;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.swi-water__suggest li { padding: 10px 22px; cursor: pointer; font-size: 14px; color: #003C5A; }
.swi-water__suggest li:hover,
.swi-water__suggest li.is-active { background: #EDEDED; }

/* loading spinner while the autocomplete/resolve AJAX is in flight */
.swi-water__field.is-loading .swi-water__input { padding-right: 48px; }
.swi-water__field.is-loading::after {
	content: '';
	position: absolute;
	right: 18px;
	top: 24px;
	margin-top: -9px;
	width: 18px;
	height: 18px;
	border: 2px solid #d9d9d9;
	border-top-color: #2382c3;
	border-radius: 50%;
	animation: swi-water-spin .7s linear infinite;
	pointer-events: none;
}
.swi-water__btn.is-loading { opacity: .75; cursor: default; }
@keyframes swi-water-spin { to { transform: rotate(360deg); } }

.swi-water__gk {
	display: inline-block;
	margin-top: 16px;
	color: #000;
	font-size: 13px;
	text-decoration: underline;
}
.swi-water__msg { font-size: 14px; margin-top: 16px; line-height: 1.5; }
.swi-water__msg--error { color: #2382c3; }
.swi-water__msg--ambiguous { color: #003C5A; }

/* ---- Result summary panel (grey) ---- */
.swi-water__result { background: #EDEDED; margin-top: 34px; }
.swi-water__result .swi-water__inner { padding-top: 48px; padding-bottom: 48px; }
.swi-water__result-heading { color: #003C5A; font-weight: 800; font-size: 26px; line-height: 1.2; margin: 0 0 22px; }
.swi-water__hl { color: #2382c3; }
.swi-water__haerte {
	color: #003C5A;
	font-size: 16px;
	line-height: 1.55;
	margin: 0 0 50px;
	font-weight: 500;
}
.swi-water__summary-heading {
	color: #003C5A;
	font-weight: 700;
	font-size: 16px;
	margin: 0 0 25px;
	letter-spacing: 0.5px;
}

/* ---- Tables (shared white-pill-row pattern) ---- */
.swi-water__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 8px;
	max-width: 540px;
}
.swi-water__table thead th {
	font-weight: 700;
	font-size: 13px;
	text-align: center;
	padding: 0 3px 6px;
	/* width: 90px; */
}
.swi-water__table thead th.swi-water__col-name { text-align: left; }
.swi-water__table tbody th.swi-water__param, .swi-water__table tbody .th.swi-water__param {
	text-align: left;
	font-weight: 700;
	font-size: 14px;
	padding: 0 16px 0 0;
	vertical-align: middle;
	white-space: nowrap;
	background-color: unset;
}
.swi-water__table tbody td {
	background: #fff;
	color: #000;
	text-align: center;
	padding: 6px 12px 6px;
	font-size: 14px;
	font-weight: 600;
}
.swi-water__table tbody td:first-of-type { border-radius: 30px 0 0 30px; }
.swi-water__table tbody td:last-child  { border-radius: 0 30px 30px 0; }

.swi-water__table--summary thead th,
.swi-water__table--summary tbody th.swi-water__param { color: #003C5A; }

/* ---- Section 2: detail / accordions ---- */
.swi-water__detail .swi-water__inner { padding-top: 56px; padding-bottom: 40px; }
.swi-water__download-text {
	color: #000;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 18px;
}
.swi-water__download {
    display: block; color: #003C5A; font-size: 15px; text-decoration: none;
    padding: 14px 0; border-top: 1px solid #2382c3; border-bottom: 1px solid #2382c3;
    margin-bottom: 50px;
}
.swi-water__download:hover { color: #2382c3; }

.swi-water__accordions { margin-top: 34px; }
.swi-water__acc { margin-bottom: 10px; }
.swi-water__acc-head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: #003C5A; color: #fff; border: 0; cursor: pointer;
    border-radius: 12px; padding: 18px 24px;
    font-family: 'Spartan', sans-serif; font-weight: 700; font-size: 18px; text-align: left;
}
.swi-water__acc.is-open .swi-water__acc-head { border-radius: 12px 12px 0 0; }
.swi-water__acc-title { padding-right: 16px; }
.swi-water__acc-icon {
    width: 26px; height: 26px; flex: 0 0 auto; position: relative;
     border-radius: 50%;
}
.swi-water__acc-icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 45%;
	width: 20px;
	height: 20px;
	transform: translate(-50%, -50%) rotate(0deg);
	mask-image: url("../../images/arrow-tab-icon.svg");
	background-color: #fff;
	mask-size: cover;
	mask-position: center;
	mask-repeat: no-repeat;
}
.swi-water__acc.is-open .swi-water__acc-icon::before {
	top: 55%;
	transform: translate(-50%, -50%) rotate(-180deg);
}

/* animate to natural height via grid-template-rows 0fr -> 1fr (no max-height guess) */
.swi-water__acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.swi-water__acc.is-open .swi-water__acc-body { grid-template-rows: 1fr; }
/* the grid child is a BARE clipper (no padding) so it collapses fully to 0 — padding/bg
   live on the inner wrapper, otherwise the padding box leaks below a closed accordion */
.swi-water__acc-clip { min-height: 0; overflow: hidden; }
.swi-water__acc-inner {
	background: #003C5A;
	border-radius: 0 0 12px 12px;
	padding: 4px 70px 26px 40px;
	overflow-x: auto;
}

.swi-water__table--detail thead th,
.swi-water__table--detail tbody th.swi-water__param { color: #fff; }

/* ---- Ergebnis cell: smiley + percentage badge ---- */
.swi-water__smiley {
    display: inline-block; width: 24px; height: 24px; vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='12'%20fill='%232E9E5B'/%3E%3Ccircle%20cx='8.5'%20cy='10'%20r='1.3'%20fill='%23fff'/%3E%3Ccircle%20cx='15.5'%20cy='10'%20r='1.3'%20fill='%23fff'/%3E%3Cpath%20d='M7.5%2014%20Q12%2018%2016.5%2014'%20stroke='%23fff'%20stroke-width='1.6'%20fill='none'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.swi-water__badge {
    display: inline-block; min-width: 34px; padding: 6px 9px;
    border-radius: 16px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; text-align: center;
}
.swi-water__badge--ok { background: #2E9E5B; }

/* ---- Info ⓘ tooltip ---- */
.swi-water__info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 10px;
	border: 1px solid #fff;
	border-radius: 50%;
	font-size: 9px;
	font-style: normal;
	cursor: help;
	vertical-align: middle;
	margin-left: 5px;
	padding: 5px;
	z-index: 10;
}
.swi-water__info::after { content: 'i'; font-weight: 700; }
.swi-water__tip {
	position: absolute;
	background: #fff;
	color: #000;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.4;
	padding: 20px 8px 12px 20px;
	border-radius: 8px;
	width: 220px;
	max-width: 500px;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s;
	box-shadow: 0 4px 8px rgba(0,0,0,.1);
	top: -5px;
	left: -5px;
	z-index: 12;
	display: inline-block;
	white-space: break-spaces;
}
.swi-water__result .swi-water__param .swi-water__info {
	border-color: #003c5a;
}
.swi-water__tip::before {
	content: 'i';
	font-weight: 700;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 10px;
	border: 1px solid #003C5A;
	border-radius: 50%;
	font-size: 9px;
	font-style: normal;
	cursor: help;
	vertical-align: middle;
	margin-left: 5px;
	padding: 0px;
	z-index: 10;
	position: absolute;
	top: 4px;
	left: -1px;
}
.swi-water__info:hover .swi-water__tip,
.swi-water__info:focus .swi-water__tip,
.swi-water__info.is-open .swi-water__tip { opacity: 1; visibility: visible; }

.swi-water__result .swi-water__inner {
	padding: 48px 80px;
}
.swi-water__result .swi-water__inner .swi-water__result-heading {
	margin-bottom: 50px;
}
.swi-water__table.swi-water__table--summary tbody tr td:nth-child(2) {
	border-radius: 30px 0 0 30px;
}
.swi-water__table.swi-water__table--summary tbody tr td:last-child {
	border-radius: 0 30px 30px 0;
}
.swi-water__acc-inner .swi-water__table {
	max-width: 100%;
}
.swi-water__result .swi-water__table tbody td {
	padding: 13px 12px 10px;
	color: #003C5A;
}
.swi-water__detail {
	margin-bottom: 100px;
	padding: 20px 80px 0;
}
.swi-water__detail .swi-water__acc-head {
	font-size: 16px;
}
.swi-water__table tbody td {
	min-width: 80px;
}

/* ---- Responsive ---- */
/** Responsive adjustments for Water Analysis module */

/* Make main container paddings responsive */
@media (max-width: 1024px) {
    .swi-water__inner,
    .swi-water__result .swi-water__inner,
    .swi-water__detail {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .swi-water__result .swi-water__inner {
        padding: 32px 20px !important;
    }
    .swi-water__detail {
        padding: 12px 12px 0 !important;
    }
	.swi-water__table tbody td {
		min-width: unset;
	}
}


/* Accordion/Panel margins and paddings on smaller screens */
@media (max-width: 767px) {
    .swi-water__accordions { margin-top: 20px; }
    .swi-water__acc-head,
    .swi-water__detail .swi-water__acc-head {
        font-size: 15px;
        padding: 12px 12px;
    }
    .swi-water__acc-inner {
        padding: 4px 10px 20px 10px;
    }
    .swi-water__download {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* General element resizing and spacing for mobile */
@media (max-width: 639px) {
    .swi-water__title, .swi-water__detail-title { font-size: 24px; }
    .swi-water__form { flex-direction: column; }
    .swi-water__btn { padding: 15px; }
    .swi-water__table tbody th.swi-water__param { white-space: normal; }
    .swi-water__acc-head { font-size: 16px; padding: 15px 18px; }
    .swi-water__title,
    .swi-water__detail-title {
        font-size: 22px;
        margin-bottom: 14px;
    }
    .swi-water__intro,
    .swi-water__download-text {
        font-size: 13px;
        margin-bottom: 10px;
    }
    .swi-water__form { max-width: 100%; gap: 8px; }
    .swi-water__result .swi-water__inner {
        padding: 18px 10px !important;
    }
    .swi-water__table thead th,
    .swi-water__table tbody td,
    .swi-water__table tbody th.swi-water__param {
        font-size: 10px;
        padding: 4px 6px;
    }
    .swi-water__msg { font-size: 13px; margin-top: 8px; }
    .swi-water__haerte { font-size: 13px; margin-bottom: 22px; }
    .swi-water__summary-heading { font-size: 14px; margin-bottom: 16px; }
    .swi-water__result-heading { font-size: 18px; margin-bottom: 18px; }
    .swi-water__result .swi-water__table tbody td { padding: 8px 7px 8px; }
    .swi-water__detail { margin-bottom: 50px; }
    .swi-water__download { margin-bottom: 28px; }
    .swi-water .swi-water__btn {        padding: 10px;    }
    .swi-water .swi-water__input {        font-size: 13px;    }
    .vc_row.wpb_row.vc_inner.vc_row-fluid.simple-elements-list {        flex-flow: column;    }
    .video-gif-box.style3 .video-gif-media.media-video .video-holder {        height: auto;    }
    .box-floating-content.bottom_left .box-floating-content-wrapper::before {        transform: rotate(0deg);    }
    .box-floating-content.style4 .box-floating-content-wrapper-inner {        padding: 40px 40px 0;    }
}

/* Make tooltips more usable on mobile */
@media (max-width: 480px) {
    .swi-water__tip {
        width: 150px;
        padding: 18px 6px 10px 14px;
        font-size: 11px;
    }
    .swi-water__acc-head, .swi-water__detail .swi-water__acc-head {        font-size: 12px;    }
    .swi-water__table tbody th.swi-water__param, .swi-water__table tbody .th.swi-water__param {        font-size: 10px;    }
    .swi-water__badge {        font-size: 8px;    }
    .swi-water__table thead th, .swi-water__table tbody td, .swi-water__table tbody th.swi-water__param {      font-size: 9px;   padding:  2px 0;    }
}

