/* ==============================================
   KOBRITZ CONSULTING — styles.css
   Mobile-first. Breakpoints: 640px / 1024px+
   Navy #1E2756 | Gold #C5A46D | Weiß #FFFFFF
   Hellgrau #F4F5F7 | Dunkelgrau #2D2D2D
   ============================================== */

/* ==============================================
   1. VARIABLEN & RESET
   ============================================== */
:root {
  --navy:          #1E2756;
  --navy-light:    #2d3d80;
  --gold:          #C5A46D;
  --gold-hover:    #a8893a;
  --white:         #FFFFFF;
  --offwhite:      #FAFAFA;
  --lightgray:     #F4F5F7;
  --midgray:       #E8E9EC;
  --darkgray:      #2D2D2D;
  --textgray:      #4A4A4A;
  --font-serif:    Georgia, 'Times New Roman', serif;
  --font-sans:     Arial, Helvetica, sans-serif;
  --max-w:         1200px;
  --max-w-narrow:  780px;
  --nav-h:         76px;
  --radius:        6px;
  --shadow-sm:     0 2px 8px rgba(30,39,86,.07);
  --shadow-md:     0 4px 16px rgba(30,39,86,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--font-sans); color: var(--darkgray); background: var(--white); line-height: 1.65; }
img    { display: block; max-width: 100%; height: auto; }
ul     { list-style: none; }
a      { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* ==============================================
   2. TYPOGRAFIE
   ============================================== */
h1, h2       { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; }
h3, h4       { font-family: var(--font-sans);  color: var(--navy); line-height: 1.3; }
h1           { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; }
h2           { font-size: clamp(1.3rem, 2.8vw, 2rem);   font-weight: 700; }
h3           { font-size: clamp(.95rem, 1.8vw, 1.1rem); font-weight: 600; }
h4           { font-size: .95rem; font-weight: 600; }
p            { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong       { color: var(--navy); }

/* ==============================================
   3. LAYOUT
   ============================================== */
.container         { width: 100%; max-width: var(--max-w);        margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }
section            { padding: 3rem 0; }

.section-heading { text-align: center; margin-bottom: 2.5rem; }
.section-heading::after {
  content: ''; display: block;
  width: 2.5rem; height: 2px;
  background: var(--gold);
  margin: .65rem auto 0;
}

/* ==============================================
   4. BUTTONS
   ============================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .875rem 2rem; min-height: 48px;
  font-family: var(--font-sans); font-size: .93rem; font-weight: 600;
  letter-spacing: .04em; border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-align: center; white-space: nowrap;
}
/* Primary — Gold */
.btn-primary                   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover,
.btn-primary:focus-visible     { background: var(--gold-hover); border-color: var(--gold-hover); box-shadow: 0 4px 12px rgba(197,164,109,.4); outline: none; }
/* Outline auf dunklem Hintergrund */
.btn-outline-white                 { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-outline-white:hover,
.btn-outline-white:focus-visible   { background: var(--white); color: var(--navy); border-color: var(--white); outline: none; }
/* Outline auf hellem Hintergrund */
.btn-outline-navy                  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover,
.btn-outline-navy:focus-visible    { background: var(--navy); color: var(--white); outline: none; }

.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ==============================================
   5. NAVIGATION
   ============================================== */
#nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(30,39,86,.08);
  box-shadow: 0 2px 12px rgba(30,39,86,.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: var(--nav-h); display: flex; align-items: center; justify-content: space-between;
}
.logo     { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 56px; width: auto; display: block; }

/* Hamburger */
.nav-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .22s, opacity .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
.nav-menu {
  display: none; flex-direction: column;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--midgray);
  padding: .75rem 1.5rem 1.25rem; box-shadow: 0 8px 20px rgba(30,39,86,.08);
}
.nav-menu.is-open { display: flex; }
.nav-menu a       { display: block; padding: .55rem 0; font-size: .93rem; color: var(--navy); font-weight: 500; border-bottom: 1px solid var(--midgray); transition: color .15s; }
.nav-menu a:hover { color: var(--gold); }
.nav-sap a        { color: var(--textgray); font-weight: 400; font-size: .87rem; }

/* ==============================================
   6. HERO
   ============================================== */
.hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: 2.5rem 1.5rem 2.5rem;
  background: linear-gradient(135deg, #edf1f8 0%, var(--white) 60%);
  gap: 2rem;
}
.hero-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: .6rem;
}
.hero-content { max-width: 600px; }
.hero h1      { margin-bottom: 1.2rem; }
.hero-sub     { font-size: 1.05rem; color: var(--textgray); margin-bottom: 2rem; max-width: 540px; line-height: 1.7; }

/* Hero Foto */
.hero-photo-wrap { display: none; }
.hero-photo {
  border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

/* ==============================================
   7. TRUST-BADGES
   ============================================== */
.trust      { padding: 0; background: var(--navy); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.08);
}
.trust-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem 1.25rem;
  gap: .35rem;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.trust-badge:nth-child(2n) { border-right: none; }
.trust-num  { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--gold); line-height: 1; }
.trust-cert { font-size: 1.1rem; font-weight: 700; color: var(--gold); letter-spacing: .01em; line-height: 1.25; }
.trust-label { font-size: .79rem; color: rgba(255,255,255,.75); line-height: 1.4; }

/* ==============================================
   8. HERAUSFORDERUNG
   ============================================== */
.challenge    { background: var(--white); }
.challenge h2 { margin-bottom: 1.25rem; }
.challenge-list { margin: 1.1rem 0; }
.challenge-list li {
  padding: .6rem 0 .6rem 1.6rem;
  border-bottom: 1px solid var(--midgray);
  position: relative; font-size: .95rem;
}
.challenge-list li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.challenge-cta { font-size: 1.02rem; margin-top: 1.5rem; }

/* ==============================================
   9. PRAXIS-KARTEN
   ============================================== */
.practice      { background: var(--lightgray); border-top: 1px solid var(--midgray); }
.cards-grid    { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.card          { background: var(--white); padding: 1.75rem 1.5rem; border-radius: var(--radius); border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card-icon     { margin-bottom: .9rem; }
.card h3       { margin-bottom: .6rem; }
.card p        { font-size: .93rem; color: var(--textgray); margin: 0; flex: 1; }
.practice-note {
  text-align: center; color: var(--navy);
  font-size: 1rem; font-weight: 600;
  font-family: var(--font-serif);
  font-style: italic;
  padding: .75rem 0 0;
}

/* ==============================================
   10. LEISTUNGEN — 3 STUFEN
   ============================================== */
.services       { background: var(--white); border-top: 1px solid var(--midgray); padding: 2.5rem 0; }
.steps-grid     { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.step           { background: var(--lightgray); padding: 1.4rem 1.35rem; border-radius: var(--radius); border-top: 3px solid var(--navy); display: flex; flex-direction: column; }
.step-number    { font-size: 2rem; font-family: var(--font-serif); color: var(--gold); opacity: .7; font-weight: 700; line-height: 1; margin-bottom: .4rem; }
.step h3        { margin-bottom: .5rem; }
.step p         { font-size: .92rem; color: var(--textgray); margin: 0; }

/* Vergleichsblock */
.compare-block  { background: var(--lightgray); border-radius: var(--radius); padding: 1.25rem 1.25rem; margin-bottom: 1.5rem; }
.compare-title  { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; text-align: center; }
.compare-cards  { display: grid; gap: 1rem; }
.compare-card   {
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; border-top: 3px solid var(--navy);
  box-shadow: var(--shadow-sm);
}
.compare-card--alt { border-top-color: var(--gold); }
.compare-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; flex-wrap: wrap; gap: .5rem; }
.compare-card-header h4 { font-size: 1rem; color: var(--navy); }
.compare-tag    { font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; background: var(--lightgray); color: var(--textgray); padding: .25rem .65rem; border-radius: 20px; }
.compare-list   { list-style: none; margin-bottom: .65rem; }
.compare-list li { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--midgray); font-size: .87rem; }
.compare-list li:last-child { border: none; }
.cmp-label      { font-weight: 600; color: var(--navy); font-size: .82rem; }
.compare-note   { font-size: .8rem; color: var(--gold); font-weight: 600; }
.compare-footer { text-align: center; font-size: 1rem; color: var(--navy); font-family: var(--font-serif); font-style: italic; font-weight: 600; margin-top: 1rem; }

.services-cta   { text-align: center; }
.services-cta p { margin-bottom: .75rem; font-size: 1rem; }

/* ==============================================
   11. WARUM KOBRITZ
   ============================================== */
.why        { background: var(--lightgray); border-top: 1px solid var(--midgray); }
.why-grid   { display: grid; gap: 1.25rem; }
.why-item   { background: var(--white); padding: 1.5rem 1.5rem 1.5rem 1.75rem; border-radius: var(--radius); border-left: 3px solid var(--gold); box-shadow: var(--shadow-sm); }
.why-item h3 { margin-bottom: .45rem; font-size: 1rem; }
.why-item p  { font-size: .91rem; color: var(--textgray); margin: 0; }

/* ==============================================
   12. ÜBER MICH
   ============================================== */
.about       { background: var(--white); border-top: 1px solid var(--midgray); }
.about-layout { display: flex; flex-direction: column; gap: 2rem; }

/* Foto */
.about-photo-wrap { display: flex; justify-content: center; }
.about-photo {
  width: 220px; height: 270px;
  border-radius: var(--radius);
  object-fit: cover; object-position: center top;
  box-shadow: var(--shadow-md);
}

/* Inhalt */
.about-body        { display: flex; flex-direction: column; gap: 1.75rem; }
.about-intro       { font-size: .97rem; color: var(--darkgray); line-height: 1.7; }

/* Beruflicher Weg */
.about-career h3,
.about-quals h3,
.about-refs h3     { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: .85rem; }
.career-list       { display: flex; flex-direction: column; gap: .5rem; }
.career-list li    { display: flex; flex-direction: column; padding: .65rem .9rem; background: var(--lightgray); border-radius: 4px; border-left: 3px solid var(--navy); }
.career-org        { font-weight: 600; color: var(--navy); font-size: .91rem; }
.career-role       { font-size: .83rem; color: var(--textgray); margin-top: .1rem; }

/* Qualifikations-Badges — einheitlich */
.qual-badges       { display: flex; flex-wrap: wrap; gap: .5rem; }
.qual-badge        { font-size: .78rem; padding: .3rem .85rem; border-radius: 20px; background: var(--lightgray); color: var(--navy); border: 1px solid rgba(30,39,86,.15); line-height: 1.5; font-weight: 500; }

/* Referenzkunden */
.refs-strip  { font-size: .93rem; color: var(--navy); line-height: 1.95; font-weight: 400; }
.refs-tagline { font-size: .86rem; color: var(--gold); font-weight: 600; letter-spacing: .02em; margin-top: .35rem !important; }

/* ==============================================
   13. SAP-SEKTION
   ============================================== */
.sap-section    { background: var(--navy); color: var(--white); }
.sap-section h2 { color: var(--white); margin-bottom: 1.1rem; }
.sap-section p  { font-size: .93rem; color: rgba(255,255,255,.85); margin-bottom: .9rem; }
.sap-section strong { color: var(--white); }
.sap-section .btn-outline-white { margin-top: .5rem; }

/* ==============================================
   14. KONTAKT
   ============================================== */
.contact        { background: var(--lightgray); border-top: 1px solid var(--midgray); padding: 2.5rem 0; }
.contact-intro  { text-align: center; max-width: 560px; margin: 0 auto 1.5rem; font-size: .95rem; color: var(--textgray); line-height: 1.65; }
.contact-layout { display: flex; flex-direction: column; gap: 2rem; }

/* Formular */
.form              { background: var(--white); padding: 1.5rem 1.35rem; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.form-honeypot     { position: absolute; left: -9999px; opacity: 0; height: 0; pointer-events: none; }
.form-group        { margin-bottom: .75rem; }
.form-group label  { display: block; font-size: .83rem; font-weight: 600; color: var(--navy); margin-bottom: .35rem; letter-spacing: .01em; }
.form-group label span[aria-label="Pflichtfeld"] { color: var(--gold); margin-left: 2px; }
.form-optional     { font-weight: 400; color: #999; font-size: .8rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .7rem .9rem; min-height: 46px;
  font-family: var(--font-sans); font-size: .91rem; color: var(--darkgray);
  border: 1.5px solid var(--midgray); border-radius: 4px;
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus  { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(30,39,86,.08); }
.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) { border-color: #c0c4cc; }
.form-group textarea        { resize: vertical; min-height: 85px; }
.form-group--check          { display: flex; align-items: flex-start; gap: .65rem; }
.form-group--check input    { margin-top: 4px; width: auto; flex-shrink: 0; min-height: auto; accent-color: var(--navy); }
.form-group--check label    { font-weight: 400; font-size: .83rem; margin: 0; color: var(--textgray); }
.form-group--check a        { color: var(--navy); text-decoration: underline; }
.form-error {
  background: #fff3f3; border: 1px solid #e04040;
  padding: .75rem 1rem; border-radius: 4px;
  font-size: .84rem; color: #c00; margin-bottom: 1rem;
}

/* Kontaktinfo */
.contact-info        { padding: .25rem 0; }
.contact-info h3     { margin-bottom: 1rem; color: var(--navy); }
.contact-info address p { margin-bottom: .75rem; font-size: .92rem; }
.contact-info a      { color: var(--navy); text-decoration: underline; }
.contact-info a:hover { color: var(--gold); }
.contact-linkedin    { margin-top: 1rem; }
.contact-linkedin a  { font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--navy); }
.contact-linkedin a:hover { color: var(--gold); }
.contact-bafa,
.contact-response    { display: block; color: #777; margin-top: .75rem; }

/* ==============================================
   15. FOOTER
   ============================================== */
.footer       { background: var(--navy); padding: 1.5rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: .65rem; align-items: center; text-align: center; }
.footer-copy  { color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-nav   { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,.55); font-size: .8rem; transition: color .15s; }
.footer-nav a:hover { color: var(--gold); }

/* ==============================================
   16. LEGAL-SEITEN
   ============================================== */
.legal-page         { padding: 3rem 0 4rem; }
.legal-page h1      { margin-bottom: 2.5rem; }
.legal-page h2      { margin: 2.5rem 0 .75rem; font-size: 1.1rem; padding-top: .5rem; border-top: 1px solid var(--midgray); }
.legal-page h2:first-of-type { border-top: none; }
.legal-page h3      { margin: 1.5rem 0 .5rem; font-size: .97rem; color: var(--navy); }
.legal-page h4      { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--navy); }
.legal-page p       { font-size: .93rem; margin-bottom: .85rem; color: var(--textgray); line-height: 1.7; }
.legal-page address { font-size: .93rem; color: var(--textgray); line-height: 1.9; margin-bottom: 1rem; padding: .75rem 1rem; background: var(--lightgray); border-radius: var(--radius); border-left: 3px solid var(--navy); }
.legal-page address a { color: var(--navy); text-decoration: underline; }

.legal-list         { list-style: disc; padding-left: 1.5rem; margin: .5rem 0 1rem; }
.legal-list li      { font-size: .93rem; color: var(--textgray); margin-bottom: .4rem; line-height: 1.65; }

.legal-notice       { background: var(--lightgray); border-left: 3px solid var(--gold); padding: 1rem 1.25rem; margin-bottom: 1.75rem; border-radius: 4px; }
.legal-notice--caps { background: var(--lightgray); border-left: 3px solid var(--navy); padding: 1.1rem 1.25rem; margin: 1rem 0 1.5rem; border-radius: 4px; }
.legal-notice--caps p { font-size: .82rem; line-height: 1.6; margin-bottom: .6rem; color: var(--darkgray); }
.legal-notice--caps p:last-child { margin-bottom: 0; }

.legal-source       { margin-top: 2rem; font-size: .82rem; color: #999; }
.legal-source a     { color: var(--navy); text-decoration: underline; }

/* ==============================================
   17. RESPONSIVE — TABLET (≥ 640px)
   ============================================== */
@media (min-width: 640px) {
  /* Trust: 4 in einer Zeile */
  .trust-grid  { grid-template-columns: repeat(4, 1fr); }
  .trust-badge { border-bottom: none; }
  .trust-badge:nth-child(2n) { border-right: 1px solid rgba(255,255,255,.08); }
  .trust-badge:last-child    { border-right: none; }

  /* Praxis-Karten: 2×2 */
  .cards-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Vergleichskarten */
  .compare-cards { grid-template-columns: repeat(2, 1fr); }

  /* Warum-Grid: 2 Spalten */
  .why-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Kontakt */
  .contact-layout { flex-direction: row; align-items: flex-start; }
  .form           { flex: 1; min-width: 0; }
  .contact-info   { flex: 0 0 260px; }
}

/* ==============================================
   18. RESPONSIVE — DESKTOP (≥ 1024px)
   ============================================== */
@media (min-width: 1024px) {
  /* Nav Desktop */
  .nav-toggle { display: none; }
  .nav-menu   {
    display: flex !important; flex-direction: row; position: static;
    background: none; border: none; padding: 0;
    box-shadow: none; align-items: center; gap: .25rem;
  }
  .nav-menu li { border-bottom: none; }
  .nav-menu a  { padding: .4rem .85rem; font-size: .87rem; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
  .nav-menu a:hover { border-bottom-color: var(--gold); color: var(--navy); }
  .nav-sap     { margin-left: .75rem; padding-left: .75rem; border-left: 1px solid var(--midgray); }

  /* Hero Desktop: 2-spaltig, kompakt */
  .hero {
    flex-direction: row; justify-content: center; align-items: center;
    gap: 5rem; padding: 3.5rem 2rem;
    min-height: 560px;
    max-width: 100%;
  }
  .hero > .container,
  .hero-content { flex: 0 0 500px; max-width: 500px; }
  .hero-photo-wrap { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .hero-photo  { width: 250px; height: 250px; }

  /* Trust: alle in einer Zeile ohne Umbruch */
  .trust-grid  { grid-template-columns: repeat(4, 1fr); }
  .trust-badge { border-bottom: none; }

  /* Praxis-Karten: 4 nebeneinander */
  .cards-grid  { grid-template-columns: repeat(4, 1fr); }

  /* 3 Stufen nebeneinander */
  .steps-grid  { grid-template-columns: repeat(3, 1fr); }

  /* Über mich: kein Foto, volle Breite */
  .about-layout { display: block; }
  .about-body   { max-width: var(--max-w-narrow); margin: 0 auto; }

  /* Footer */
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
