/* =========================================
   FONTS
========================================= */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   ROOT
========================================= */
:root {
  --bg: #7a7c7f;
  --bg-soft: #95A3b3;

  --surface: #ffffff;
  --surface-2: #f8fbfd;

  --text: #1f2937;
  --text-soft: #5f6b7a;
  --heading: #0f172a;

  --primary: #1f3c88;
  --primary-dark: #142a5c;
  --secondary: #0ea5a4;
  --secondary-dark: #0b7c7b;

  --border: #346eb0;

  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 36px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 54px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --container: 1320px;
  --transition: 0.25s ease;
  --font-main: "Inter", "Segoe UI", Arial, sans-serif;
}

/* =========================================
   RESET
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #f8fbfd 100%);
  color: var(--text);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 14px;
  line-height: 1.15;
  color: var(--heading);
}

p {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.75;
}

ul,
ol {
  margin: 0 0 20px;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   GLOBAL LAYOUT
========================================= */
.page,
.container,
.section,
.content-wrap {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* =========================================
   HEADER
========================================= */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.navbar {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-image {
  width: clamp(130px, 15vw, 210px);
  height: auto;
  object-fit: contain;
}

.brand-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 0px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-1px);
  color: var(--primary);
  border-color: rgba(31, 60, 136, 0.25);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0px;
  background: #ffffff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 0px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-right > a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-right > a:hover,
.dropdown-toggle:hover {
  background: #edf3ff;
  color: var(--primary);
}

.nav-right > a.active,
.dropdown-toggle.active {
  background: linear-gradient(135deg, var(--primary) 0%, #355fc2 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 60, 136, 0.25);
}

/* =========================================
   DROPDOWN
========================================= */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  display: none;
  opacity: 0;
  transform: translateY(0);
  z-index: 2000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  color: var(--text);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: #f4f7fb;
  color: var(--primary);
}

.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
}

@media (min-width: 981px) {
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
  }
}

/* =========================================
   HERO
========================================= */
.hero,
.hero-section,
.top-section,
.intro-box {
  width: min(var(--container), calc(100% - 32px));
  margin: 34px auto 36px;
  padding: clamp(36px, 5vw, 72px);
  border-radius: 2px /*var(--radius-md)*/;
  background: linear-gradient(135deg, #14305e 0%, #20468f 55%, #0ea5a4 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero-section::before,
.top-section::before,
.intro-box::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 0%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 68%);
}

.hero h1,
.hero-section h1,
.top-section h1,
.intro-box h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.08;
  max-width: 980px;
  margin-bottom: 22px;
}

.hero h2,
.hero-section h2,
.top-section h2,
.intro-box h2 {
  color: #ffffff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
  margin-top: 34px;
  margin-bottom: 16px;
}

.hero p,
.hero-section p,
.top-section p,
.intro-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  max-width: 860px;
  margin-bottom: 20px;
}

.hero ul,
.hero ol,
.hero-list {
  max-width: 860px;
  margin: 0 0 24px;
  padding-left: 1.2rem;
}

.hero li,
.hero-list li {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  margin-bottom: 10px;
}

/* =========================================
   FEATURE / CONTENT BOXES
========================================= */
.solar-box2,
.solar-box3,
.content-box,
.info-box,
.text-box,
.impressum-content,
.datenschutz-content,
.legal-box {
  width: min(var(--container), calc(100% - 32px));
  margin: 28px auto;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 2px /*var(--radius-md)*/;
  box-shadow: var(--shadow-md);
}

/* Highlight Box
.solar-box3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: #1f3c88;
  border-radius: 18px 18px 0 0;
}*/
.solar-box3 {
  background: #0b4f6c;
  border: 1px solid #e5e7eb;
  border-radius: 0px;
  padding: 40px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  position: relative;
}

.solar-box3 h1,
.solar-box3 h2 {
  color: #fefefe
}
.solar-box3 h3,
.solar-box3 p {
  color: #ffffff;
}

/* Secondary Box */
.solar-box2 {
  background: linear-gradient(135deg, #145c9e 0%, #14427f 100%);
  color: #ffffff;
  border: none;
}

.solar-box2 h1,
.solar-box2 h2,
.solar-box2 h3,
.solar-box2 p {
  color: #ffffff;
}

/* Standard content boxes */
.content-box,
.info-box,
.text-box,
.impressum-content,
.datenschutz-content,
.legal-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.98) 100%);
  border: 1px solid var(--border);
}

/* =========================================
   CARD GRID
========================================= */
.solar-grid,
.card-grid,
.leistungen-grid,
.reference-grid,
.zertifikat-grid,
.gallery,
.reference-gallery,
.image-grid {
  width: min(var(--container), calc(100% - 32px));
  margin: 32px auto 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.solar-box1,
.card,
.leistung-box,
.reference-box,
.zertifikat-box,
.solar-box {
  width: 100%;
  margin: 0;
  padding: 28px;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid #e5edf5;
  border-radius: 2px /*var(--radius-md)*/;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before,
.leistung-box::before,
.reference-box::before,
.zertifikat-box::before,
.solar-box::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1f3c88, #0ea5a4);
}

/*.solar-box1:hover,*/
.card:hover,
.leistung-box:hover,
.reference-box:hover,
.zertifikat-box:hover,
.solar-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(31, 60, 136, 0.15);
  border-color: #d0dbf0;
}

.solar-box1 {
  background: linear-gradient(135deg, #022f40 0%, #022f40 100%);
  color: #ffffff;
  border: none;
}
.solar-box1 h1 {
  color: #ffffff;
}
.solar-box1 h2 {
  color: #ffffff;
}
.solar-box1 h3 {
  color: #ffffff;
}
.solar-box1 p {
  color: #ffffff
}
.card h2,
.card h3,
.leistung-box h2,
.leistung-box h3,
.reference-box h2,
.zertifikat-box h2,
.solar-box h2,
.solar-box h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--heading);
}

.card p,
.leistung-box p,
.reference-box p,
.zertifikat-box p,
.solar-box p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* =========================================
   IMAGES
========================================= */
.gallery img,
.reference-gallery img,
.image-grid img,
.reference-box img,
.zertifikat-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0%;
  box-shadow: var(--shadow-sm);
}

/* =========================================
   BUTTONS
========================================= */
.cta-button,
.button,
.btn,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  border-radius: 0px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.cta-button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

/* =========================================
   FORMS
========================================= */
form {
  width: min(760px, 100%);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--heading);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 0px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 60, 136, 0.35);
  box-shadow: 0 0 0 4px rgba(31, 60, 136, 0.1);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================================
   TABLES
========================================= */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0px;
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-soft);
  color: var(--heading);
}

/* =========================================
   FOOTER / LEGAL / Impressum
========================================= */
.legal-content {
  width: min(var(--container), calc(100% - 32px));
  margin: 36px auto 26px;
  padding: 20px 24px;
  border-radius: 2px;/*var(--radius-md)*/;
  background: #046e8f;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}

.legal-text {
  color: #ffffff
}

footer,
.site-footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 34px auto 24px;
  padding: 24px 28px;
  border-radius: 2px /*var(--radius-md)*/;
  background: linear-gradient(135deg, #152b53 0%, #10213e 100%);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
}

footer a,
.site-footer a {
  color: #dbeafe;
}

footer p,
.site-footer p,
footer li,
.site-footer li {
  color: rgba(255, 255, 255, 0.78);
}

/* =========================================
   HELPERS
========================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* =========================================
   ACCESSIBILITY
========================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(14, 165, 164, 0.28);
  outline-offset: 3px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1200px) {
  .solar-grid,
  .card-grid,
  .leistungen-grid,
  .reference-grid,
  .zertifikat-grid,
  .gallery,
  .reference-gallery,
  .image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-contact {
    gap: 8px;
  }

  .contact-item {
    font-size: 0.86rem;
    padding: 7px 10px;
  }

  .nav-right > a,
  .dropdown-toggle {
    padding: 8px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-right {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 6px;
  }

  .nav-right.open {
    display: flex;
  }

  .nav-right > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: 0px;
    background: #1780c6;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 100%;
    margin-top: 6px;
    border-radius: 0px;
    box-shadow: none;
    border: 1px solid #e5edf5;
    opacity: 1;
  }

  .hero,
  .hero-section,
  .top-section,
  .intro-box,
  .solar-box1,
  .solar-box2,
  .solar-box3,
  .content-box,
  .info-box,
  .text-box,
  .impressum-content,
  .datenschutz-content,
  .legal-box,
  footer,
  .site-footer {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .nav-left {
    width: 100%;
    justify-content: space-between;
  }

  .brand-contact {
    display: none;
  }

  .header-image {
    width: 135px;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.55;
  }

  .page,
  .container,
  .section,
  .content-wrap,
  .navbar,
  .hero,
  .hero-section,
  .top-section,
  .intro-box,
  .solar-box1,
  .solar-box2,
  .solar-box3,
  .content-box,
  .info-box,
  .text-box,
  .impressum-content,
  .datenschutz-content,
  .legal-box,
  .solar-grid,
  .card-grid,
  .leistungen-grid,
  .reference-grid,
  .zertifikat-grid,
  .gallery,
  .reference-gallery,
  .image-grid,
  .legal-content,
  footer,
  .site-footer {
    width: min(100% - 20px, var(--container));
  }

  .solar-grid,
  .card-grid,
  .leistungen-grid,
  .reference-grid,
  .zertifikat-grid,
  .gallery,
  .reference-gallery,
  .image-grid {
    grid-template-columns: 1fr;
  }

 /*egal-content {
    flex-direction: column;
    gap: 0px;
  }*/

  .hero h1,
  .hero-section h1,
  .top-section h1,
  .intro-box h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero h2,
  .hero-section h2,
  .top-section h2,
  .intro-box h2 {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .hero p,
  .hero li,
  .hero-list li {
    font-size: 1rem;
  }
}
.impressum-content h2 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: #111827;
}

.impressum-content p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.impressum-content a {
  color: #1f3c88;
  font-weight: 600;
}

.impressum-content a:hover {
  text-decoration: underline;
}