/*
Theme Name: NeiFlex OnePage V2.5
Theme URI: https://www.neiflex.at/
Author: OpenAI for Gerald Neissl
Author URI: https://www.neiflex.at/
Description: Fertiges One-Page WordPress Theme fuer NeiFlex mit Hero-Bereich, Shop-Link, Kontaktformular, Impressum und Datenschutz. Version 2.5.
Version: 2.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: neiflex-onepage-v25
*/

:root {
  --nf-primary: #45306f;
  --nf-primary-dark: #332451;
  --nf-secondary: #109dcb;
  --nf-secondary-2: #54c9ef;
  --nf-accent: #e9f8fc;
  --nf-bg: #ffffff;
  --nf-surface: #f7fbfd;
  --nf-text: #182230;
  --nf-muted: #5f6b7a;
  --nf-line: #dcebf1;
  --nf-success: #0b8f69;
  --nf-shadow: 0 18px 48px rgba(16,24,40,.12);
  --nf-shadow-soft: 0 12px 30px rgba(16,24,40,.08);
  --nf-radius: 24px;
  --nf-container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--nf-bg);
  color: var(--nf-text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nf-secondary); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, textarea { font: inherit; }
.site-wrap { overflow: clip; }
.nf-container { width: min(calc(100% - 32px), var(--nf-container)); margin: 0 auto; }

.nf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,157,203,.12);
}
.nf-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nf-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  min-width: 0;
  flex: 1 1 auto;
}
.nf-brand img,
.nf-logo-fallback img,
.custom-logo {
  max-height: 58px;
  width: auto;
}
.nf-brand-text strong {
  display: block;
  color: var(--nf-primary);
  font-size: 1.08rem;
  letter-spacing: .02em;
}
.nf-brand-text span { color: var(--nf-muted); font-size: .92rem; }

.nf-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(69,48,111,.12);
  background: #fff;
  box-shadow: none;
}
.nf-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nf-primary);
  margin: 4px auto;
  transition: transform .18s ease, opacity .18s ease;
}
.nf-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nf-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.nf-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nf-nav { flex: 0 1 auto; }
.nf-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nf-nav a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--nf-primary);
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nf-nav a:hover {
  background: rgba(16,157,203,.08);
  color: var(--nf-primary);
}
.nf-nav .shop-link {
  background: linear-gradient(135deg, var(--nf-secondary), var(--nf-secondary-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(16,157,203,.24);
}
.nf-nav .shop-link:hover,
.nf-nav .shop-link:focus {
  background: linear-gradient(135deg, #0e8ab1, #38bee9);
  color: #fff;
  transform: translateY(-1px);
}

.nf-button,
.wp-element-button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--nf-secondary), var(--nf-secondary-2));
  box-shadow: 0 12px 24px rgba(16,157,203,.24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  cursor: pointer;
}
.nf-button:hover,
.wp-element-button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(16,157,203,.28);
  color: #fff;
}
.nf-button.is-alt {
  background: #fff;
  color: var(--nf-primary);
  border: 1px solid rgba(69,48,111,.15);
  box-shadow: none;
}
.nf-button.is-alt:hover {
  background: rgba(16,157,203,.08);
  color: var(--nf-primary);
}
.nf-button.is-dark {
  background: linear-gradient(135deg, var(--nf-primary), var(--nf-primary-dark));
}
.nf-button.is-dark:hover {
  background: linear-gradient(135deg, #3d2963, #271c3f);
  color: #fff;
}

.nf-hero {
  position: relative;
  padding: 96px 0 60px;
  isolation: isolate;
}
.nf-hero::before,
.nf-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 999px;
}
.nf-hero::before {
  width: 1180px;
  height: 280px;
  left: -120px;
  top: 10px;
  border: 4px solid rgba(16,157,203,.18);
  transform: rotate(-7deg);
}
.nf-hero::after {
  width: 860px;
  height: 860px;
  right: -340px;
  top: -420px;
  background: radial-gradient(circle at center, rgba(16,157,203,.16), rgba(16,157,203,0) 65%);
}
.nf-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
}
.nf-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16,157,203,.1);
  color: var(--nf-primary);
  font-weight: 800;
  margin-bottom: 18px;
}
.nf-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--nf-primary);
}
.nf-hero p {
  margin: 0 0 26px;
  color: #314150;
  font-size: 1.08rem;
  max-width: 62ch;
}
.nf-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.nf-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.nf-proof-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(69,48,111,.08);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--nf-shadow-soft);
}
.nf-proof-card strong {
  display: block;
  color: var(--nf-primary);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 5px;
}
.nf-proof-card span { color: var(--nf-muted); font-size: .94rem; }

.nf-showcase {
  position: relative;
  background: linear-gradient(180deg, #fff, #f3fbfe);
  border: 1px solid rgba(16,157,203,.14);
  border-radius: 32px;
  box-shadow: var(--nf-shadow);
  padding: 28px;
}
.nf-showcase::before,
.nf-showcase::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.nf-showcase::before {
  inset: 18px auto auto 22px;
  width: 180px;
  height: 180px;
  border: 3px solid rgba(16,157,203,.16);
  transform: rotate(-11deg);
}
.nf-showcase::after {
  right: -42px;
  bottom: -46px;
  width: 190px;
  height: 190px;
  border: 3px solid rgba(69,48,111,.12);
  transform: rotate(16deg);
}
.nf-showcase-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.95);
  border-radius: 28px;
  padding: 22px;
  border: 1px solid rgba(69,48,111,.08);
}
.nf-mini-kicker {
  color: var(--nf-secondary);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .82rem;
  font-weight: 800;
}
.nf-checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.nf-checklist li {
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  color: #334155;
}
.nf-checklist li::before {
  content: "•";
  position: absolute;
  left: 7px;
  top: -1px;
  color: var(--nf-secondary);
  font-size: 1.25rem;
  font-weight: 900;
}

.nf-section { padding: 88px 0; }
.nf-section.alt { background: var(--nf-surface); }
.nf-section-header {
  max-width: 760px;
  margin-bottom: 34px;
}
.nf-section-header .kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--nf-secondary);
  font-size: .84rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 900;
}
.nf-section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.08;
  color: var(--nf-primary);
}
.nf-section-header p { margin: 0; color: var(--nf-muted); font-size: 1.03rem; }

.nf-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.nf-grid-2-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}
.nf-card {
  background: #fff;
  border: 1px solid rgba(16,157,203,.12);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--nf-shadow-soft);
}
.nf-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(16,157,203,.12), rgba(69,48,111,.08));
  color: var(--nf-primary);
  font-weight: 900;
  margin-bottom: 18px;
}
.nf-card h3 { margin: 0 0 10px; color: var(--nf-primary); font-size: 1.26rem; }
.nf-card p { margin: 0; color: #445164; }

.nf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.nf-panel {
  background: #fff;
  border-radius: 26px;
  padding: 28px;
  border: 1px solid rgba(69,48,111,.08);
  box-shadow: var(--nf-shadow-soft);
}
.nf-panel h3 { margin: 0 0 14px; color: var(--nf-primary); font-size: 1.35rem; }
.nf-panel p { margin: 0 0 14px; color: #445164; }
.nf-panel p:last-child { margin-bottom: 0; }
.nf-highlight {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(16,157,203,.08);
  color: var(--nf-primary);
  font-weight: 700;
}

.nf-shop-banner {
  background: linear-gradient(135deg, var(--nf-primary), #5a3c98 55%, var(--nf-secondary));
  color: #fff;
  border-radius: 34px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
  box-shadow: var(--nf-shadow);
}
.nf-shop-banner h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.nf-shop-banner p { margin: 0 0 16px; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.nf-pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.nf-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
}
.nf-shop-cta {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 22px;
}
.nf-shop-cta a.nf-button { width: 100%; justify-content: center; }

.nf-course-card {
  background: linear-gradient(180deg, #fff, #f6fbff);
  border: 1px solid rgba(16,157,203,.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--nf-shadow-soft);
}
.nf-course-card h3 { margin: 8px 0 10px; color: var(--nf-primary); font-size: 1.5rem; }
.nf-course-card p { margin: 0; color: #445164; }
.nf-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 22px;
}
.nf-meta-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16,157,203,.09);
  color: var(--nf-primary);
  font-weight: 700;
  font-size: .92rem;
}

.nf-contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
}
.nf-contact-list {
  display: grid;
  gap: 16px;
}
.nf-contact-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: start;
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(16,157,203,.12);
  box-shadow: var(--nf-shadow-soft);
}
.nf-contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(16,157,203,.10);
  color: var(--nf-primary);
}
.nf-contact-item strong { display: block; margin-bottom: 4px; color: var(--nf-primary); }
.nf-contact-item span,
.nf-contact-item a { color: #445164; }

.nf-form-wrap {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(69,48,111,.08);
  box-shadow: var(--nf-shadow-soft);
}
.nf-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.nf-field { margin-bottom: 16px; }
.nf-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--nf-primary);
  font-weight: 700;
}
.nf-field input,
.nf-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d6e5ec;
  background: #fbfeff;
  color: var(--nf-text);
}
.nf-field textarea { min-height: 170px; resize: vertical; }
.nf-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #445164;
  margin-bottom: 18px;
}
.nf-checkbox input { margin-top: 5px; }
.nf-alert {
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.nf-alert.success { background: rgba(11,143,105,.12); color: var(--nf-success); }
.nf-alert.error { background: rgba(180,35,35,.10); color: #8a2020; }
.nf-note { color: var(--nf-muted); font-size: .94rem; }

.nf-legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.nf-legal-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  border: 1px solid rgba(16,157,203,.12);
  box-shadow: var(--nf-shadow-soft);
}
.nf-legal-card h3 { margin-top: 0; color: var(--nf-primary); font-size: 1.5rem; }
.nf-legal-card h4 { color: var(--nf-primary); margin: 22px 0 8px; }
.nf-legal-card p { color: #445164; margin: 0 0 12px; }
.nf-legal-card strong { color: var(--nf-primary); }

.nf-footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--nf-line);
  background: #fff;
}
.nf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nf-footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.nf-footer small { color: var(--nf-muted); }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1050px) {
  .nf-hero-grid,
  .nf-shop-banner,
  .nf-contact-grid,
  .nf-legal-grid,
  .nf-split,
  .nf-grid-2-courses { grid-template-columns: 1fr; }
  .nf-grid-3,
  .nf-proof { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nf-header-inner {
    min-height: 72px;
    padding: 12px 0;
    align-items: center;
    position: relative;
  }
  .nf-brand {
    gap: 12px;
    min-width: 0;
  }
  .nf-brand img,
  .nf-logo-fallback img,
  .custom-logo {
    max-height: 46px;
  }
  .nf-brand-text span { display: none; }
  .nf-brand-text strong { font-size: 1rem; }
  .nf-menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; flex: 0 0 auto; }
  .nf-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    background: #fff;
    border: 1px solid rgba(16,157,203,.12);
    border-radius: 22px;
    box-shadow: var(--nf-shadow);
    padding: 14px;
  }
  .nf-nav.is-open { display: block; }
  .nf-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nf-nav a {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
  }
}

@media (max-width: 740px) {
  .nf-hero { padding-top: 56px; }
  .nf-hero-actions { flex-direction: column; align-items: stretch; }
  .nf-button { width: 100%; }
  .nf-form-grid { grid-template-columns: 1fr; }
  .nf-shop-banner,
  .nf-card,
  .nf-panel,
  .nf-showcase,
  .nf-form-wrap,
  .nf-legal-card,
  .nf-course-card { padding: 22px; }
  .nf-section { padding: 72px 0; }
  .nf-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .nf-shop-banner h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
}
