/*
Theme Name: Unternehmensberatung Freyher
Author: Nils Freyher
Description: Individuelles Theme für Nils Freyher Unternehmensberatung (Coaching, Verkaufstraining, Führung).
Version: 1.0.0
Text Domain: unternehmensberatung-freyher
*/

/* ==========================================================
   Nils Freyher Unternehmensberatung – Stylesheet
   Dunkel, elegant, editorial. Ohne Schnörkel.
   ========================================================== */

:root{
  --ink-950: #2C625F;
  --ink-900: #397875;
  --ink-800: #468885;
  --ink-700: #549A94;
  --surface: #498E8A;
  --surface-border: rgba(255,255,255,0.13);
  --teal-mid: #95C9C6;
  --teal-light: #F1F9F8;
  --teal-tint: rgba(143,224,208,0.16);
  --orange: #F0A472;
  --orange-dark: #D98A50;
  --orange-light: #F6C79C;
  --orange-tint: rgba(240,164,114,0.18);
  --text: #F5F9F8;
  --text-soft: rgba(245,249,248,0.74);
  --text-faint: rgba(245,249,248,0.52);
  --white: #ffffff;
  --paper: #F7FAF9;
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1180px;
  --shadow: 0 16px 40px rgba(6, 24, 22, 0.35);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #EDEAE2;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  counter-reset: slide;
}

h1, h2, h3, h4{
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.22;
  color: var(--text);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2{ font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3{ font-size: 1.12rem; font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--text-soft); }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Navigation ---------------- */

.site-header{
  background: var(--ink-950);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  color: var(--white);
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand span{
  font-family: "Inter", sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-top: 4px;
}

.nav-links{
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a{
  color: rgba(255,255,255,0.72);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-block;
}

.nav-links a:hover{
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-links a.active{
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-cta{
  background: var(--orange) !important;
  color: var(--white) !important;
}
.nav-cta:hover{
  background: var(--orange-dark) !important;
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 780px){
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink-950);
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 2px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-toggle{ display: block; }
}

/* ---------------- Sections ---------------- */

section{
  padding: 92px 0;
}

section.bg-white{ background: var(--ink-800); }
section.bg-tint{ background: var(--ink-950); }
section.bg-dark{
  background: radial-gradient(120% 140% at 15% 0%, #4F9892 0%, var(--ink-950) 70%);
  color: var(--white);
}
section.bg-dark h2, section.bg-dark h3{ color: var(--white); }
section.bg-dark p{ color: rgba(255,255,255,0.7); }

/* Light section variant: overrides the shared tokens so every component
   (cards, lists, quotes, forms, icons) automatically adapts to a paper
   background without needing separate light/dark component rules. */
section.bg-light{
  background: var(--paper);
  color: #14322E;
  --text: #14322E;
  --text-soft: rgba(20,50,46,0.72);
  --text-faint: rgba(20,50,46,0.5);
  --surface: #FFFFFF;
  --surface-border: rgba(20,50,46,0.12);
  --ink-950: #EEF4F2;
  --ink-900: #FFFFFF;
  --teal-tint: rgba(31,140,120,0.10);
  --teal-light: #1F8C78;
  --teal-mid: #1B7A6A;
  --orange-tint: rgba(217,138,80,0.12);
  --orange-light: #D98A50;
  --shadow: 0 12px 30px rgba(20, 50, 46, 0.08);
}

/* ---------------- Slides ----------------
   Content sections on the inner pages are framed as individual
   presentation slides on a neutral canvas: a rounded, shadowed panel per
   section, a quiet running slide number in the corner (the same
   large-serif "index" language as .numbered-row/.idx elsewhere on the
   site), and a gentle rise-and-fade the first time each one scrolls into
   view. The opening video hero and the footer stay full-bleed — they're
   the title slide and the closing credits, not slides themselves. */

.slide{
  position: relative;
  max-width: calc(var(--max-width) + 64px);
  margin: 30px auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.nf-js .slide{ opacity: 0; transform: translateY(30px); transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1), transform 0.95s cubic-bezier(0.22,1,0.36,1); }
.nf-js .slide.in-view{ opacity: 1; transform: translateY(0); }
.slide::after{
  counter-increment: slide;
  content: "0" counter(slide);
  position: absolute;
  top: 26px;
  right: 34px;
  z-index: 5;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
}
.slide.bg-light::after{ color: rgba(20,50,46,0.26); }

@media (max-width: 780px){
  .slide{ margin: 18px 12px; border-radius: 16px; }
  .slide::after{ top: 16px; right: 20px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce){
  .nf-js .slide{ opacity: 1; transform: none; transition: none; }
}

/* ---------------- Hero ---------------- */

.hero{
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background: linear-gradient(120deg, rgba(18,56,51,0.90) 0%, rgba(18,56,51,0.62) 50%, rgba(18,56,51,0.32) 100%), url("assets/hero.jpg") center 60% / cover no-repeat;
  color: var(--white);
}

.hero-content{
  max-width: 620px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 18px;
  font-family: "Inter", sans-serif;
}
.eyebrow::before{
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--orange);
}

.hero h1{ color: var(--white); }

.hero p.lead{
  font-size: 1.08rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
}

.hero-actions{
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* ---------------- Buttons ---------------- */

.btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary{
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover{ background: var(--orange-dark); }

.btn-outline{
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-teal-outline{
  background: transparent;
  color: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
}
.btn-teal-outline:hover{ background: var(--teal-tint); }

/* ---------------- Section head ---------------- */

.section-head{
  max-width: 620px;
  margin: 0 0 52px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
}
.kicker::before{
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--orange);
}
.center .kicker{ justify-content: center; }

/* ---------------- Numbered feature list (no boxes) ---------------- */

.numbered-list{
  display: flex;
  flex-direction: column;
}

.numbered-row{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--surface-border);
  align-items: baseline;
}
.numbered-list .numbered-row:last-child{
  border-bottom: 1px solid var(--surface-border);
}

.numbered-row .idx{
  font-family: "Georgia", serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--teal-mid);
  line-height: 1;
}

.numbered-row h3{
  font-size: 1.2rem;
  margin-bottom: 8px;
}
@media (max-width: 640px){
  .numbered-row{ grid-template-columns: 52px 1fr; gap: 16px; }
  .numbered-row .idx{ font-size: 1.6rem; }
}

/* ---------------- Grid / Cards ---------------- */

.grid{ display: grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.card .icon{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  color: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg{ width: 22px; height: 22px; stroke: currentColor; }

.card h3{ margin-bottom: 8px; color: var(--text); }

.card-border-top{
  border-top: 3px solid var(--teal-mid);
}

/* ---------------- Featured service layout ---------------- */

.service-feature{
  background: linear-gradient(120deg, var(--surface) 0%, var(--ink-700) 100%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 44px 44px;
  margin-bottom: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 700px){
  .service-feature{ grid-template-columns: 1fr; padding: 32px 28px; }
}

.service-feature .icon{
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  color: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-feature .icon svg{ width: 28px; height: 28px; stroke: currentColor; }

.service-feature h3{ font-size: 1.4rem; font-family: "Georgia", serif; font-weight: 500; margin-bottom: 10px; }

.service-list-compact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--surface-border);
  margin-top: 28px;
}
@media (max-width: 700px){
  .service-list-compact{ grid-template-columns: 1fr; }
}

.service-list-compact > div{
  padding: 28px 30px;
  border-bottom: 1px solid var(--surface-border);
}
.service-list-compact > div:first-child{
  border-right: 1px solid var(--surface-border);
}
@media (max-width: 700px){
  .service-list-compact > div:first-child{ border-right: none; }
}

.service-list-compact .icon{
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-list-compact .icon svg{ width: 18px; height: 18px; stroke: currentColor; }
.service-list-compact h3{ font-size: 1.02rem; margin-bottom: 6px; }
.service-list-compact p{ font-size: 0.92rem; margin-bottom: 0; }

/* ---------------- Pull quote testimonials ---------------- */

.pull-quote{
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.pull-quote .stars{
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
  color: var(--orange);
}
.pull-quote .stars svg{ width: 16px; height: 16px; }
.pull-quote p.quote{
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 22px;
}
.pull-quote .person strong{ color: var(--text); font-size: 0.98rem; display: block; }
.pull-quote .person span{ color: var(--text-faint); font-size: 0.85rem; }

.quote-list{
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--surface-border);
}
.quote-list-item{
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--surface-border);
}
.quote-list-item .avatar{
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}
.quote-list-item p.quote{
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 8px;
}
.quote-list-item .person strong{ color: var(--text); font-size: 0.88rem; }
.quote-list-item .person span{ color: var(--text-faint); font-size: 0.8rem; margin-left: 6px; }

/* ---------------- Two column ---------------- */

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; gap: 36px; }
}

.check-list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-soft);
}
.check-list li:last-child{ border-bottom: none; }
.check-list .tick{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-list .tick svg{ width: 13px; height: 13px; stroke: currentColor; }

/* ---------------- Process timeline ---------------- */

.timeline{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.timeline::before{
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--surface-border);
}
@media (max-width: 900px){
  .timeline{ grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .timeline::before{ display: none; }
}
@media (max-width: 560px){
  .timeline{ grid-template-columns: 1fr; }
}

.timeline-step{
  position: relative;
  padding-top: 38px;
}
.timeline-step::before{
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ink-950);
}
.timeline-step .step-index{
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--orange-light);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

/* ---------------- Table-style list (Leistungen) ---------------- */

.service-row{
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--surface-border);
}
.service-row:first-child{ padding-top: 0; }
.service-row:last-child{ border-bottom: none; }
@media (max-width: 640px){
  .service-row{ grid-template-columns: 44px 1fr; gap: 16px; }
}

.service-row .icon{
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-row .icon svg{ width: 24px; height: 24px; stroke: currentColor; }

.service-row h3{ font-family: "Georgia", serif; font-size: 1.25rem; font-weight: 500; }

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag{
  display: inline-block;
  background: var(--teal-tint);
  color: var(--teal-light);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ---------------- Contact ---------------- */

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
}
@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-info-item{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--surface-border);
}
.contact-info-item:last-child{ border-bottom: none; }

.contact-info-item .icon{
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  color: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item .icon svg{ width: 18px; height: 18px; stroke: currentColor; }
.contact-info-item h3{ font-size: 0.98rem; margin-bottom: 2px; }

form{
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px){
  .form-row{ grid-template-columns: 1fr; }
}

label{
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

input, textarea, select{
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  background: var(--ink-950);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 16px;
  resize: vertical;
}

input::placeholder, textarea::placeholder{ color: var(--text-faint); }

input:focus, textarea:focus, select:focus{
  outline: none;
  border-color: var(--teal-mid);
  background: var(--ink-900);
}

select{ color: var(--text-soft); }
select option{ background: var(--ink-900); color: var(--text); }

/* ---------------- Footer ---------------- */

footer{
  background: var(--ink-950);
  border-top: 1px solid var(--surface-border);
  color: rgba(255,255,255,0.68);
  padding: 56px 0 28px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px){
  .footer-grid{ grid-template-columns: 1fr; }
}

footer h4{ color: var(--white); font-size: 0.92rem; font-family: "Inter", sans-serif; font-weight: 600; }
footer a{ color: rgba(255,255,255,0.62); }
footer a:hover{ color: var(--teal-light); }
footer ul{ list-style: none; padding: 0; margin: 0; }
footer li{ margin-bottom: 10px; }

.footer-brand{
  color: var(--white);
  font-family: "Georgia", serif;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.footer-bottom{
  border-top: 1px solid var(--surface-border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------------- Page hero (inner pages) ---------------- */

.page-hero{
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  color: var(--white);
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--surface-border);
}
.page-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,26,24,0.74) 0%, rgba(9,26,24,0.52) 50%, rgba(9,26,24,0.84) 100%);
  z-index: 1;
}
.page-hero .container{ position: relative; z-index: 2; }
.page-hero h1{ color: var(--white); max-width: 640px; }
.page-hero p{ color: rgba(255,255,255,0.68); max-width: 560px; }

/* ---------- Responsive-Ergänzungen ---------- */
.page-hero .container{ width:100%; }
.page-hero h1{ overflow-wrap:break-word; hyphens:auto; -webkit-hyphens:auto; max-width:min(640px,100%); text-wrap:balance; }
.page-hero p{ max-width:min(560px,100%); }
.grid > *{ min-width:0; }
.card{ overflow-wrap:break-word; hyphens:auto; }
@media (max-width:900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:minmax(0,1fr); } .grid-3.keep2,.grid-4{ } }
@media (max-width:780px){
  .site-header{ overflow:visible; }
  .nav-links{ z-index:200; box-shadow:0 12px 24px rgba(0,0,0,.25); }
  .nav-toggle{ font-size:2.3rem; line-height:1; padding:4px 8px; position:relative; z-index:201; }
  .nav{ padding:12px 16px; }
  section.slide .container{ padding-left:20px; padding-right:20px; }
}
@media (max-width:700px){
  .page-hero{ padding:64px 0 52px; }
  .page-hero .container{ padding-left:22px; padding-right:22px; }
  .page-hero h1{ font-size:clamp(1.55rem,7vw,2.1rem); line-height:1.22; }
  .footer-bottom{ flex-direction:column; }
}

/* Unterseiten: Hero nimmt 2/3 der Bildschirmhöhe ein */
.page-hero{ min-height:66vh; min-height:66svh; display:flex; align-items:center; box-sizing:border-box; }
.page-hero .container{ width:100%; }
