/* ================================================
   Benjamin Pannier – Ihr Technikbegleiter
   Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --green-dark:   #1b5e20;
  --green-mid:    #2e7d32;
  --green-light:  #4caf50;
  --green-pale:   #e8f5e9;
  --gold:         #c8a84b;
  --white:        #ffffff;
  --off-white:    #f7f9f7;
  --text-dark:    #1a1f1a;
  --text-mid:     #3d4a3d;
  --text-light:   #6b7a6b;
  --shadow-sm:    0 2px 8px rgba(27,94,32,.12);
  --shadow-md:    0 6px 24px rgba(27,94,32,.16);
  --shadow-lg:    0 16px 48px rgba(27,94,32,.20);
  --radius:       12px;
  --radius-lg:    20px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- UTILITY ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--green-dark); color: var(--white); }

h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
h2 { font-size: clamp(2rem,3.5vw,2.8rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.3rem,2vw,1.7rem); margin-bottom: 10px; }
p  { margin-bottom: 1em; }

a { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-light); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
  text-decoration: none;
}
.btn--primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn--outline:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
}
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-dark); line-height: 1.2; }
.nav-logo-sub  { font-family: 'Source Sans 3', sans-serif; font-size: .75rem; font-weight: 600; color: var(--text-light); letter-spacing: .1em; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
  border-radius: 8px;
  transition: all .2s;
  text-decoration: none;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--green-dark); background: var(--green-pale); }

.nav-cta { white-space: nowrap; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all .3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, #2e7d32 55%, #388e3c 100%);
  color: var(--white);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #a5d6a7;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 .accent { color: #a5d6a7; }
.hero p.lead {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: #a5d6a7;
}
.hero-stat-label { font-size: .82rem; opacity: .75; }

.hero-image-wrap {
  display: flex;
  justify-content: center;
}
.hero-portrait {
  position: relative;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.hero-portrait::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero-portrait img {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.3);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.hero-logo {
  position: relative;
}
.hero-logo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.hero-logo::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.hero-logo img {
  width: 270px;
  height: 270px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.3);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}


/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--white);
  padding: 28px 0;
  border-bottom: 1px solid #e8f5e9;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-mid);
}
.trust-item .icon {
  width: 36px; height: 36px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- FUNDING BANNER ---- */
.funding-banner {
  background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.funding-icon {
  font-size: 3rem;
  line-height: 1;
}
.funding-banner h3 {
  color: #8a6800;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.funding-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.funding-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid #f0d070;
}
.funding-card h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--green-dark); margin-bottom: 6px; }
.funding-card p { font-size: .88rem; color: var(--text-mid); margin: 0; }

/* ---- SECTION HEADER ---- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
}
.section-header h2 { color: var(--green-dark); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  height: 200px;
  background: var(--green-pale);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.service-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.service-card h3 { color: var(--green-dark); font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: .92rem; margin: 8px 0 16px; flex: 1; }
.service-card .link-arrow {
  color: var(--green-mid);
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- WHY US ---- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-points { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.why-point { display: flex; gap: 18px; align-items: flex-start; }
.why-point-icon {
  width: 48px; height: 48px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.why-point h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 4px; color: var(--green-dark); }
.why-point p { font-size: .9rem; color: var(--text-light); margin: 0; }

.why-image-stack { position: relative; }
.why-image-main {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.why-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.why-badge-icon { font-size: 2rem; }
.why-badge h5 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--green-dark); margin-bottom: 2px; }
.why-badge p { font-size: .8rem; color: var(--text-light); margin: 0; }

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--green-light);
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; }
.testimonial-text { font-size: .95rem; color: var(--text-mid); font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; font-size: .9rem; color: var(--green-dark); }
.testimonial-role { font-size: .82rem; color: var(--text-light); }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { color: var(--white); }
.contact-info p { opacity: .85; }
.contact-details { margin-top: 32px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-label { font-size: .78rem; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail-value { font-weight: 600; font-size: 1rem; color: var(--white); }

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}
.contact-form-wrap h3 { color: var(--green-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: .03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0ebe0;
  border-radius: 10px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-light); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: 12px; font-size: .9rem; font-weight: 600; display: none; padding: 10px 16px; border-radius: 8px; }
.form-status.success { background: #e8f5e9; color: var(--green-dark); display: block; }
.form-status.error   { background: #ffebee; color: #c62828; display: block; }

/* ---- FOOTER ---- */
.site-footer {
  background: #0d1f0d;
  color: rgba(255,255,255,.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.footer-brand-sub  { font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-brand-desc { font-size: .88rem; line-height: 1.65; }
.footer-col h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s; text-decoration: none; }
.footer-col ul a:hover { color: var(--green-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--white); }

/* ---- PAGE HERO (subpages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), #2e7d32);
  color: var(--white);
  padding: 80px 0 72px;
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: .83rem;
  opacity: .6;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero .lead { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto; }

/* ---- SERVICE DETAIL ---- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.service-detail-img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.service-list { list-style: none; margin: 20px 0; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--green-pale);
  font-size: .95rem;
}
.service-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 0; }
  .hero-image-wrap { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image-stack { display: none; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .funding-cards { grid-template-columns: 1fr; }
  .funding-banner { grid-template-columns: 1fr; padding: 28px 32px; }
}

@media (max-width: 600px) {
  /* Abstände */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-inner { padding: 44px 0 52px; gap: 32px; }
  .hero-badge { font-size: .7rem; padding: 5px 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { text-align: center; display: block; }
  .hero-stats { gap: 20px; margin-top: 28px; padding-top: 20px; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Funding Banner */
  .funding-banner { padding: 20px 18px; margin: 32px 0; gap: 16px; }
  .funding-icon { font-size: 2rem; }
  .funding-banner h3 { font-size: 1.15rem; }

  /* Navigation */
  .nav-inner { height: 62px; }
  .nav-logo img { height: 40px; width: 40px; }
  .nav-logo-text { font-size: .95rem; }
  .nav-logo-sub { display: none; }
  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Karten */
  .services-grid { grid-template-columns: 1fr; }
  .service-card-body { padding: 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Kontaktformular */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 18px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 14px 14px; font-size: 1rem; min-height: 48px; }
  .form-group textarea { min-height: 110px; }

  /* Trust-Bar */
  .trust-items { gap: 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom-links { justify-content: center; }

  /* Page-Hero (Unterseiten) */
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Buttons */
  .btn { padding: 13px 24px; font-size: .9rem; }

  /* Section Header */
  .section-header { margin-bottom: 36px; }
}

/* Mobile nav open */
.nav-open .nav-menu {
  display: flex;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  padding: 16px 20px 16px;
  box-shadow: var(--shadow-md);
  gap: 4px;
  z-index: 999;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
  border-bottom: 3px solid var(--green-pale);
}
.nav-open .nav-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-top: 1px solid var(--green-pale);
  padding: 14px 20px;
  background: var(--white);
  justify-content: center;
}
.nav-open .nav-menu a {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 10px;
}

/* Hamburger → X beim Öffnen */
.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
