/**
 * Haug & Partner – Sitepackage
 * Farben: Primär #00639C, Sekundär #F5F5F5, Akzent #28A745, Dunkel #004B7A
 * Font: Open Sans
 */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --haug-primary: #00639C;
  --haug-primary-dark: #004B7A;
  --haug-secondary: #F5F5F5;
  --haug-accent: #28A745;
  --haug-text: #004B7A;
  --haug-text-muted: rgba(0, 75, 122, 0.65);
  --haug-white: #FFFFFF;
  --haug-border: #e5e5e5;
  --haug-font-sans: 'Open Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--haug-font-sans);
  color: var(--haug-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.haug-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.haug-about-grid {
  display: grid;
  gap: 4rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .haug-about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Section spacing */
.haug-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.haug-section--light {
  background-color: var(--haug-secondary);
}

.haug-section--white {
  background-color: var(--haug-white);
}

.haug-section--dark {
  background-color: var(--haug-primary-dark);
  color: var(--haug-white);
}

.haug-section--primary {
  background-color: var(--haug-primary);
  color: var(--haug-white);
}

/* Typography */
.haug-eyebrow {
  color: var(--haug-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.haug-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 1rem;
}

.haug-headline--light {
  color: var(--haug-white);
}

.haug-headline--dark {
  color: var(--haug-primary-dark);
}

.haug-lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--haug-text-muted);
}

.haug-lead--light {
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.haug-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--haug-font-sans);
  text-decoration: none;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.haug-btn--primary {
  background-color: var(--haug-primary);
  color: var(--haug-white);
  border-color: var(--haug-primary);
}

.haug-btn--primary:hover {
  background-color: var(--haug-primary-dark);
  border-color: var(--haug-primary-dark);
  color: var(--haug-white);
}

.haug-btn--outline-light {
  background-color: transparent;
  color: var(--haug-white);
  border-color: var(--haug-white);
}

.haug-btn--outline-light:hover {
  background-color: var(--haug-white);
  color: var(--haug-primary-dark);
}

.haug-btn--outline-primary {
  background-color: transparent;
  color: var(--haug-primary);
  border-color: var(--haug-primary);
}

.haug-btn--outline-primary:hover {
  background-color: var(--haug-primary);
  color: var(--haug-white);
}

.haug-btn--white {
  background-color: var(--haug-white);
  color: var(--haug-primary);
}

.haug-btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--haug-primary-dark);
}

/* Header / Nav */
.haug-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.haug-header.is-scrolled {
  background-color: var(--haug-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.haug-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.haug-header .haug-logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--haug-white);
  transition: color 0.2s;
}

.haug-header.is-scrolled .haug-logo {
  color: var(--haug-primary);
}

.haug-logo span {
  font-weight: 300;
}

.haug-nav {
  display: none;
}

@media (min-width: 768px) {
  .haug-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.haug-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.haug-header.is-scrolled .haug-nav a {
  color: var(--haug-primary-dark);
}

.haug-nav a:hover {
  color: var(--haug-primary);
}

.haug-nav-phone {
  display: none;
}

@media (min-width: 768px) {
  .haug-nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--haug-white);
    text-decoration: none;
  }
  .haug-header.is-scrolled .haug-nav-phone {
    color: var(--haug-primary);
  }
}

/* Hero */
.haug-hero {
  position: relative;
  min-height: 100vh;
  min-height: min(100vh, 600px);
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .haug-hero {
    align-items: center;
    padding-bottom: 0;
  }
}

.haug-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.haug-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.2) 100%);
}

.haug-hero__content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
}

.haug-hero__badge {
  color: var(--haug-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.haug-hero__title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--haug-white);
  margin: 0 0 1.25rem;
}

.haug-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Stats grid */
.haug-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.haug-stat {
  background: var(--haug-secondary);
  border: 1px solid var(--haug-border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s;
}

.haug-stat:hover {
  border-color: rgba(0, 99, 156, 0.3);
}

.haug-stat__value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--haug-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.haug-stat__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--haug-text-muted);
}

/* Service cards */
.haug-services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .haug-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.haug-service-card {
  background: var(--haug-white);
  border: 1px solid var(--haug-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.haug-service-card:hover {
  border-color: rgba(0, 99, 156, 0.4);
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.haug-service-card__accent {
  width: 2.5rem;
  height: 4px;
  border-radius: 9999px;
  background: var(--haug-primary);
  margin-bottom: 1.5rem;
}

.haug-service-card:hover .haug-service-card__accent {
  background: var(--haug-accent);
}

.haug-service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--haug-primary-dark);
  margin: 0 0 0.75rem;
}

.haug-service-card__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--haug-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.haug-service-card__link:hover {
  color: var(--haug-accent);
}

/* Testimonial */
.haug-testimonial {
  position: relative;
  overflow: hidden;
}

.haug-testimonial__quote {
  font-size: 1.25rem;
  line-height: 1.6;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 2rem;
  max-width: 48rem;
  text-align: center;
}

@media (min-width: 768px) {
  .haug-testimonial__quote {
    font-size: 1.5rem;
  }
}

.haug-testimonial__author {
  font-weight: 700;
  font-size: 1.125rem;
}

.haug-testimonial__role {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Reference cards */
.haug-ref-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .haug-ref-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.haug-ref-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--haug-border);
  transition: box-shadow 0.3s;
}

.haug-ref-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.haug-ref-card__image {
  position: relative;
  display: block;
  width: 100%;
  height: 14rem;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.haug-ref-card:hover .haug-ref-card__image {
  transform: scale(1.05);
}

.haug-ref-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--haug-primary);
  color: var(--haug-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.haug-ref-card__body {
  background: var(--haug-white);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.haug-ref-card__title {
  font-weight: 700;
  color: var(--haug-primary-dark);
  font-size: 1rem;
  margin: 0;
}

.haug-ref-card__image--placeholder {
  background: linear-gradient(135deg, var(--haug-secondary) 0%, var(--haug-border) 100%);
}

/* CTA band */
.haug-cta {
  text-align: center;
}

.haug-cta__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--haug-white);
}

.haug-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .haug-cta__actions {
    flex-direction: row;
  }
}

/* Footer */
.haug-footer {
  background: var(--haug-primary-dark);
  color: var(--haug-white);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.haug-footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .haug-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.haug-footer__brand {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.haug-footer__brand span {
  font-weight: 300;
}

.haug-footer__subline {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.haug-footer__heading {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
}

.haug-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
}

.haug-footer a:hover {
  color: var(--haug-white);
}

.haug-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .haug-footer__bottom {
    flex-direction: row;
  }
}

.haug-footer__bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.haug-footer__bottom a:hover {
  color: var(--haug-white);
}

/* Triangle diagram (see also JS) */
.haug-triangle {
  position: relative;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}

.haug-triangle svg {
  width: 100%;
  height: auto;
}

.haug-triangle__label {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--haug-primary-dark);
  transition: opacity 0.2s;
}

.haug-triangle__label--center {
  text-align: center;
}

.haug-triangle__label--left {
  text-align: right;
  max-width: 45%;
}

.haug-triangle__label--right {
  text-align: left;
  max-width: 45%;
}

.haug-triangle__label.is-active {
  color: var(--haug-accent);
}

.haug-triangle__label-desc {
  font-size: 0.625rem;
  color: var(--haug-text-muted);
}

@media (min-width: 768px) {
  .haug-triangle__label-desc {
    font-size: 0.625rem;
  }
}

/* Mobile menu */
.haug-mobile-toggle {
  display: flex;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .haug-mobile-toggle {
    display: none;
  }
}

.haug-mobile-nav {
  display: block;
  background: var(--haug-white);
  border-top: 1px solid var(--haug-border);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .haug-mobile-nav {
    display: none;
  }
}

.haug-mobile-nav a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--haug-primary-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--haug-border);
}
