/* === BASIS & VARIABLEN === */
:root {
  --primary: #0f2942;       /* Seriöses Ingenieurs-Dunkelblau */
  --primary-light: #1c456e;
  --accent: #d97706;        /* Technischer Bernstein/Solar-Akzent */
  --accent-hover: #b45309;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --border: #e2e8f0;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === SPRACHLEISTE (TOP BAR) === */
.top-bar {
  background-color: var(--primary);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-switcher {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switcher a {
  color: #e2e8f0;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* === NAVIGATION === */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-wrap: wrap;
  gap: 15px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.brand span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}


/* === HERO BEREICH === */
.hero {
  background: 
    linear-gradient(
      90deg, 
      rgba(15, 41, 66, 0.98) 0%, 
      rgba(15, 41, 66, 0.92) 45%, 
      rgba(28, 69, 110, 0.45) 75%, 
      rgba(15, 41, 66, 0.25) 100%
    ),
    url('images/Sonnenuntergang-Strommaste-766x600.jpg');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0;
}


.hero-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--accent);
  color: #fcd34d;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 850px;
}

.hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 750px;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff !important;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ffffff;
  margin-left: 12px;
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

/* === SEKTIONEN & KARTEN === */
section {
  padding: 64px 0;
}

section.bg-light {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.85rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
}

/* === HIGHLIGHT BOX (GIZ / WELTBANK) === */
.highlight-box {
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  padding: 36px;
  margin-top: 20px;
}

.highlight-box h3 {
  color: #fcd34d;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.highlight-box p {
  color: #e2e8f0;
  margin-bottom: 20px;
}

/* === LISTEN === */
.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* === FOOTER === */
footer {
  background-color: #0b1e30;
  color: #94a3b8;
  padding: 48px 0 24px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 14px;
  font-size: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 8px;
}

footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: #fcd34d;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

/* === MOBILE OPTIMIERUNG === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.85rem; }
  .btn-outline { margin-left: 0; margin-top: 10px; }
}

/* === PROFILFOTO IM ABOUT-BEREICH === */
.about-profile {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-photo {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.about-text {
  flex: 1;
  min-width: 260px;
}


/* === KONTAKTFORMULAR === */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: #ffffff;
}
