/* =============================================================================
   main.css — Site stylesheet
   Fonts: Inter UI (served locally from /static/font/)
   ============================================================================= */


/* =============================================================================
   Fonts
   ============================================================================= */

@font-face {
  font-family: 'Inter UI';
  font-style: normal;
  font-weight: 400;
  src: url('/static/font/Inter-UI-Regular.woff2?v=1.11') format('woff2'),
       url('/static/font/Inter-UI-Regular.woff?v=1.11') format('woff');
}

@font-face {
  font-family: 'Inter UI';
  font-style: normal;
  font-weight: 500;
  src: url('/static/font/Inter-UI-Medium.woff2?v=1.11') format('woff2'),
       url('/static/font/Inter-UI-Medium.woff?v=1.11') format('woff');
}

@font-face {
  font-family: 'Inter UI';
  font-style: normal;
  font-weight: 700;
  src: url('/static/font/Inter-UI-Bold.woff2?v=1.11') format('woff2'),
       url('/static/font/Inter-UI-Bold.woff?v=1.11') format('woff');
}

@font-face {
  font-family: 'Inter UI';
  font-style: normal;
  font-weight: 900;
  src: url('/static/font/Inter-UI-Black.woff2?v=1.11') format('woff2'),
       url('/static/font/Inter-UI-Black.woff?v=1.11') format('woff');
}


/* =============================================================================
   Base
   ============================================================================= */

html {
  width: 100%;
  font-family: 'Inter UI', sans-serif;
  color: #111;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
}


/* =============================================================================
   Typography
   ============================================================================= */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: #ee6f13;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
  font-weight: 700;
  color: #ee6f13;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: #ee6f13;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
  font-weight: 400;
  color: #333;
}


/* =============================================================================
   Header
   ============================================================================= */

header {
  width: 100%;
  min-height: 110px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

#header_container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
}

/* Logo */
#logo {
  width: 20%;
  height: 110px;
  min-width: 300px;
  display: flex;
  padding: 0 0 3px 0;
}

#logo img {
  max-height: 110px;
}

/* Right side: phone number + navigation */
#header_right {
  width: 80%;
  min-height: 110px;
  min-width: 350px;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
}

#header_right #phone {
  width: 100%;
  color: #0061b0;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  text-align: right;
  margin: 10px 10px 0 auto;
}

#header_right nav {
  margin: auto 10px 25px auto;
}

#header_right nav a {
  color: #ed841a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 18px;
  margin: 0 10px;
  text-decoration: none;
  border-bottom: 4px solid transparent;
  transition: border-color 0.15s ease;
}

#header_right nav a:last-child {
  margin-right: 0;
}

#header_right nav a:hover,
#header_right nav a.selected {
  border-bottom-color: #ed841a;
}

/* Mobile nav overlay — toggled by JS via .active class */
.active {
  top: 110px !important;
  bottom: 0 !important;
}

#header_right nav .active {
  margin:20px;
}

.fixed {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
}

/* Hamburger button — hidden on desktop, shown in mobile media query */
#thumb_button {
  display: none;
}


/* 12 column grid system for header and main content */

.columns {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px; /* Adjust for column padding */
}

.col{
  padding: 0 20px; /* Column padding */
  box-sizing: border-box;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

@media screen and (max-width: 800px) {
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11 {
    width: 100%;
  }
}






/* =============================================================================
   Hero / top bar
   ============================================================================= */

#topbar {
  width: 100%;
}

#topbar_container {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}


/* Full-width hero image */
.topbar_image {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 35vw;
  min-height: 280px;
  max-height: 500px;
  width: 100%;
}

/* Background image variants */
.hero_firma_amann { 
  /*background-image: url('/static/images/firma2.jpg');  */
  background-image: url('/static/images/cars.webp');
  background-image: url('/static/images/cars.jpg');
  background-position: center 55%;
}
@media screen and (max-width: 800px) {
  .hero_firma_amann { 
    background-position: center 5%;
  }
}

.hero_kontakt { 
  background-image: url('/static/images/contact.jpg');  
  background-image: url('/static/images/contact.webp');
  background-position: center 52%;
}

.hero_karriere { 
  background-image: url('/static/images/team_wide.webp');
  background-image: url('/static/images/team_wide.jpg');  
  background-position: center 52%;


}




.image2 {   background-image: url('/static/images/pressure.webp');
  background-image: url('/static/images/pressure.jpg');
  background-position: bottom; }

.image3 { background-image: url('/static/images/image3.jpg'); background-position: bottom; }


/* Centred wrapper inside the hero */
.topbar_margin {
  margin: 0 auto;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
}

/* White card overlaid on the bottom-right of the hero */
.topbar_box {
  max-width: 270px;
  padding: 19px 32px;
  position: absolute;
  bottom: 24px;
  right: 0;
  background-color: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}
.topbar_box:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  bottom: 27px;
}

/* Hero overlay card text */
.box-text {
  font-size: 2.0em;
  font-weight: 400;
  color: #ed841a;
  line-height: 1.25;
  margin: 0;
}

.box-text b {
  font-weight: 700;
}


/* =============================================================================
   Main content
   ============================================================================= */

#main {
  width: 100%;
  background-color: #fff;
}

#main_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 48px 20px;
}

/* ---------------------------------------------------------------------------
   Content sections
   Each .content-section is a visually distinct block with a left accent bar
   on its heading group, generous whitespace, and a subtle bottom divider.
   --------------------------------------------------------------------------- */

.content-section {
  padding: 32px 0;
  border-bottom: 1px solid #e8e8e8;
}

.content-section:last-child {
  border-bottom: none;
}

/* Heading group: orange accent bar + heading + caption */
.section-header {
  /*padding-left: 18px;
  border-left: 4px solid #ed841a;*/
  margin-bottom: 20px;
}

#main h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 25px 0px 10px 0px;
  font-weight: 700;
  color: #ee6f13;
  letter-spacing: 0.02em;

}

#main h2 {
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 25px 0px 10px 0px;
  font-weight: 700;
  color: #ee6f13;
  letter-spacing: 0.02em;

}

#main h3{
display: block;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 400;
  color: #0061b0;
  letter-spacing: 0.04em;
    margin: 25px 0px 10px 0px;

}

/* Body text inside content sections */
#main p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #000;
  max-width: 800px;
}

#main ul,
#main ol {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #000;
  max-width: 800px;
  padding-left: 1.5em;
  margin: 0 0 1rem;
}

#main li {
  margin-bottom: 0.35em;
}


/* =============================================================================
   Footer
   ============================================================================= */

footer {
  width: 100%;
  background-color: #0061b0;
  margin-top: auto;
  color: #fff;
}

#footer_container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 24px 40px;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-img {
  max-width: 180px;
  height: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 80%;
}

/* Generic column */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 8px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.75;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.footer-col p a {
  color: #fff;
  font-weight: 400;
}

.footer-small {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
  margin-top: 4px !important;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}


/* =============================================================================
   Responsive — tablet (≤ 800px)
   ============================================================================= */

@media screen and (max-width: 800px) {
  #footer_container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 36px 20px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  #logo {
    min-width: 250px;
  }

  #logo a {
    margin: auto;
    max-height: 110px;
    z-index: 500;
  }

  #header_right nav a {
    font-size: 14px;
  }

  #main_container {
    padding: 20px 20px 48px 20px;
  }

  .section-header h2 {
    font-size: 1.35rem;
  }
}


/* =============================================================================
   Responsive — mobile (≤ 600px)
   ============================================================================= */

@media screen and (max-width: 600px) {

  #footer_container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px 24px;
  }

  .footer-logo-img {
    max-width: 140px;
  }

  /* Header stacks vertically */
  #header_container {
    flex-wrap: wrap;
  }

  #logo {
    width: 100%;
  }

  #header_right {
    width: 100%;
    min-height: 0;
    text-align: center;
  }

  /* Full-screen slide-down nav menu */
  #header_right nav {
    width: 100%;
    position: absolute;
    top: -100%;
    right: 0;
    bottom: 100vh;
    z-index: 400;
    margin: 0;
    background: #fff;
    transition: all 0.3s cubic-bezier(.65, .05, .36, 1);
    line-height: 4em;
    padding-top: 35px;
  }

  #header_right nav a {
    color: #ee6f13;
    font-size: 26px;
    line-height: 40px;
    margin: 0 10px;
  }

  /* Stack each nav link on its own line */
  #header_right nav a::after {
    content: "\a";
    white-space: pre;
  }

  #header_right #phone {
    display: none;
  }

  /* Hamburger button */
  #thumb_button {
    display: block;
    position: absolute;
    right: 0;
    z-index: 1000;
    margin: 44px 10%;
  }

  #thumb_button button {
    background: none;
    border: none;
    cursor: pointer;
  }

  #thumb_button .bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 5px;
    border-radius: 3px;
    background-color: #ed841a;
    transition: all 0.2s ease-in-out;
  }

  #thumb_button button.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
  }

  #thumb_button button.active .bar:nth-child(2) {
    opacity: 0;
  }

  #thumb_button button.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
  }

  /* Hero adjustments */
  .topbar_image {
    min-height: 200px;
  }

  .topbar_box {
    display: none;
  }

  /* Main content adjustments */
  #main_container {
    padding: 24px 16px 40px;
  }

  .content-section {
    padding: 24px 0;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .section-header .caption {
    font-size: 0.9rem;
  }
}




/* --- Card grid ─────────────────────────────────────────── */
  .leistungen-cards {
    display: flex;
    gap: 24px;
    margin:60px auto;
  }

  .leistungen-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
  }

  .leistungen-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
  }

  /* --- Icon circle ───────────────────────────────────────── */
  .card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff5eb;
    border-radius: 50%;
    margin-bottom: 20px;
  }

  /* --- Card typography ───────────────────────────────────── */
  .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
  }

  .card-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    flex: 1;
    margin: 0 0 20px;
  }

  /* --- Card link ─────────────────────────────────────────── */
  .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ed841a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: gap 0.2s;
  }

  .card-link:hover {
    gap: 10px;
  }

  /* --- Responsive ────────────────────────────────────────── */
  @media screen and (max-width: 800px) {
    .leistungen-cards {
      flex-direction: column;
    }
  }


/* =============================================================================
   Homepage — Hero
   ============================================================================= */

.home-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
}

.home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.65;
}

.home-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.home-hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
}

.home-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 18px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.home-hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 36px;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.home-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* =============================================================================
   Buttons
   ============================================================================= */

.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: #ee6f13;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #d4600f;
}

.btn-ghost {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}


/* =============================================================================
   Trust strip
   ============================================================================= */

.trust-strip {
  background: #0061b0;
  padding: 28px 20px;
}

.trust-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.trust-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 3px;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}


/* =============================================================================
   Homepage — sections
   ============================================================================= */

.home-section-header {
  text-align: center;
  padding: 52px 0 32px;
}

.home-section-header p {
  max-width: 560px;
  margin: 10px auto 0;
  color: #555;
  font-size: 1.05rem;
}

.home-cta {
  background: #0f1923;
  padding: 72px 24px;
  margin-top: 48px;
}

.home-cta__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 64px;
  align-items: center;
}

.home-cta__text {
  flex: 1 1 55%;
}

.home-cta__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ee6f13;
  margin: 0 0 12px;
}

.home-cta__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.15;
}

.home-cta__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.7;
}

.home-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-ghost-dark {
  display: inline-block;
  padding: 13px 28px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost-dark:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.home-cta__contact {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-cta__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.5);
}

.home-cta__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #ee6f13;
}

.home-cta__contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-cta__contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.home-cta__contact-value {
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

a.home-cta__contact-value:hover {
  color: #ee6f13;
}


/* =============================================================================
   Responsive — homepage
   ============================================================================= */

@media (max-width: 600px) {
  .home-hero {
    min-height: 360px;
  }

  .home-hero__inner {
    padding: 56px 20px;
  }

  .trust-divider {
    display: none;
  }

  .home-cta {
    padding: 52px 20px;
  }

  .home-cta__inner {
    flex-direction: column;
    gap: 40px;
  }

  .home-cta__contact {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
  }
}


/* =============================================================================
   Float images
   ============================================================================= */

.content-with-image {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.content-with-image .content-text {
  flex: 1;
  order: 1;
}

.float-image-right {
  float: right;
  margin: 1em 0 1em 1em;
  max-width: 50%;
  height: auto;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
  border: 33px solid white;
  box-sizing: border-box;
  order: 2;
}
.float-image-left {
  float: left;
  margin: 1em 1em 1em 0;
  max-width: 50%;
  height: auto;
  box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
  border: 33px solid white;
  box-sizing: border-box;
}

@media screen and (max-width: 800px) {
  .content-with-image {
    flex-direction: column;
  }

  .content-with-image .content-text {
    order: 1;
  }

  .float-image-right,
  .float-image-left {
    float: none;
    margin: 1em auto;
    max-width: 100%;
    order: 2;
  }
}