@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #42B75E;
  --primary-light: rgba(66, 183, 94, 0.1);
  --primary-dark: #369a4e;
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --text: #1e2a3a;
  --text-muted: #6b7a8d;
  --border: #e5e7eb;
  --section-bg: #f7f8fa;
  --footer-bg: #1e2a3a;
  --destructive: #ef4444;
  --radius: 0.375rem;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: 'Inter', sans-serif; }

.container { max-width: 1520px; margin: 0 auto; padding: 0 1rem; }

/* ============ HEADER ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

.header-topbar {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  display: flex; justify-content: flex-end; gap: 1.5rem;
  font-size: 0.8125rem; color: var(--text-muted);
}
.header-topbar a { display: flex; align-items: center; gap: 0.375rem; transition: color 0.2s; }
.header-topbar a:hover { color: var(--primary); }
.header-topbar svg { width: 14px; height: 14px; color: var(--primary); }

.header-main {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  width: 100%;
  max-width: 100px;
}
.logo span { color: var(--primary); }

/* Desktop nav */
.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.desktop-nav > a, .desktop-nav > .nav-dropdown > button {
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text); transition: color 0.2s;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.desktop-nav > a:hover, .desktop-nav > .nav-dropdown > button:hover,
.desktop-nav > a.active { color: var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; padding-top: 0.5rem;z-index:4;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu ul {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.5rem 0; min-width: 220px;
}
.nav-dropdown-menu a {
  display: block; padding: 0.625rem 1rem;
  font-size: 0.875rem; color: var(--text); transition: all 0.2s;
}
.nav-dropdown-menu a:hover { color: var(--primary); background: var(--section-bg); }

.nav-cta {
  background: var(--primary) !important; color: var(--white) !important;
  padding: 0.625rem 1.25rem; border-radius: var(--radius);
  font-size: 0.8125rem !important; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }

/* Mobile */
.mobile-toggle {
  display: none; color: var(--text);
  width: 24px; height: 24px; position: relative;
}
.mobile-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none; background: var(--bg);
  border-top: 1px solid var(--border); padding: 1rem 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a, .mobile-menu button {
  display: block; width: 100%;
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 500;
  text-transform: uppercase; color: var(--text);
  transition: color 0.2s; border: none; background: none;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.mobile-menu a:hover { color: var(--primary); }
.mobile-submenu { padding-left: 1rem; display: none; }
.mobile-submenu.open { display: block; }
.mobile-submenu a {
  text-transform: none; color: var(--text-muted);
  font-weight: 400; padding: 0.5rem 1rem;
}
.mobile-submenu a:hover { color: var(--primary); }

@media (max-width: 992px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: block; }
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: 104px;
}

@media (max-width: 992px) {
  .hero {
  position: relative; min-height: 50vh;
  display: flex; align-items: center; overflow: hidden;
  padding-top: 104px;
}
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(30, 42, 58, 0.7), rgba(30, 42, 58, 0.7)),
    url("/static/assets/images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(30, 42, 58, 0.7);
}
.hero-bg img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.hero .container { 
  position: relative; 
  z-index: 2; 
  width: 100%;
  margin: 100px auto;
}
.hero-content { 
  max-width: 1520px; 
}
.hero-label {
  color: var(--primary); font-size: 0.8125rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white); text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--primary); }
.hero-text {
  color: rgba(255,255,255,0.8); font-size: 1.125rem;
  line-height: 1.7; max-width: 540px; margin-bottom: 2.5rem;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }


.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary); color: var(--white);
  padding: 1rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: opacity 0.2s; border: none;
}
.btn-primary:hover { opacity: 0.9; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.3); color: var(--white);
  padding: 1rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: all 0.2s; background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ============ SERVICES GRID ============ */
.services-section { padding: 6rem 0; background: var(--bg); }
.section-label {
  color: var(--primary); font-size: 0.8125rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.75rem; text-align: center;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase; letter-spacing: 0.05em;
  text-align: center; margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 992px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 765px) { .services-grid { grid-template-columns: repeat(1, 1fr); } }


.service-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all 0.3s; display: block;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.service-card .icon {
  width: 40px; height: 40px; color: var(--primary); margin-bottom: 1.25rem;
}
.service-card h3 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.service-card .more {
  display: inline-block; margin-top: 1rem;
  color: var(--primary); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; transition: transform 0.2s;
}
.service-card:hover .more { transform: translateX(4px); }

/* ============ WHY CHOOSE US ============ */
.why-section { padding: 6rem 0; background: var(--section-bg); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
@media (max-width: 992px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 765px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-item { text-align: center; }
.benefit-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.benefit-icon svg { width: 28px; height: 28px; color: var(--primary); }
.benefit-item h3 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.benefit-item p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ============ ABOUT PREVIEW ============ */
.about-preview { padding: 6rem 0; background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-placeholder {
  background: var(--section-bg); border-radius: var(--radius);
  aspect-ratio: 4/3; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.about-placeholder-inner { text-align: center; }
.about-placeholder-circle {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-family: 'Orbitron', sans-serif;
  color: var(--primary); font-size: 1.5rem; font-weight: 700;
}
.about-placeholder p { color: var(--text-muted); font-size: 0.875rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-weight: 600; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: gap 0.2s;
}
.text-link:hover { gap: 0.75rem; }

/* ============ CTA SECTION ============ */
.cta-section { padding: 6rem 0; background: var(--bg); text-align: center; }
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem;
}
.cta-section p {
  color: var(--text-muted); font-size: 1.125rem;
  max-width: 540px; margin: 0 auto 2.5rem;
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  padding: 6rem 0; background: var(--section-bg);
  padding-top: calc(104px + 6rem);
}
.page-hero .section-label { text-align: left; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1.5rem; max-width: 720px;
}
.page-hero p { color: var(--text-muted); font-size: 1.125rem; line-height: 1.7; max-width: 720px; }

/* ============ CONTENT SECTIONS ============ */
.content-section { padding: 5rem 0; }
.content-section.alt { background: var(--section-bg); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.content-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.content-section p { color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.image{
  border-radius: 5px;
}
.image-placeholder {
  background: var(--section-bg); border-radius: var(--radius);
  aspect-ratio: 4/3; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.875rem;
  
}

/* Benefits cards */
.benefits-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 768px) { .benefits-cards { grid-template-columns: 1fr; } }

.benefit-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.benefit-card .benefit-icon { margin-bottom: 1.25rem; }
.benefit-card h3 {
  font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.benefit-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* About page fachbereiche */
.fachbereiche-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 992px) { .fachbereiche-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 765px) { .fachbereiche-grid { grid-template-columns: 1fr; } }

.fachbereich-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  transition: border-color 0.2s;
}
.fachbereich-card:hover { border-color: var(--primary); }
.fachbereich-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); margin: 0 auto 1rem;
}
.fachbereich-card p {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text);
}

/* Vision cards */
.vision-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
@media (max-width: 768px) { .vision-grid { grid-template-columns: 1fr; } }

.vision-card { text-align: center; padding: 2rem; }
.vision-card .benefit-icon { margin-bottom: 1.25rem; }
.vision-card h3 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.vision-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ============ CONTACT ============ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 0.375rem;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.875rem; color: var(--text);
  background: var(--bg); transition: all 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: none; }
.form-group .error-border { border-color: var(--destructive); }
.form-error { color: var(--destructive); font-size: 0.75rem; margin-top: 0.25rem; }

.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-info-item h4 {
  font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.25rem;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s;
}
.contact-info-item a:hover { color: var(--primary); }

.map-placeholder {
  background: var(--section-bg); border: 1px solid var(--border);
  border-radius: var(--radius); aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.875rem; margin-top: 2.5rem;
}

.success-box {
  background: var(--primary-light); border: 1px solid var(--primary);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(66,183,94,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.success-icon svg { width: 28px; height: 28px; color: var(--primary); }
.success-box h3 {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 0.5rem;
}
.success-box p { font-size: 0.875rem; color: var(--text-muted); }

/* ============ FOOTER ============ */
.site-footer { background: var(--footer-bg); color: var(--white); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 765px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; display: inline-block; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.6; }

.site-footer h4 {
  font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--primary); margin-bottom: 1rem;
}
.site-footer ul li { margin-bottom: 0.625rem; }
.site-footer ul a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--primary); }

.footer-contact-item { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.75rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.footer-contact-item a, .footer-contact-item span {
  color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem; padding: 2rem 0;
  text-align: center; color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* ============ FADE IN ANIMATION ============ */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ MAIN OFFSET ============ */
main { min-height: 100vh; }

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.footer-contact-item span{display:flex; align-items: center; gap:10px;}
.footer-contact-item a{display:flex; align-items: center; gap:10px;}

@media(max-width:765px){
  #contact-form{max-width:inherit;}
}
.flash.success { background: #d4edda; color: #155724; padding: 1em; margin-bottom: 1em; border-radius: 5px; }
.flash.error { background: #f8d7da; color: #721c24; padding: 1em; margin-bottom: 1em; border-radius: 5px; }

.footer-social-icons {display:flex; flex-direction:row; gap:20px;margin:20px 0;}
.footer-social-icons svg{fill:#42B75E; transition: ease 0.3s;}
.footer-social-icons svg:hover{fill:#ffffff;}
.social-icons {display:flex; flex-direction:row; gap:20px;margin:0px 20px;}
.social-icons svg{fill:#42B75E; transition: ease 0.3s;width:40px;height:40px;}
.social-icons svg:hover{fill:#303030;}
.contact-hero-justify-between{display:flex; align-items: end; justify-content: space-between;max-width:1520px;margin:0 auto;}
.contact-hero-justify-between .container{margin:unset;max-width:unset;}
@media(max-width:765px){.contact-hero-justify-between{flex-direction: column;gap:30px;align-items: start;}.social-icons svg{width:30px;height:30px;}}