/*
Theme Name: TripleWave
Theme URI: https://triplewave.de
Author: TripleWave GmbH
Description: Professionelles WordPress-Theme für Retail, Wholesale, Prepping und Marktplatzvertretung.
Version: 6.0.3
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: triplewave
*/

:root {
  --tw-ice: #C1E9F4;
  --tw-sky: #94CFE9;
  --tw-blue: #3484CA;
  --tw-deep: #1363AA;
  --tw-navy: #005D91;
  --tw-ink: #123143;
  --tw-muted: #5F7480;
  --tw-line: #DCE7EC;
  --tw-soft: #F5F8FA;
  --tw-white: #FFFFFF;
  --tw-shadow: 0 18px 50px rgba(18, 49, 67, .09);
  --tw-radius: 18px;
  --tw-font: Montserrat, "Avenir Next", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
/* Fallback for direct hash links; JavaScript calculates the exact sticky-header offset. */
#leistungen, #markenvertretung, #sortiment, #kontakt, #kontaktformular { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--tw-white);
  color: var(--tw-ink);
  font-family: var(--tw-font);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--tw-deep); }
a:hover { color: var(--tw-navy); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--tw-ink); line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.75rem, 6vw, 5.3rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.25em; }

.tw-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.tw-section { padding: clamp(74px, 9vw, 122px) 0; }
.tw-section-soft { background: var(--tw-soft); border-block: 1px solid #E8EFF3; }
.tw-kicker,
.tw-eyebrow {
  color: var(--tw-deep);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tw-section-head { max-width: 800px; margin-bottom: 48px; }
.tw-section-head .tw-kicker { margin-bottom: 14px; }
.tw-section-head h2 { margin-bottom: 18px; }
.tw-section-head p { max-width: 710px; color: var(--tw-muted); font-size: 1.05rem; }

.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--tw-navy);
  color: var(--tw-white);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease;
}
.button:hover,
button[type="submit"]:hover {
  transform: none;
  background: #064F76;
  color: var(--tw-white);
  box-shadow: none;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(52, 132, 202, .32);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: var(--tw-ink);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(220,231,236,.92);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 34px; }
.site-branding img { width: 210px; max-height: 54px; object-fit: contain; object-position: left center; }
.primary-navigation ul { display: flex; align-items: center; gap: 27px; margin: 0; padding: 0; list-style: none; }
.primary-navigation a { color: var(--tw-ink); font-size: .91rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover { color: var(--tw-deep); }
.menu-toggle {
  display: none;
  padding: 9px 14px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: #fff;
  color: var(--tw-ink);
  font-weight: 700;
}

/* Hero – ruhiger, einfarbiger Hintergrund ohne dekorative Vektorgrafik. */
.tw-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 690px;
  display: grid;
  align-items: center;
  background: #F5F8FA;
}
.tw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: center; gap: clamp(50px, 8vw, 112px); padding-block: clamp(90px, 11vw, 142px); }
.tw-hero-content { max-width: 760px; }
.tw-hero-content .tw-eyebrow { margin-bottom: 22px; }
.tw-hero-content h1 { max-width: 820px; margin-bottom: 24px; }
.tw-hero-copy { max-width: 760px; color: var(--tw-muted); font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.7; }
.tw-hero-content .button { margin-top: 12px; }
.tw-hero-mark { display: flex; align-items: center; justify-content: center; }
.tw-hero-mark img { width: min(330px, 80%); filter: none; }

/* Services */
.tw-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tw-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px 26px;
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  background: var(--tw-white);
  box-shadow: 0 8px 24px rgba(18,49,67,.035);
}
.tw-service-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  border-radius: 15px;
  background: #EAF6FB;
  color: var(--tw-deep);
}
.tw-service-icon svg { width: 36px; height: 36px; }
.tw-card h3 { margin-bottom: 13px; }
.tw-card p { margin: 0; color: var(--tw-muted); font-size: .92rem; line-height: 1.72; }

/* Marketplace representation */
.tw-market-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(48px, 7vw, 90px); }
.tw-market-visual { margin: 0; }
.tw-market-visual img { width: 100%; height: auto; aspect-ratio: 1040 / 800; object-fit: contain; border-radius: 19px; }
.tw-market-visual figcaption { margin-top: 12px; color: #7B8D96; font-size: .72rem; text-align: center; }
.tw-market-content .tw-kicker { margin-bottom: 14px; }
.tw-market-content h2 { margin-bottom: 22px; }
.tw-market-content > p { color: var(--tw-muted); font-size: 1.02rem; }
.tw-check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.tw-check-list li {
  position: relative;
  padding: 15px 0 15px 36px;
  border-bottom: 1px solid #DDE7EB;
  color: #405D6B;
  font-size: .94rem;
}
.tw-check-list li:last-child { border-bottom: 0; }
.tw-check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 14px;
  height: 7px;
  border-left: 2.5px solid var(--tw-blue);
  border-bottom: 2.5px solid var(--tw-blue);
  transform: rotate(-45deg);
}

/* Categories */
.tw-category-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; }
.tw-category-card {
  min-height: 345px;
  padding: clamp(31px, 4vw, 46px);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  background: var(--tw-white);
}
.tw-category-kbeauty { background: linear-gradient(145deg, #EAF7FB, #F7FCFD); border-color: #CBE5EF; }
.tw-category-label { display: inline-block; margin-bottom: 20px; color: var(--tw-deep); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tw-category-card h3 { max-width: 600px; font-size: clamp(1.55rem, 2.5vw, 2.2rem); }
.tw-category-card p { color: var(--tw-muted); }
.tw-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.tw-tags span { padding: 8px 11px; border: 1px solid #D2E3EA; border-radius: 999px; background: #F8FBFC; color: #405D6B; font-size: .76rem; font-weight: 700; }

/* Contact form - restored visual language from version 2 */
.tw-contact-home { background: var(--tw-soft); border-top: 1px solid #E5EEF2; }
.tw-contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 42px; align-items: start; }
.tw-contact-panel {
  padding: 34px;
  border-radius: var(--tw-radius);
  background: linear-gradient(145deg, var(--tw-navy), #064E72);
  color: var(--tw-white);
  box-shadow: var(--tw-shadow);
}
.tw-contact-panel h2,
.tw-contact-panel h3 { color: var(--tw-white); }
.tw-contact-panel a { color: var(--tw-white); }
.tw-contact-panel > p { color: rgba(255,255,255,.76); }
.tw-contact-detail { margin: 25px 0; }
.tw-contact-detail small { display: block; margin-bottom: 3px; color: var(--tw-sky); font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.tw-form {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--tw-line);
  border-radius: var(--tw-radius);
  background: var(--tw-white);
  box-shadow: var(--tw-shadow);
}
.tw-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.tw-field { margin-bottom: 18px; min-width: 0; }
.tw-field-full { grid-column: 1 / -1; }
.tw-field label:not(.tw-check) { display: block; margin-bottom: 6px; color: var(--tw-ink); font-size: .83rem; font-weight: 750; }
.tw-field input,
.tw-field textarea,
.tw-field select {
  width: 100%;
  border: 1px solid #BFD3DD;
  border-radius: 12px;
  background: #FBFDFE;
  color: var(--tw-ink);
  padding: 12px 14px;
}
.tw-field input,
.tw-field select { min-height: 50px; }
.tw-field textarea { min-height: 150px; resize: vertical; }
.tw-field input:focus,
.tw-field textarea:focus,
.tw-field select:focus { border-color: var(--tw-blue); box-shadow: 0 0 0 3px rgba(52,132,202,.12); outline: 0; }
.tw-check { display: flex; align-items: flex-start; gap: 10px; color: var(--tw-muted); font-size: .78rem; line-height: 1.55; }
.tw-check input { width: 18px; min-height: 18px; margin-top: 3px; flex: 0 0 auto; }
.tw-honeypot { position: absolute !important; left: -99999px !important; }
.tw-notice { margin-bottom: 18px; padding: 14px 16px; border-radius: 9px; font-size: .88rem; }
.tw-notice-success { background: #EAF8EF; color: #1F6F41; }
.tw-notice-error { background: #FFF1F1; color: #9A2F2F; }

/* Page templates and legal content */
.page-hero { padding: 72px 0 34px; background: var(--tw-soft); border-bottom: 1px solid var(--tw-line); }
.page-hero .tw-kicker { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero p { max-width: 700px; color: var(--tw-muted); }
.entry-content { width: min(840px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 100px; }
.entry-content h2 { margin-top: 1.7em; font-size: 2rem; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content p,
.entry-content li { color: #405D6B; }
.tw-legal-note { margin-bottom: 28px; padding: 18px 20px; border-left: 4px solid var(--tw-blue); background: #EEF7FB; color: #405D6B; }
.tw-imprint-exact { font-size: 1rem; line-height: 1.72; }
.tw-imprint-exact p { margin: 0 0 1.45em; color: var(--tw-ink); }
.tw-imprint-exact a { overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding: 70px 0 24px; background: #073E5D; color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .95fr; gap: 60px; }
.footer-brand img { width: 255px; max-height: 80px; object-fit: contain; object-position: left center; margin-bottom: 22px; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.7); }
.site-footer h2 { color: var(--tw-white); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu,
.footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-menu li,
.footer-contact li { margin-bottom: 9px; }
.footer-menu a,
.footer-contact a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-menu a:hover,
.footer-contact a:hover { color: var(--tw-white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.56); font-size: .78rem; }

/* WordPress defaults */
.alignwide { width: min(1120px, 100%); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .gallery-caption { max-width: 100%; }

@media (max-width: 1080px) {
  .tw-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-card { min-height: 290px; }
  .tw-market-grid { grid-template-columns: 1fr; }
  .tw-market-visual { max-width: 760px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 74px; }
  .site-branding img { width: 185px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 74px; padding: 18px 24px 24px; border-bottom: 1px solid var(--tw-line); background: #fff; box-shadow: 0 15px 30px rgba(18,49,67,.08); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation a { display: block; padding: 11px 0; }
  .tw-hero { min-height: auto; }
  .tw-hero-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 82px 130px; }
  .tw-hero-mark { justify-content: flex-start; }
  .tw-hero-mark img { width: 210px; }
  .tw-category-grid,
  .tw-contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .tw-container,
  .entry-content { width: min(100% - 30px, 1180px); }
  .tw-section { padding: 68px 0; }
  .tw-services { grid-template-columns: 1fr; }
  .tw-card { min-height: auto; }
  .tw-hero-grid { padding-block: 70px 105px; }
  .tw-hero-mark img { width: 155px; }
  .tw-form-grid { grid-template-columns: 1fr; }
  .tw-field-full { grid-column: auto; }
  .tw-form,
  .tw-contact-panel { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
