/* -------------------------
   Basis & Designsystem
-------------------------- */

@font-face {
    font-family: "Avenir";
    src: url("./src/font/Avenir.ttc") format("truetype");
    font-weight: 400;
    font-style: normal;
}


/* -------------------------
   Variablen & Grundstile
-------------------------- */
html {
    --color-orange: #C75216;
    --color-orange-light: #DF9B78;
    --color-yellow: #FFBB00;
    --color-green: #148D09;
    --color-grey-dark: #575656;
    --color-grey-mid: #9CA7B2;
    --color-grey-light: #F7F5F5;
    --color-bg: #F7F5F5;
    --color-text: #161B20;
    --color-border: #D9D9D9;

    --font-body: "Avenir", "Segoe UI", system-ui, sans-serif;
    --font-heading: "NeutraText", "Avenir", "Segoe UI", system-ui, sans-serif;

    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 14px 30px rgba(0,0,0,0.08);

    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: white;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1, h2{ font-weight: 700;}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: min(1120px, 100% - 2.5rem);
    margin-inline: auto;
}

/* -------------------------
   Header & Navigation
-------------------------- */

.logo {
    width: 6rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.main-nav a {
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width 0.25s ease-out;
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--color-orange);
    transition: background-color 0.25s ease, color 0.25s ease;
    color: var(--color-orange);
}

.nav-cta:hover {
    background: var(--color-orange);
    color: #fff;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.5rem;
}

/* -------------------------
   Buttons & Badges
-------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    gap: 0.4rem;
}

.btn-primary {
    background-color: var(--color-orange);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.btn-ghost {
    background: #fff;
    border-color: var(--color-border);
    color: var(--color-grey-dark);
}

.btn-ghost:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    text-decoration: none;
}

.btn-full {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.05);
    background: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    color: var(--color-grey-dark);
}

/* -------------------------
   Sections
-------------------------- */

.section {
    padding-block: 4.5rem;
}

.section-alt {
    background: var(--color-bg);
}

.section-header {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-grey-dark);
    font-size: 0.98rem;
}

.section-inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
/* -------------------------
Grid-Layouts 
-------------------------- */

.grid {
    display: grid;
    gap: 1.8rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* -------------------------
   Hero
-------------------------- */

.hero {
  min-height: 100vh;               
  display: flex;
  align-items: center;              
  background-color: var(--color-grey-light);
}

.hero-inner {
  display: flex;
  justify-content: center;           
  text-align: center;
  margin-top: -5rem;                   
}

.hero-text {
  max-width: 720px;            
}


.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-grey-mid);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-grey-dark);
  margin-bottom: 1.8rem;
}

/* Actions */

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

/* Badges */

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* -------------------------
   Cards & Listen
-------------------------- */

.card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.6rem 1.7rem;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-grey-dark);
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-orange);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.6rem 1.7rem;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);    
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
    color: #fff;
}

.project-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.94rem;
}

.project-list li {
    margin-bottom: 0.3rem;
}

/* Checklisten */

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-grey-dark);
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-green);
    font-size: 0.9rem;
}

/* -------------------------
   Timeline
-------------------------- */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.timeline-step {
    position: relative;
    padding: 1.5rem 1.3rem 1.4rem;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.timeline-step h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.timeline-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-grey-dark);
}

/* -------------------------
   Team
-------------------------- */

.team-grid {
    align-items: start;
    overflow: visible;
}

.team-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    height: 240px;
    transition: transform 420ms ease, box-shadow 300ms ease;
    cursor: pointer;
}

.team-card:hover {
    transform: scale(1.06);
    box-shadow: 0 22px 50px rgba(0,0,0,0.18);
    z-index: 5;
}

.team-content {
    position: relative;
    z-index: 2;
    padding: 1.6rem;
    transition: opacity 250ms ease, transform 300ms ease;
}

.team-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-orange);
}

.team-card:hover .team-content {
    opacity: 0;
    transform: translateY(-10px);
}

.team-media {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 300ms ease;
}

.team-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card:hover .team-media {
    opacity: 1;
}

/* -------------------------
   Kontakt
-------------------------- */

.contact-grid {
    align-items: flex-start;
}

.contact-block {
    margin-top: 1.4rem;
}

.contact-block h3 {
    margin-bottom: 0.4rem;
}

.contact-block p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-grey-dark);
}

.contact-block a {
    color: var(--color-orange);
}

.contact-cta {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-soft);

    margin: auto;   
}

.contact-cta h3 {
    margin-top: 0;
}

/* -------------------------
   Footer
-------------------------- */

.site-footer {
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    padding-block: 1.1rem;
    font-size: 0.8rem;
    color: var(--color-grey-mid);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
    text-decoration: none;
}

/* -------------------------
   Slideshow
-------------------------- */

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.slides {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    position: relative;
    overflow: hidden;
    min-width: 100%;
    text-align: center;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.8);
    color: var(--color-grey-dark);
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(4px);
}

.slider-btn:hover {
    background: rgba(255,255,255,1);
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.9rem 1rem;
    background: rgba(0,0,0,0.30);
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.35s ease;
}

.slide:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   Responsive (Desktop-first)
   Tablet + Handy
-------------------------- */

/* Tablet (<= 900px) */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

    /* Portrait  deaktivieren */
  .team-media {
    display: none;
  }

  /* Text immer sichtbar */
  .team-content {
    opacity: 1;
    transform: none;
  }

  /* Hover-Effekte neutralisieren */
  .team-card:hover {
    transform: none;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  }

  .team-card:hover .team-content {
    opacity: 1;
    transform: none;
  }

  .team-card:hover .team-media {
    opacity: 0;
  }
}

/* Handy (<= 600px) */
@media (max-width: 600px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation */
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .main-nav.nav-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: block;
  }
}