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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2933;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout wrapper */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-area img {
  height: 120px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}

.nav a:hover::after,
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #145da0;
}

/* Hero */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 55%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
  color: #ffffff;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: #d1e3ff;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;

}

.hero-subtitle {
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-block;
  background-color: #145da0;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #0f477a;
  transform: translateY(-1px);
}

/* Main content */
main {
  flex: 1;
}


main h1,
main h2,
main h3,
main h4 {
  color: #145da0; /* Logo-Blau */
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 20px;
}

.section-heading {
  font-size: 26px;
  margin-bottom: 24px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Angebot cards (home) */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.offer-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px 20px 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.offer-icon {
  margin-bottom: 14px;
}

.offer-icon img {
  width: 128px;   /* Größe der Icons */
  height: 128px;
  display: block;
  margin: auto; 
}

.offer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.offer-text {
  font-size: 14px;
  color: #4b5563;
}

/* Generic two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
  align-items: start;
}

.two-column p {
  margin-bottom: 14px;
  font-size: 15px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 32px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-family: inherit;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: #145da0;
  box-shadow: 0 0 0 1px rgba(20,93,160,0.2);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: #6b7280;
}

/* Footer */
.footer {
  background-color: #145da0;
  color: #ffffff;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a {
  margin-left: 18px;
  font-size: 14px;
  opacity: 0.95;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    height: 360px;
  }
  .hero-title {
    font-size: 30px;
  }
  .two-column,
  .offer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero {
    height: 320px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.05) 70%);
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .section {
    padding: 36px 16px;
  }
}

@media (max-width: 480px) {
  .logo-area img {
    height: 40px;
  }
  .logo-text {
    font-size: 16px;
  }
  .nav {
    font-size: 14px;
  }
  .offer-card {
    padding: 16px;
  }
}


.content-media-right {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 40px 0;
}

.content-media-right .content-text {
  flex: 1;
}

.content-media-right .content-media {
  flex: 1;
}

.content-media-right img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Responsive: Bild unter Text auf Mobile */
@media (max-width: 900px) {
  .content-media-right {
    flex-direction: column;
  }
}

.content-media {
  background: linear-gradient(
    135deg,
    rgba(20,93,160,0.08),
    rgba(20,93,160,0.02)
  );
  padding: 12px;
  border-radius: 10px;
}


/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  animation: modalFadeIn 160ms ease-out;
}

.modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 12vh auto 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  padding: 22px 22px 18px;
  transform: translateY(10px) scale(0.98);
  animation: modalPopIn 180ms ease-out forwards;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #64748b;
}

.modal__close:hover {
  color: #0f172a;
}

.modal__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(20, 93, 160, 0.10);
  color: #145da0;
  display: grid;
  place-items: center;
  margin: 6px 0 10px;
}

.modal--error .modal__icon {
  background: rgba(220, 38, 38, 0.10);
  color: #dc2626;
}

.modal__svg {
  width: 30px;
  height: 30px;
}

.modal__title {
  font-size: 20px;
  margin-bottom: 6px;
}

.modal__text {
  font-size: 14px;
  color: #475569;
  margin-bottom: 14px;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalPopIn {
  to { transform: translateY(0) scale(1); }
}
