/* =============================================================================
   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-position: center 41%;
}

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

.hero_karriere { 
  background-image: url('/static/images/bewerbung.png');  
  background-position: center 52%;
  filter: hue-rotate(-11deg) saturate(1.2);
}
.image2 { background-image: url('/static/images/image2.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;
    }
  }