/* ---------------------------------------------------------
   Capri24h – CapriSun Inspired Theme
   style.css – FINAL VERSION
--------------------------------------------------------- */

/* ---------- Farbpalette ---------- */
:root {
  --sun-orange: #ffb300;
  --sun-orange-dark: #e09500;
  --sun-yellow: #ffd54f;

  --capri-blue: #0072ce;
  --capri-blue-dark: #004b8d;

  --sky-light: #e3f2fd;
  --sky-white: #ffffff;

  --dark-bg: #0a0a0a;
  --dark-card: #111;
}

/* ---------- Global ---------- */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(255,179,0,0.15), transparent),
              radial-gradient(circle at 80% 30%, rgba(0,114,206,0.15), transparent),
              var(--dark-bg);
  color: var(--sky-white);
  line-height: 1.6;
}

main {
  padding-bottom: 3rem;
}

h1, h2, h3 {
  margin-top: 0;
}

/* ---------------------------------------------------------
   HEADER MIT HERO-BILD LINKS
--------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 175px; /* feste Höhe */
  max-height: 175px;
  min-height: 175px;
  overflow: hidden; /* verhindert Überlauf */
  background: var(--capri-blue-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* Bild links im Header */
.header-image {
  width: 262px;          /* feste Breite */
  height: 100%;          /* passt sich der Header-Höhe an */
  background: url("/assets/img/CapriSun Racing Hero - Kopie.png") no-repeat left center;
  background-size: contain;  /* Bild proportional skalieren */
  background-repeat: no-repeat;
  border-right: 3px solid var(--sun-orange);
}


/* Navigation rechts */
.nav {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav .logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--sky-white);
}

.nav .logo span {
  color: var(--sun-yellow);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav ul li a {
  color: var(--sky-white);
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}

.nav ul li a:hover {
  opacity: 0.7;
}

/* Mobile Header */
@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
  }

  .header-image {
    width: 100%;
    height: 180px;
    border-right: none;
    border-bottom: 3px solid var(--sun-orange);
  }

  .nav {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
}

/* ---------------------------------------------------------
   HERO-BEREICH (SEITENINHALT)
--------------------------------------------------------- */

.content a {
    color: var(--sun-yellow);
    font-weight: bold;
}

.hero {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--sun-yellow),
    var(--sun-orange),
    var(--capri-blue)
  );
  color: #111;
  border-bottom: 6px solid var(--capri-blue-dark);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  text-shadow: 0 3px 6px rgba(255,255,255,0.4);
}

.content h2 {
    margin-top: 2.2rem;
    color: var(--sun-orange);
}
.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1rem auto 2rem;
  font-weight: 500;
}

.contact-box {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-left: 4px solid var(--sun-orange);
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.contact-box a {
    color: var(--sun-yellow);
    font-weight: bold;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn-primary,
.btn-outline {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sun-orange), var(--sun-orange-dark));
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.btn-outline {
  border: 2px solid var(--sun-orange);
  color: var(--sun-orange);
  background: transparent;
}

.btn-outline:hover {
  background: var(--sun-orange);
  color: #111;
}

/* ---------------------------------------------------------
   GRID LAYOUTS
--------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.card {
  background: var(--sky-white);
  color: #111;
  padding: 1.8rem;
  border-radius: 18px;
  border: 3px solid var(--capri-blue);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform .15s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
}

/* ---------------------------------------------------------
   PAGE HEADER
--------------------------------------------------------- */

.page-header {
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   CONTENT
--------------------------------------------------------- */

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.content h2 {
  color: var(--sun-yellow);
  margin-top: 2rem;
}

.content ul {
  padding-left: 1.2rem;
}

.content li {
  margin-bottom: 0.4rem;
}

/* ---------------------------------------------------------
   CTA
--------------------------------------------------------- */

.cta {
  text-align: center;
  padding: 3rem 2rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

footer {
  background: var(--capri-blue-dark);
  color: var(--sky-white);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
}
