/*
Theme Name: astrix
Theme URI: https://astrix.ch
Author: Luis-Fernando López
Description: Custom Theme für astrix GmbH – minimalistisch, dunkel, professionell.
Version: 2.0.0
License: Private
Text Domain: astrix
*/

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}

:root{
  --dark:#1a1a18;--mid:#3d3d38;--muted:#7a7a72;--light:#f4f2ed;--white:#ffffff;
  --green:#2d6a4f;--green-light:#74c69d;--border:rgba(26,26,24,0.12);
  --font-d:'DM Serif Display',Georgia,serif;--font-b:'DM Sans',system-ui,sans-serif;
  --max:1100px;--pad:clamp(1.25rem,5vw,4rem);
}

html,body{height:100%;overflow:hidden;}
body{font-family:var(--font-b);background:var(--white);color:var(--dark);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;}

/* Globale Link-Farbe */
a{color:#2d6a4f;}
a:hover{color:#1f4f39;}

/* ── HEADER ──────────────────────────────────────── */
header.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:1rem var(--pad);display:flex;align-items:center;
}

.logo{
  font-family:var(--font-d);font-size:1.5rem;color:var(--white);
  text-decoration:none;letter-spacing:-0.02em;
  display:flex;align-items:center;gap:0.5rem;
}
.logo img{height:28px !important;width:auto !important;}
.logo.dark{color:var(--dark);}

/* ── SLIDES CONTAINER ────────────────────────────── */
.slides{
  width:100%;height:100vh;
  overflow-y:scroll;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
}
.slides::-webkit-scrollbar{display:none;}

.slide{
  scroll-snap-align:start;
  min-height:100vh;width:100%;
  position:relative;display:flex;align-items:center;
  padding:80px var(--pad) 80px;
}

.slide-inner{max-width:var(--max);margin:0 auto;width:100%;}

/* ── HERO ────────────────────────────────────────── */
.slide-hero{background:var(--dark);overflow:hidden;height:100vh;}

.hero-canvas{
  position:absolute;inset:0;
  width:100%;height:100%;
  pointer-events:none;
  display:block;
}

.hero-content{position:relative;z-index:2;max-width:560px;}

.hero-headline{
  font-family:var(--font-d);
  font-size:clamp(2.4rem,6vw,5.2rem);
  line-height:1.05;letter-spacing:-0.03em;
  color:var(--white);margin-bottom:1.25rem;
}
.hero-headline .line1{display:block;white-space:nowrap;opacity:0;animation:fadeUp 0.9s 0.3s forwards;}
.hero-headline .line2{display:block;font-style:italic;color:var(--green-light);opacity:0;animation:fadeUp 0.9s 1.0s forwards;}

.hero-sub{
  font-size:clamp(0.95rem,2vw,1.1rem);
  color:rgba(255,255,255,0.65);
  font-weight:300;line-height:1.7;
  opacity:0;animation:fadeUp 0.9s 1.7s forwards;
}

/* ── QUESTIONS ───────────────────────────────────── */
.slide-questions{background:var(--dark);}

.questions-wrap{
  display:flex;align-items:center;justify-content:center;
  flex-direction:column;text-align:center;
  width:100%;min-height:60vh;
}

.question-text{
  font-family:var(--font-d);
  font-size:clamp(1.6rem,4vw,3rem);
  color:var(--white);letter-spacing:-0.02em;line-height:1.2;
  min-height:4rem;opacity:0;transition:opacity 0.6s ease;
}
.question-text.visible{opacity:1;}

.question-answer{
  font-family:var(--font-d);
  font-size:clamp(1.6rem,4vw,3rem);
  color:var(--green-light);font-style:italic;
  opacity:0;transition:opacity 0.8s ease;
}
.question-answer.visible{opacity:1;}

/* ── VORGEHEN ────────────────────────────────────── */
.slide-vorgehen{background:var(--light);}

.section-label{font-size:0.7rem;letter-spacing:0.18em;text-transform:uppercase;color:var(--green);font-weight:500;margin-bottom:1rem;}
.section-title{font-family:var(--font-d);font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-0.03em;line-height:1.1;color:var(--dark);margin-bottom:0.5rem;}
.section-sub{color:var(--muted);font-size:1rem;font-weight:300;margin-bottom:3rem;}

.steps{display:flex;flex-direction:column;position:relative;}
.steps::before{
  content:'';position:absolute;
  left:1.5rem;top:2rem;bottom:2rem;
  width:1px;
  background:linear-gradient(to bottom,var(--green),rgba(45,106,79,0.1));
}

.step{
  display:grid;grid-template-columns:3rem 1fr;
  gap:1.5rem;padding:1.5rem 0;
  border-bottom:1px solid var(--border);
}
.step:last-child{border-bottom:none;}

.step-number{
  width:3rem;height:3rem;border-radius:50%;
  background:var(--white);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-d);font-size:1rem;color:var(--green);
  flex-shrink:0;position:relative;z-index:1;
}

.step-title{font-family:var(--font-d);font-size:1.3rem;letter-spacing:-0.02em;color:var(--dark);margin-bottom:0.5rem;}
.step-text{color:var(--muted);font-size:0.9rem;line-height:1.75;font-weight:300;max-width:640px;}

/* ── REFERENZEN ──────────────────────────────────── */
.slide-referenzen{background:var(--white);}

.ref-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.25rem;margin-top:2rem;
}

.ref-card{
  background:var(--light);border-radius:0.5rem;
  padding:1.5rem;border:1px solid var(--border);
  position:relative;overflow:hidden;
}
.ref-card::before{
  content:'';position:absolute;top:0;left:0;right:0;
  height:3px;background:var(--green);
}

.ref-meta{display:flex;gap:0.5rem;flex-wrap:wrap;margin-bottom:0.75rem;}
.ref-tag{
  font-size:0.65rem;letter-spacing:0.1em;text-transform:uppercase;
  color:var(--green);font-weight:500;
  background:rgba(45,106,79,0.08);padding:0.2rem 0.6rem;border-radius:2rem;
}

.ref-title{font-family:var(--font-d);font-size:1.1rem;letter-spacing:-0.02em;color:var(--dark);margin-bottom:0.75rem;line-height:1.25;}
.ref-text{color:var(--muted);font-size:0.875rem;font-weight:300;line-height:1.7;}

/* ── ÜBER MICH ───────────────────────────────────── */
.slide-ueber{background:var(--dark);color:var(--white);}
.slide-ueber .section-title{color:var(--white);}

.about-grid{
  display:grid;grid-template-columns:1fr 1.4fr;
  gap:4rem;align-items:start;margin-top:2rem;
}

@media(max-width:640px){
  .about-grid{grid-template-columns:1fr;gap:2rem;}
  .about-photo{aspect-ratio:4/3;}
}

.about-photo{
  aspect-ratio:3/4;background:var(--mid);border-radius:0.5rem;
  overflow:hidden;width:100%;
}
.about-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.about-photo-placeholder{
  width:100%;height:100%;min-height:260px;
  display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,0.2);font-size:0.8rem;text-align:center;padding:1rem;
}

.about-text p{color:rgba(255,255,255,0.65);font-weight:300;font-size:1rem;line-height:1.8;margin-bottom:1.25rem;}

/* ── BLOG ────────────────────────────────────────── */
.slide-blog{background:var(--light);}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.25rem;margin-top:2rem;
}

.blog-card{
  background:var(--white);border-radius:0.5rem;
  border:1px solid var(--border);overflow:hidden;
  transition:transform 0.2s,box-shadow 0.2s;
}
.blog-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,0.07);}

.blog-card-thumb{aspect-ratio:16/9;background:var(--light);overflow:hidden;}
.blog-card-thumb img{width:100%;height:100%;object-fit:cover;}
.blog-card-body{padding:1.25rem;}
.blog-card-meta{font-size:0.75rem;color:var(--muted);letter-spacing:0.05em;margin-bottom:0.6rem;}
.blog-card-title{
  font-family:var(--font-d);font-size:1.1rem;letter-spacing:-0.02em;
  color:var(--dark);margin-bottom:0.6rem;line-height:1.25;
  text-decoration:none;display:block;
}
.blog-card-title:hover{color:var(--green);}
.blog-card-excerpt{color:var(--muted);font-size:0.85rem;font-weight:300;line-height:1.6;}
.blog-placeholder{color:var(--muted);font-weight:300;margin-top:1rem;}

.blog-read-more{
  display:inline-block;margin-top:0.75rem;
  padding:0.5rem 1.25rem;
  background:var(--green);color:var(--white) !important;
  font-size:0.85rem;font-weight:500;
  text-decoration:none;border-radius:0.25rem;
  transition:background 0.2s,transform 0.15s;
}
.blog-read-more:hover{background:#1f4f39;transform:translateY(-1px);}

/* ── SINGLE POST ─────────────────────────────────── */
.single-post-wrap{
  height:100vh;overflow-y:auto;
}

.single-post{
  max-width:1100px;
  margin:80px auto 6rem;
  padding:0 var(--pad);
}

.single-post .post-meta{font-size:0.8rem;color:var(--muted);margin-bottom:2rem;letter-spacing:0.05em;}
.single-post h1{font-family:var(--font-d);font-size:clamp(2rem,4vw,3rem);letter-spacing:-0.03em;line-height:1.1;margin-bottom:1rem;}
.single-post .post-content h2{font-family:var(--font-d);font-size:1.6rem;margin:2.5rem 0 1rem;}
.single-post .post-content p{margin-bottom:1.25rem;}
.single-post .post-content a{color:var(--green);text-decoration:underline;}

/* ── KONTAKT ─────────────────────────────────────── */
.slide-kontakt{background:var(--light);}

.kontakt-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:4rem;align-items:start;margin-top:2rem;
}
@media(max-width:640px){.kontakt-grid{grid-template-columns:1fr;gap:2rem;}}

.kontakt-lead{font-size:1.05rem;color:var(--muted);font-weight:300;line-height:1.7;margin-bottom:1.5rem;}

.kontakt-highlight{
  background:rgba(45,106,79,0.06);border-left:3px solid var(--green);
  padding:1.25rem 1.5rem;border-radius:0 0.25rem 0.25rem 0;
  font-size:0.9rem;color:var(--mid);font-weight:300;line-height:1.65;
}

.kontakt-info{margin-top:1.5rem;display:flex;flex-direction:column;gap:0.75rem;}
.kontakt-info-item span:first-child{
  display:block;font-size:0.75rem;letter-spacing:0.08em;
  text-transform:uppercase;color:var(--dark);font-weight:500;margin-bottom:0.15rem;
}
.kontakt-info-item span:last-child{font-size:0.875rem;color:var(--muted);}
.kontakt-info-item a{color:var(--muted);text-decoration:none;}
.kontakt-info-item a:hover{color:var(--dark);}

.form-group{margin-bottom:1.1rem;}
.form-label{display:block;font-size:0.75rem;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);font-weight:500;margin-bottom:0.4rem;}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.form-input,.form-textarea{
  width:100%;padding:0.7rem 1rem;
  border:1px solid var(--border);border-radius:0.25rem;
  font-family:var(--font-b);font-size:0.95rem;
  color:var(--dark);background:var(--white);
  transition:border-color 0.2s;outline:none;
}
.wpcf7 input:focus,.wpcf7 textarea:focus,
.form-input:focus,.form-textarea:focus{border-color:var(--green);}
.wpcf7 textarea,.form-textarea{resize:vertical;min-height:100px;line-height:1.6;}

.wpcf7 input[type="submit"],.form-submit{
  background:var(--dark);color:var(--white);border:none;
  padding:0.85rem 2rem;border-radius:0.25rem;
  font-family:var(--font-b);font-size:0.9rem;font-weight:500;
  cursor:pointer;transition:background 0.2s,transform 0.15s;
}
.wpcf7 input[type="submit"]:hover,.form-submit:hover{background:var(--green);transform:translateY(-1px);}

/* ── FOOTER SLIDE ────────────────────────────────── */
.slide-footer{
  background:var(--dark);
  min-height:auto !important;
  padding:2rem var(--pad) 3rem;
  align-items:center;justify-content:space-between;
  flex-direction:row;
  scroll-snap-align:start;
}

.footer-left{font-size:0.8rem;color:rgba(255,255,255,0.4);}
.footer-right{display:flex;gap:1.25rem;}
.footer-right a{font-size:0.8rem;color:rgba(255,255,255,0.4);text-decoration:none;transition:color 0.2s;}
.footer-right a:hover{color:var(--white);}

/* Footer für statische Seiten */
.site-footer{
  background:var(--dark);
  padding:2rem var(--pad) 3rem;
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:1rem;
}
.site-footer .footer-left{font-size:0.8rem;color:rgba(255,255,255,0.4);}
.site-footer .footer-right{display:flex;gap:1.25rem;}
.site-footer .footer-right a{font-size:0.8rem;color:rgba(255,255,255,0.4);text-decoration:none;transition:color 0.2s;}
.site-footer .footer-right a:hover{color:var(--white);}

/* ── NAV ARROWS ──────────────────────────────────── */
.nav-arrows{
  position:fixed;bottom:2rem;left:50%;transform:translateX(-50%);
  z-index:200;display:flex;flex-direction:column;align-items:center;gap:0.5rem;
}

.nav-arrow{
  width:48px;height:48px;border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,0.08);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all 0.2s;color:rgba(255,255,255,0.7);
}
.nav-arrow:hover{background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.5);color:var(--white);}
.nav-arrow.dark-bg{border-color:rgba(26,26,24,0.2);background:rgba(26,26,24,0.06);color:var(--muted);}
.nav-arrow.dark-bg:hover{background:rgba(26,26,24,0.12);color:var(--dark);}
.nav-arrow svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.nav-arrow.hidden{opacity:0;pointer-events:none;}
.nav-arrow-pulse{animation:pulse 2s infinite;}

/* ── FLOATING KONTAKT ────────────────────────────── */
.floating-contact{
  position:fixed;top:0;right:var(--pad);
  height:60px;
  display:flex;align-items:center;gap:1.5rem;
  z-index:101;
  opacity:1;transition:opacity 0.3s;
}
.floating-contact.hidden{opacity:0;pointer-events:none;}
.floating-contact a{
  font-size:0.8rem;font-weight:400;
  text-decoration:none;
  color:rgba(255,255,255,0.7);
  transition:color 0.2s;
  display:flex;align-items:center;gap:0.4rem;
}
.floating-contact a:hover{color:var(--white);}
.floating-contact a svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.floating-contact.dark-text a{color:rgba(26,26,24,0.5);}
.floating-contact.dark-text a:hover{color:var(--dark);}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp{from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);}}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(116,198,157,0.3);}50%{box-shadow:0 0 0 8px rgba(116,198,157,0);}}
