/*
Theme Name: preweal
Theme URI: https://p.michael-jung.com
Author: Michael Jung – Webseitenprofi
Author URI: https://michael-jung.com
Description: Custom WordPress Theme für preweal sports GmbH – Schultertrainingsgerät ROTATOR. CI: #214A47 · #F5B000 · #C6D9DC. Font: Wix Madefor. Zweisprachig DE/EN via Polylang.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: preweal
*/

/* ================================================================
   PREWEAL THEME – MAIN STYLESHEET
   CI: Dunkelgrün #214A47 · Gold #F5B000 · Hellblau #C6D9DC
   Font: Wix Madefor Display + Wix Madefor Text
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700;800&family=Wix+Madefor+Text:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --green:      #214A47;
  --green-dark: #172f2d;
  --green-pale: #e4eef0;
  --gold:       #F5B000;
  --blue:       #C6D9DC;
  --blue-light: #deeaec;
  --off-white:  #f7f7f7;
  --white:      #ffffff;
  --text:       #1a2e2c;
  --text-soft:  #5a7472;
  --max-w:      1200px;

  /* Asymmetrische Radien – Signature-Look */
  --r-left:  0px 8px 8px 0px;   /* rechte Seite abgerundet */
  --r-right: 8px 0px 0px 8px;   /* linke Seite abgerundet  */
  --r-card:  24px;
  --r-sm:    6px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Wix Madefor Text', sans-serif;
  color: var(--text);
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
h1,h2,h3,h4,h5 { font-family: 'Wix Madefor Display', sans-serif; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--text-soft); font-size: 1rem; }

/* ─── KICKER BADGES (Asymmetrisch) ─── */
.kicker {
  display: inline-block;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  padding: 0.35em 0.9em;
  border-radius: var(--r-left);   /* links gerade, rechts rund */
  margin-bottom: 1.25rem;
}
.kicker--inverted {
  color: var(--green);
  background: var(--white);
}
.kicker--dark {
  color: var(--white);
  background: var(--green);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: var(--r-left);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--gold); color: var(--green); }
.btn--primary:hover { background: #d99e00; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }

/* ─── SITE HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-logo img { height: 46px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
.main-nav a {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.15s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--green); border-bottom-color: var(--green); }
.nav-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

/* Language Switcher */
.lang-switcher { display: flex; gap: 0; }
.lang-switcher a {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid rgba(33,74,71,0.15);
  color: rgba(33,74,71,0.4);
  transition: color 0.15s, background 0.15s;
}
.lang-switcher a:first-child { border-radius: 4px 0 0 4px; border-right: none; }
.lang-switcher a:last-child  { border-radius: 0 4px 4px 0; }
.lang-switcher a:hover,
.lang-switcher a.current { color: var(--white); background: var(--green); border-color: var(--green); }

/* Kontakt Button Nav */
.btn--nav {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--green);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--nav:hover { background: var(--green); color: var(--white); border-color: var(--green); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 200px;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,74,71,0.62);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
.hero__content .kicker {
  margin-bottom: 1rem;
}
.hero__title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* 5vw = 72px @ 1440px */
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.hero__tagline {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(1rem, 1.94vw, 1.75rem); /* 1.94vw = 28px @ 1440px */
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__desc {
  max-width: 700px;
  color: var(--white);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(1rem, 1.94vw, 1.75rem); /* 1.94vw = 28px @ 1440px */
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
}
.hero__scroll {
  position: absolute;
  bottom: calc(2.5rem + 50px);
  left: calc(max((100% - 1440px) / 2, 0px) + 1rem);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 3.5px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: border-color 0.2s, color 0.2s;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll svg { width: 22px; height: 22px; }
.hero__scroll:hover { border-color: var(--white); color: var(--white); }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ─── INTRO BAND ─── */
.intro-band {
  background: var(--green);
  border-radius: 0 0 0 48px; /* nur unten-links abgerundet */
}
.intro-band__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3rem 1rem;
}
.intro-band p {
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: clamp(1.1rem, 1.65vw, 1.5rem); /* ~24px @ 1440px */
  font-weight: 400;
  color: var(--white);
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 870px;
}

/* ─── WARUM ─── */
.section-warum {
  background: var(--white);
  padding: 120px 0;
}
.warum__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.warum__img-wrap {
  overflow: hidden;
  border-radius: 0 var(--r-card) 0 0;  /* nur oben-rechts rund */
  line-height: 0;
}
.warum__img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.warum__text h2 { color: var(--text); margin-bottom: 1.5rem; }
.warum__text p { margin-bottom: 1rem; }
.warum__text p:last-child { margin-bottom: 0; }

/* ─── FUNKTION ─── */
.section-funktion {
  background: var(--off-white);
  padding: 120px 0;
}
.funktion__header {
  margin-bottom: 4rem;
}
.funktion__header h2 { color: var(--text); }
.funktion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.funktion__media {
  position: sticky;
  top: 100px;
}
.funktion__media video {
  width: 100%;
  border-radius: 0 0 0 var(--r-card);  /* nur unten-links rund */
  background: var(--green);
}
.funktion__features { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 40px; height: 40px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-body h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature-body p { font-size: 0.95rem; line-height: 1.65; }

/* ─── FÜR WEN ─── */
.section-fuerwen { background: var(--off-white); }
.fuerwen__intro {
  background: var(--green);
  padding: 100px 0 80px;
}
.fuerwen__intro .kicker { margin-bottom: 1.25rem; }
.fuerwen__intro h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 700px;
}
.fuerwen__intro p {
  color: rgba(255,255,255,0.65);
  max-width: 700px;
  margin-bottom: 1rem;
}
.fuerwen__intro p:last-child { margin-bottom: 0; }

.fuerwen__photos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.fuerwen__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.fuerwen__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.fuerwen__photo:hover img { transform: scale(1.04); }
.fuerwen__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(33,74,71,0.85), transparent);
  color: var(--white);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.fuerwen__summary {
  background: var(--blue-light);
  padding: 60px 0;
}
.fuerwen__summary p {
  max-width: 820px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

/* ─── TEAM ─── */
.section-team {
  background: var(--white);
  padding: 120px 0;
}
.team__header {
  max-width: 720px;
  margin-bottom: 4rem;
}
.team__header h2 { color: var(--text); margin-bottom: 1.25rem; }
.team__header p { margin-bottom: 1rem; }
.team__header p:last-child { margin-bottom: 0; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.team__member {}
.team__photo-wrap {
  overflow: hidden;
  margin-bottom: 1.25rem;
  border-radius: 0 var(--r-card) 0 0;  /* oben-rechts rund */
  background: var(--off-white);
}
.team__photo-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.team__member:hover .team__photo-wrap img { transform: scale(1.03); }
.team__member h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 0.2rem; }
.team__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.team__mail {
  font-size: 0.85rem;
  color: var(--green);
  transition: color 0.15s;
}
.team__mail:hover { color: var(--gold); }

/* ─── KONTAKT ─── */
.section-kontakt {
  background: var(--green);
  padding: 100px 0 120px;
}
.kontakt__card {
  background: var(--blue-light);
  border-radius: var(--r-card);
  padding: 4rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.kontakt__left .kicker { margin-bottom: 1rem; }
.kontakt__left h2 { color: var(--text); margin-bottom: 0.75rem; font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.kontakt__left > p { color: var(--text-soft); margin-bottom: 2rem; }
.kontakt__info { display: flex; flex-direction: column; gap: 1rem; }
.kontakt__info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.ki-label {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.kontakt__info-item span,
.kontakt__info-item a {
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.15s;
}
.kontakt__info-item a:hover { color: var(--green); }

/* ─── CONTACT FORM 7 in Kontakt-Card ─── */
.wpcf7 { margin-top: 0; }
.wpcf7 br { display: none; }
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cf7-row label { margin-bottom: 0; }
.wpcf7 label {
  display: block;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(33,74,71,0.15);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-family: 'Wix Madefor Text', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--green);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: rgba(33,74,71,0.35); }
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 0.9rem 2.5rem;
  border-radius: var(--r-left);
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}
.wpcf7 input[type="submit"]:hover { background: var(--green-dark, #172f2d); }
.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  border: 1px solid rgba(33,74,71,0.2);
  color: var(--text);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--green-dark);
  padding: 2.5rem 0;
  border-top: 3px solid var(--gold);
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
}
.footer__logo img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: 0.7; }
.footer__links { display: flex; gap: 2rem; justify-content: center; }
.footer__links a { color: rgba(255,255,255,0.3); font-size: 0.8rem; transition: color 0.15s; }
.footer__links a:hover { color: rgba(255,255,255,0.7); }
.footer__copy { color: rgba(255,255,255,0.2); font-size: 0.75rem; text-align: right; }

/* ─── WORDPRESS ADMIN BAR ─── */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .warum__grid { gap: 3.5rem; }
  .funktion__grid { gap: 3rem; }
  .kontakt__card { padding: 3rem; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 86px; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 0.5rem 0;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(0,0,0,0.05); }
  .main-nav a { display: block; padding: 0.9rem 2.5rem; }

  .warum__grid,
  .funktion__grid,
  .kontakt__card { grid-template-columns: 1fr; }
  .warum__img-wrap img { height: 400px; }
  .funktion__media { position: static; }
  .fuerwen__photos { grid-template-columns: repeat(3, 1fr); }
  .fuerwen__photos .fuerwen__photo:nth-child(4),
  .fuerwen__photos .fuerwen__photo:nth-child(5) { display: none; }
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .kontakt__card { border-radius: 16px; padding: 2.5rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section-warum,
  .section-funktion,
  .section-team { padding: 80px 0; }
  .fuerwen__intro { padding: 70px 0 60px; }
  .fuerwen__photos { grid-template-columns: 1fr 1fr; }
  .fuerwen__photos .fuerwen__photo:nth-child(4),
  .fuerwen__photos .fuerwen__photo:nth-child(5) { display: block; }
  .team__grid { grid-template-columns: 1fr; max-width: 360px; }
  .kontakt__card { padding: 2rem 1.5rem; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
}
