/*
 * Global stylesheet for the evostored brand website.  
 * The design follows a clean, modern aesthetic with generous white space,
 * contemporary typography and a colour palette of muted greens and dark
 * accents.  
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    /*
     * Farbpalette, angepasst an das neue Logo: dunkles Blau als Primärfarbe,
     * kräftiges Grün als Sekundärfarbe und warmes Orange als Akzent.
     */
    --color-primary: #004a8f; /* dunkles Blau für Überschriften und Akzente */
    --color-secondary: #00994e; /* kräftiges Grün für Buttons und Highlights */
    --color-light: #f8fafc; /* sanftes Weiß für Hintergrundflächen */
    --color-dark: #012d52; /* sehr dunkles Blau für Footer und dunkle Sektionen */
    --color-accent: #f5a623; /* warmes Orange als Akzentfarbe */
    --text-color: #012d52; /* dunkle Schriftfarbe */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--color-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-secondary);
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-primary);
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav li {
    font-size: 1rem;
    font-weight: 500;
}

nav a {
    padding: 0.5rem 0;
}

nav a.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

.hero {
    margin-top: 80px; /* space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Angepasste Überlagerung, basierend auf dem dunklen Blau der neuen Farbpalette */
    background: linear-gradient(180deg, rgba(1,45,82,0.6) 0%, rgba(1,45,82,0.8) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-secondary);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

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

.section {
    padding: 4rem 1rem;
}

.section.dark {
    background-color: var(--color-dark);
    color: #fff;
}

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

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.feature-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    fill: var(--color-secondary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
}

.content-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* TEAM PAGE */
.team-intro{
  text-align:center;
  max-width: 900px;
  margin: 0 auto 2rem auto;
}
.team-intro h2{ margin-bottom: .5rem; }
.team-intro p{ margin: 0 auto; opacity: .9; }

.team-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card{
  grid-column: span 6;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(1,45,82,.08);
  border: 1px solid rgba(1,45,82,.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display:flex;
  flex-direction:column;
}

.team-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(1,45,82,.12);
  border-color: rgba(1,45,82,.14);
}

.team-photo-wrap{
  position: relative;
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, rgba(0,153,78,.18), rgba(1,45,82,.12));
}

.team-photo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: grayscale(1);
  transition: filter .18s ease, transform .18s ease;
}

.team-card:hover .team-photo{
  filter: grayscale(0);
  transform: scale(1.02);
}

.team-body{
  padding: 1.1rem 1.1rem 1.25rem 1.1rem;
}

.team-name{
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary, #012d52);
  letter-spacing: .2px;
}

.team-role{
  margin: .35rem 0 .75rem 0;
  font-weight: 700;
  color: var(--color-secondary, #00994e);
}

.team-bio{
  margin: 0;
  color: rgba(1,45,82,.85);
  line-height: 1.55;
}

.team-meta{
  margin-top: .95rem;
  display:flex;
  flex-wrap:wrap;
  gap: .5rem;
}

.chip{
  font-size: .85rem;
  font-weight: 700;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(1,45,82,.06);
  color: rgba(1,45,82,.9);
  border: 1px solid rgba(1,45,82,.10);
}

.team-cta{
  margin: 2.5rem auto 0 auto;
  max-width: 900px;
  text-align:center;
  padding: 1.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,153,78,.10), rgba(1,45,82,.06));
  border: 1px solid rgba(1,45,82,.10);
}

@media (max-width: 920px){
  .team-card{ grid-column: span 12; }
  .team-photo-wrap{ aspect-ratio: 16/12; }
}

/* Form styling (Kontakt) */
form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(1,45,82,0.2);
  border-radius: 6px;
  font-family: var(--body-font, Inter, sans-serif);
  font-size: 1rem;
  background: #fff;
}
form textarea { resize: vertical; min-height: 140px; }
form button.btn { border: none; cursor: pointer; }
