/* ============================================
   Leadnet.de - Static Website Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #095c8b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: #f39d00;
}

a:focus-visible {
  outline: 2px solid #f39d00;
  outline-offset: 2px;
}

ul {
  list-style: none;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #095c8b;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* --- Utility --- */
.highlight-blue { color: #095c8b; font-weight: 700; }
.highlight-orange { color: #f39d00; font-weight: 700; }

/* --- Header / Navigation --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 93px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 93px;
  position: relative;
}

.site-logo {
  display: block;
  flex-shrink: 0;
  z-index: 1001;
}

.site-logo:hover,
.site-logo:focus {
  opacity: 0.85;
}

.site-logo:focus-visible {
  outline: 2px solid #f39d00;
  outline-offset: 4px;
}

.site-logo img {
  display: block;
  width: 322px;
  height: 69px;
  object-fit: contain;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  gap: 0;
  align-items: center;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: block;
  padding: 1.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-bottom: 3px solid transparent;
}

.main-nav__link:hover,
.main-nav__link:focus {
  color: #f39d00;
  background-color: rgba(243, 157, 0, 0.05);
  outline: none;
  border-bottom-color: #f39d00;
}

.main-nav__link--active {
  color: #095c8b;
  font-weight: 600;
  border-bottom-color: #095c8b;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle__bar {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* --- Hero Banner (Header Image) --- */
.hero-banner {
  background-color: #1a1a2e;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Page-specific banner backgrounds */
.hero-banner--home       { background-image: url('../images/header-home.jpg'); }.hero-banner--ueberuns   {
  background-image: url('../images/header-ueberuns.jpg');
}
.hero-banner--kontakt    { background-image: url('../images/header-datenschutz.jpg'); }
.hero-banner--impressum  {
  background-image: url('../images/header-datenschutz.jpg');
}
.hero-banner--datenschutz{ background-image: url('../images/header-datenschutz.jpg'); }
.hero-banner--agb        { background-image: url('../images/header-agb.jpg'); }

.hero-banner__overlay {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 2rem 3rem;
  display: inline-block;
}

.hero-banner__title {
  font-weight: 700;
  font-size: 2.188em;
  color: #4e4e4e;
  line-height: 1.4;
  text-shadow: none;
  margin-bottom: 0.5rem;
}

.hero-banner__title--dark {
  color: #4e4e4e;
  text-shadow: none;
}

.hero-banner .highlight-blue { color: #095c8b; text-shadow: none; }
.hero-banner .highlight-orange { color: #f39d00; text-shadow: none; }

/* Subpage banners: same height as home */
.hero-banner--sub {
  min-height: 400px;
}

.hero-banner__subtitle {
  font-weight: 700;
  font-size: 1.812em;
  color: #555;
  line-height: 1.4;
  text-shadow: none;
}

.hero-banner__sub2 {
  font-size: 1.25em;
  color: #555;
  line-height: 1.4;
  text-shadow: none;
  margin-top: 0.25rem;
}

/* --- Hero Section (Home page intro) --- */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero__title {
  font-size: 1.875em;
  color: #4e4e4e;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero__title strong {
  color: #f39d00;
  font-weight: 700;
}

.hero__text {
  font-size: 1rem;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Section Title --- */
.section-title {
  text-align: center;
  font-size: 1.875em;
  color: #4e4e4e;
  margin: 2rem 0 1.5rem;
  font-weight: 400;
}

/* --- Feature Cards --- */
.features {
  padding: 3rem 0;
  border-top: 3px solid #095c8b;
}

.features .cta-link {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 1rem auto 0;
}

/* Leistung Cards */
.leistung-card {
  display: flex;
  gap: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #095c8b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.leistung-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.leistung-card:nth-child(odd) {
  border-left-color: #f39d00;
}

.leistung-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: #095c8b;
}

.leistung-card:nth-child(odd) .leistung-card__icon {
  color: #f39d00;
}

.leistung-card__icon svg {
  width: 100%;
  height: 100%;
}

.leistung-card__content h3 {
  font-size: 1.375rem;
  color: #4e4e4e;
  margin-bottom: 0.75rem;
}

.leistung-card__content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.leistung-card__content strong {
  color: #095c8b;
}

.leistung-card__content .cta-link {
  margin: 1rem 0 0;
  display: inline-block;
  text-align: left;
}

/* --- CTA Banner (before footer) --- */
.cta-banner {
  background: #095c8b;
  padding: 3rem 0;
  text-align: center;
  border-top: 3px solid #f39d00;
}

.cta-banner__title {
  font-size: 2em;
  color: #fff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.cta-banner .highlight-orange {
  color: #f39d00;
}

.cta-banner__text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-link--light {
  background: #fff;
  color: #095c8b;
}

.cta-link--light:hover,
.cta-link--light:focus {
  background: #f39d00;
  color: #fff;
}

@media (max-width: 768px) {
  .leistung-card {
    flex-direction: column;
    gap: 0.75rem;
  }

  .leistung-card__icon {
    width: 36px;
    height: 36px;
  }

  .cta-banner__title {
    font-size: 1.5em;
  }
}

/* --- Feature Cards (unused - kept for subpages) --- */

/* --- Content Pages --- */
.page-content {
  flex: 1;
  padding: 2rem 0 3rem;
}

.page-content__title {
  font-size: 1.875em;
  color: #4e4e4e;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.page-content h2 {
  font-size: 1.5em;
  color: #4e4e4e;
  margin: 1.5rem 0 0.75rem;
}

.page-content h3 {
  font-size: 1.25em;
  color: #4e4e4e;
  margin: 1.25rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #555;
}

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: #555;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  margin-bottom: 0.25rem;
  line-height: 1.6;
}

/* --- Contact Form --- */
.contact-section {
  padding: 2rem 0 3rem;
  flex: 1;
}

.contact-intro {
  margin-bottom: 2rem;
  max-width: 700px;
}

.contact-intro h2 {
  font-size: 1.5em;
  color: #4e4e4e;
  margin-bottom: 0.75rem;
}

.contact-intro p {
  color: #555;
  line-height: 1.7;
}

.contact-intro strong {
  color: #095c8b;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #095c8b;
}

.contact-card h3 {
  color: #095c8b;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-card li {
  color: #555;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.contact-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: #f39d00;
  border-radius: 50%;
}

/* Bot-protected phone */
.tel-protected {
  color: #095c8b;
  cursor: pointer;
  border-bottom: 1px dashed #095c8b;
}

.tel-protected:hover { color: #f39d00; border-color: #f39d00; }

.contact-info {
  margin-bottom: 2rem;
  color: #555;
  line-height: 1.8;
}

.contact-info p { margin-bottom: 0.5rem; }

.contact-form { max-width: 100%; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 0.9375rem;
  color: #333;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #095c8b;
  box-shadow: 0 0 0 3px rgba(9, 92, 139, 0.15);
  outline: none;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: #cf2e2e;
}

/* Checkbox */
.form-group--checkbox {
  margin: 1.5rem 0;
}

.checkbox-label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: #095c8b;
}

.checkbox-label a {
  color: #095c8b;
  text-decoration: underline;
}

.form-error {
  color: #cf2e2e;
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: none;
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-sidebar {
    order: -1;
  }
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.captcha-question {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.captcha-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.captcha-input:focus {
  border-color: #095c8b;
  box-shadow: 0 0 0 3px rgba(9, 92, 139, 0.15);
  outline: none;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #095c8b;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:hover { background: #074a6f; }
.btn-submit:focus-visible { outline: 2px solid #f39d00; outline-offset: 2px; }
.btn-submit:active { transform: scale(0.98); }
.btn-submit:disabled { background: #999; cursor: not-allowed; }

.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
}

.form-message--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-message--error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.form-message--rate-limit { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

/* --- Footer (Sticky) --- */
.site-footer {
  background: url('../images/footer-bg.jpg') center center / cover no-repeat;
  background-color: #1a1a2e;
  color: #fff;
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus { color: #f39d00; }

.footer-copy { color: rgba(255,255,255,0.7); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: #095c8b;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 999;
  transition: background-color 0.2s ease, opacity 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top:hover { background: #074a6f; }
.back-to-top:focus-visible { outline: 2px solid #f39d00; outline-offset: 2px; }
.back-to-top.visible { display: flex; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .features__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-banner { min-height: 300px; }
  .hero-banner--sub { min-height: 300px; }
  .hero-banner__title { font-size: 1.5em; }
  .hero-banner__subtitle { font-size: 1.25em; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .site-logo img { width: 200px; height: auto; }

  .main-nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .main-nav__list.is-open { display: flex; }

  .main-nav__link {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .hero__title, .section-title, .feature-card__title { font-size: 1.5em; }

  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* --- Print --- */
@media print {
  .site-header, .site-footer, .back-to-top, .hero-banner { display: none; }
  body { font-size: 12pt; color: #000; }
}

/* --- Sovereign Cloud Teaser (Home) --- */
.sovereign-teaser {
  background: #f0f4f8;
  padding: 3rem 0;
  border-top: 3px solid #095c8b;
}

.sovereign-teaser .hero__text {
  max-width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
}

.sovereign-teaser .hero__text strong {
  color: #095c8b;
}

.section-subtitle {
  font-size: 1.5em;
  color: #4e4e4e;
  margin: 2.5rem 0 0.75rem;
  font-weight: 600;
  border-left: 4px solid #f39d00;
  padding-left: 0.75rem;
}

.sovereign-teaser .cta-link {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 1rem auto 0;
}

/* --- CTA Link --- */
.cta-link {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: #095c8b;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease;
}

.cta-link:hover, .cta-link:focus {
  background: #f39d00;
  color: #fff;
}

/* --- Service Page Sections --- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid #095c8b;
}

.service-card h3 {
  color: #095c8b;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.service-card--orange {
  border-left-color: #f39d00;
}

.service-card--orange h3 {
  color: #f39d00;
}

@media (max-width: 991px) {
  .service-highlight .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  text-decoration: none;
  color: #555;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a:focus {
  background: rgba(9, 92, 139, 0.1);
  color: #095c8b;
}

.lang-switch .lang-active {
  background: #095c8b;
  color: #fff;
}

.lang-switch .lang-sep {
  color: #ccc;
  padding: 0;
}

/* --- Social Links --- */
.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #fff;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: #f39d00;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-card .social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.contact-card .social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.contact-card .social-links svg {
  width: 20px;
  height: 20px;
  fill: #095c8b;
  flex-shrink: 0;
}

.contact-card .social-links a:hover svg {
  fill: #f39d00;
}
