/* LOCAL FONTS */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/lora-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-600.woff2') format('woff2');
}

/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --bg-primary:    #F8F5F0;
  --bg-secondary:  #F1EBE2;
  --bg-card:       #FDFAF7;
  --bg-dark:       #EDE7DE;

  --text-primary:  #3A342E;
  --text-secondary:#6B6159;
  --text-muted:    #9B8E85;

  --accent:        #7B8B6F;
  --accent-hover:  #65785A;
  --accent-light:  #C5D1BA;
  --accent-bg:     #EDF0EB;

  --cta:           #A8784A;
  --cta-hover:     #8F6339;
  --cta-light:     #DBBA96;

  --border:        #DFD7CC;
  --border-light:  #EDE7DF;

  --shadow-sm:  0 1px 4px rgba(58,52,46,.07);
  --shadow-md:  0 4px 16px rgba(58,52,46,.09);
  --shadow-lg:  0 8px 32px rgba(58,52,46,.11);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --font-serif:  'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  --max-width:   1080px;
  --content-pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-gap: clamp(3rem, 6vw, 5rem);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.3;
  font-weight: 500;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }

p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.15rem); line-height: 1.85; color: var(--text-secondary); }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}
.section { padding-block: var(--section-gap); }
.section--alt { background-color: var(--bg-secondary); }

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background-color: var(--cta); color: #fff; }
.btn-primary:hover {
  background-color: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background-color: var(--bg-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-light);
  padding: .55rem 1.25rem;
  font-size: .9rem;
}
.btn-ghost:hover {
  background-color: var(--accent-bg);
  border-color: var(--accent);
}

/* ===========================
   NAVIGATION
=========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 245, 240, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.nav-logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color .15s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--cta);
  transition: width .2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .25s;
}

/* ===========================
   HERO
=========================== */
.hero {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background-color: var(--bg-primary);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-line { width: 32px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero-eyebrow span {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; color: var(--cta); }
.hero-text { margin-bottom: 2.25rem; max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; }

.tag {
  display: inline-block;
  padding: .3rem .8rem;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 500;
}

.hero-image-wrap {
  position: relative;
  max-width: 300px;
  margin-inline: auto;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}
.hero-image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-dark);
}
.hero-image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-badge {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.hero-badge-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cta);
  line-height: 1;
}
.hero-badge-label { font-size: .7rem; color: var(--text-muted); white-space: nowrap; }

/* ===========================
   TRUST BAR
=========================== */
.trust-bar {
  padding-block: 1.1rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2.5rem;
}
.trust-item { display: flex; align-items: center; gap: .5rem; color: var(--text-muted); font-size: .82rem; }
.trust-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); flex-shrink: 0; }

/* ===========================
   ABOUT
=========================== */
.about-wrap { max-width: 660px; }
.about-text { margin-block: 1rem 1.75rem; }

.about-bullets { display: flex; flex-wrap: wrap; gap: .6rem; }
.about-bullet {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--text-secondary);
}
.about-bullet::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about-link {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--cta);
  transition: gap .15s;
}
.about-link:hover { gap: .65rem; }

/* ===========================
   PROJECTS
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.project-card-stripe { height: 5px; }
.project-card-stripe--green { background: var(--accent); }
.project-card-stripe--amber { background: var(--cta); }
.project-card-stripe--sand  { background: var(--cta-light); }

.project-card-body { padding: 1.5rem; }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: .9rem;
  color: var(--text-muted);
}
.project-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}
.project-status.active::before  { background: var(--accent); }
.project-status.planned::before { background: var(--cta-light); }

.project-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.project-card p  { font-size: .87rem; line-height: 1.65; margin-bottom: 1.25rem; color: var(--text-secondary); }

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--cta);
  transition: gap .15s;
}
.project-link:hover { gap: .65rem; }
.project-link svg { width: 13px; height: 13px; }

/* ===========================
   PRAXISWISSEN
=========================== */
.praxis-wrap { max-width: 660px; }
.praxis-text { margin-block: 1rem 1.75rem; }

.topic-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.topic-chip {
  display: inline-block;
  padding: .5rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .88rem;
  color: var(--text-secondary);
  transition: border-color .15s, color .15s, background .15s;
}
.topic-chip:hover {
  border-color: var(--accent-light);
  color: var(--accent);
  background: var(--accent-bg);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.65);
  padding-block: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand { font-family: var(--font-serif); font-size: 1rem; color: rgba(255,255,255,.9); }
.footer-tagline { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: .2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-copy {
  width: 100%;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .75rem;
  color: rgba(255,255,255,.25);
}

/* ===========================
   SCROLL TO TOP
=========================== */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 99;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--cta-hover); }
.scroll-top svg { width: 16px; height: 16px; }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.hero-content > * { animation: fadeUp .6s ease both; }
.hero-eyebrow { animation-delay: .1s; }
.hero-title   { animation-delay: .2s; }
.hero-text    { animation-delay: .3s; }
.hero-actions { animation-delay: .4s; }
.hero-tags    { animation-delay: .5s; }
.hero-image-wrap { animation: fadeUp .7s .15s ease both; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { order: -1; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(248,245,240,.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--content-pad);
    gap: 1.25rem;
    backdrop-filter: blur(8px);
  }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-badge { bottom: -.5rem; right: -.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .trust-items { gap: .6rem 1.5rem; }
}
