/*
 * Core style sheet for the M1 website.
 * Colours and layout draw inspiration from the provided M1 presentation: a dark
 * background with striking blue, burgundy and gold accents. The layout is
 * responsive and accessible, utilising semantic HTML and clear visual
 * hierarchy.  See index.html for the markup.
 */

/* CSS variables for easy theming */
:root {
  --dark-bg: #010d21;      /* midnight blue background */
  --navy: #0a3a5c;         /* primary blue accent */
  --burgundy: #8e133c;     /* primary red accent */
  --gold: #dda32a;         /* golden accent */
  --light-text: #a8b4c2;   /* secondary text colour */
  --white: #ffffff;        /* primary text colour */
  --button-bg: #013a65;    /* default button background */
  --button-hover: #0f5487; /* button hover state */
  --border-radius: 8px;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--dark-bg);
  color: var(--light-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  color: var(--white);
  margin-top: 0;
}

p {
  margin: 0 0 1em;
  color: var(--light-text);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top colour bar */
.top-bar {
  display: flex;
  height: 8px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.top-bar .segment {
  flex: 1;
}
.top-bar .blue { background-color: var(--navy); }
.top-bar .red { background-color: var(--burgundy); }
.top-bar .gold { background-color: var(--gold); }
/* Brand inside nav will be styled separately; no brand on the colour bar */

/* Navigation bar */
/* Navigation bar now contains a brand on the left and links on the right */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 8px;
  z-index: 900;
  background: rgba(1, 13, 33, 0.8);
  backdrop-filter: blur(6px);
}
.navbar .brand {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.navbar .nav-links {
  display: flex;
  /* Allow wrapping when many nav items so they don't overflow on smaller screens */
  flex-wrap: wrap;
  gap: 1.5rem;
}
.navbar .nav-links a {
  color: var(--light-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.navbar .nav-links a:hover {
  color: var(--white);
}

/* Highlight active link */
.navbar .nav-links a.active {
  color: var(--gold);
  font-weight: 600;
}

/* Logo image inside brand */
.navbar .brand .logo-img {
  height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Stack overview for portfolio */
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stack-item {
  flex: 1 1 250px;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: rgba(255, 255, 255, 0.05);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.stack-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--gold);
}
.stack-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--light-text);
}

/* Service sections used in portfolio */
.service-section {
  padding: 4rem 10%;
}
.service-section.alt-bg {
  background-color: #021a37;
}
.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-header h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
}
.service-icon {
  font-size: 1.8rem;
  padding: 0.6rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}
.service-icon.blue { color: var(--navy); }
.service-icon.red  { color: var(--burgundy); }
.service-icon.gold { color: var(--gold); }
.service-list {
  list-style: none;
  padding-left: 1.5rem;
  margin: 0;
  line-height: 1.6;
}
.service-list li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 0.5rem;
}
.service-list li::before {
  content: '\2022';
  position: absolute;
  left: -1rem;
  top: 0;
  color: var(--gold);
}

/* Call to action section */
.cta-section {
  text-align: center;
  padding: 4rem 10%;
  background-color: rgba(1, 13, 33, 0.8);
  border-radius: var(--border-radius);
  margin: 4rem 10% 2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.cta-section p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--light-text);
}

/* Flagship page sections */
.flagship-section {
  padding: 4rem 10%;
}
.flagship-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--gold);
  text-align: center;
}
.two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.two-col .col {
  flex: 1 1 300px;
}
.two-col h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.two-col ul {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
  line-height: 1.6;
}
.two-col li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 0.6rem;
  color: var(--light-text);
}
.two-col li::before {
  content: '\2022';
  position: absolute;
  left: -0.6rem;
  color: var(--gold);
}

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.variant-card {
  flex: 1 1 260px;
  background-color: rgba(255,255,255,0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.variant-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.variant-card p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--light-text);
}

.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.metric {
  flex: 1 1 200px;
  text-align: center;
  background-color: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.metric h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.metric p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-text);
}

.economics-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3rem;
  border-collapse: collapse;
}
.economics-table .row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.economics-table .row.header {
  background-color: rgba(255,255,255,0.08);
  font-weight: 600;
}
.economics-table .row div {
  flex: 1;
  font-size: 0.9rem;
  color: var(--light-text);
}
.economics-table .row div:first-child {
  font-weight: 500;
  color: var(--white);
}

.steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.step {
  flex: 1 1 250px;
  background-color: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Smaller CTA inside flagship page */
.cta-section.small {
  margin: 2rem auto;
  max-width: 600px;
}
.cta-section.small h2 {
  font-size: 1.6rem;
}
.cta-section.small p {
  font-size: 0.95rem;
}

/* Alpine PV page sections */
.alpine-section {
  padding: 4rem 10%;
}
.alpine-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--gold);
}

/* Facts grid for Alpine PV */
.facts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.fact-card {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: var(--light-text);
}
.fact-card i {
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.fact-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.fact-card p {
  font-size: 0.9rem;
  margin: 0;
}

/* Pre‑design list */
.pre-design-section .pre-design-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.pre-design-item {
  flex: 1 1 260px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.pre-design-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}
.pre-design-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--light-text);
}

/* Reasons grid */
.reasons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
.reason-item {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.reason-item h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--white);
}
.reason-item p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--light-text);
}

/* Alpine contact CTA */
.alpine-contact {
  text-align: center;
  padding: 4rem 10%;
  background-color: rgba(1, 13, 33, 0.8);
  border-radius: var(--border-radius);
  margin: 4rem 10% 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}
.alpine-contact h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.alpine-contact p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  color: var(--light-text);
}

/* Responsive adjustments for Alpine sections */
@media (max-width: 992px) {
  .facts-grid, .pre-design-section .pre-design-list, .reasons-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .fact-card, .pre-design-item, .reason-item {
    flex: 1 1 100%;
  }
  .alpine-contact {
    margin: 3rem 5%;
    padding: 3rem 5%;
  }
}


/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 10%;
  min-height: 90vh;
  box-sizing: border-box;
  margin-top: 8px; /* offset for fixed top bar */
}
.hero-content {
  flex: 1 1 50%;
  max-width: 600px;
  padding-right: 2rem;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.3rem;
}
.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
  color: var(--gold);
}
.hero-content p {
  font-size: 1.1rem;
  max-width: 520px;
}
.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s;
  text-align: center;
}
.btn.primary {
  background-color: var(--navy);
  color: var(--white);
}
.btn.primary:hover {
  background-color: var(--button-hover);
}
.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.btn.secondary:hover {
  background-color: var(--navy);
  color: var(--white);
}

.hero-image {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.hero-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  object-fit: cover;
}

/* Contact page hero adjustments */
.contact-hero {
  min-height: 60vh;
}

/* Contact page layout */
.contact-page {
  padding: 4rem 10%;
  background-color: var(--dark-bg);
}
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.contact-info, .contact-form {
  flex: 1 1 300px;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: rgba(1, 13, 33, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Neues Portrait‑Element in der Kontaktseite */
.contact-photo {
  flex: 1 1 300px;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: rgba(1, 13, 33, 0.8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-photo img {
  max-width: 250px;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.contact-info h2, .contact-form h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  line-height: 1.8;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--light-text);
}
.contact-info i {
  color: var(--navy);
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact-form input,
.contact-form textarea {
  flex: 1 1 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #021a37;
  color: var(--white);
  font-size: 0.9rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--light-text);
}
.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  background-color: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}
.contact-form button:hover {
  background-color: var(--button-hover);
}
.form-hint {
  font-size: 0.75rem;
  color: var(--light-text);
  margin-top: -0.5rem;
}

@media (max-width: 992px) {
  .contact-wrapper {
    flex-direction: column;
  }
  .contact-info, .contact-form {
    margin-bottom: 2rem;
  }
  .form-row {
    flex-direction: column;
  }
}

/* Section headers */
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--white);
}

/* Values section */
.values {
  padding: 5rem 10%;
  background-color: var(--dark-bg);
}
.values-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.value-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.value-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  color: var(--white);
}
.value-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  margin-top: 0.35rem;
}
.blue-circle { background-color: var(--navy); }
.red-circle { background-color: var(--burgundy); }
.gold-circle { background-color: var(--gold); }

/* About section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5rem 10%;
  gap: 3rem;
}
.about-image {
  flex: 1 1 45%;
}
.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  object-fit: cover;
}
.about-content {
  flex: 1 1 45%;
  max-width: 600px;
}
.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--gold);
}
.about-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.track-record {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.track-record li {
  font-size: 1rem;
  color: var(--light-text);
}
.track-record .number {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-right: 0.5rem;
}

/* Process / timeline section */
.process {
  position: relative;
  color: var(--white);
  padding: 5rem 10%;
  background-size: cover;
  background-position: center;
}
.process .overlay {
  backdrop-filter: brightness(0.6);
  padding: 2rem;
  border-radius: var(--border-radius);
}
.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.timeline-step {
  flex: 1 1 150px;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}
.timeline-step .circle {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
}
.timeline-step .blue { background-color: var(--navy); }
.timeline-step .red  { background-color: var(--burgundy); }
.timeline-step .gold { background-color: var(--gold); }
.timeline-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--white);
}
.timeline-step p {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Horizontal line connecting timeline steps */
.timeline::before {
  content: '';
  position: absolute;
  top: 1.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255,255,255,0.2);
  z-index: -1;
}

/* Contact section */
.contact {
  padding: 5rem 10%;
  background-color: var(--dark-bg);
}
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
}
.cta, .contact-details {
  flex: 1 1 300px;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: rgba(1, 13, 33, 0.8);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.cta h2 {
  margin-bottom: 1rem;
  color: var(--gold);
}
.cta p {
  margin-bottom: 1.5rem;
}
.contact-details h3 {
  margin-bottom: 1rem;
  color: var(--gold);
}
.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--light-text);
}
.contact-details i {
  color: var(--navy);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  background-color: #000b18;
  color: var(--light-text);
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content h2 {
    font-size: 1.3rem;
  }
  .hero-image {
    flex-basis: 100%;
  }
  .values-list {
    gap: 1.5rem;
  }
  .about {
    flex-direction: column;
  }
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  .timeline::before {
    top: auto;
    left: 1rem;
    bottom: 0;
    height: calc(100% - 1.2rem);
    width: 2px;
  }
  .timeline-step {
    text-align: left;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
  }
  .timeline-step .circle {
    margin-left: -2.5rem;
  }
  .contact-inner {
    flex-direction: column;
  }
}

/* Cookie-Banner */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:none;gap:.75rem;box-shadow:0 -2px 16px rgba(0,0,0,.5);background:rgba(1,13,33,.96);color:#fff;padding:1rem 1.25rem;border-top:1px solid rgba(255,255,255,.08)}
.cookie-banner a{color:var(--gold,#dda32a);text-decoration:underline}
.cookie-text{flex:1 1 auto;line-height:1.45}
.cookie-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.cookie-btn{border:1px solid rgba(255,255,255,.25);background:transparent;color:#fff;padding:.6rem 1rem;border-radius:8px;font-weight:600;cursor:pointer}
.cookie-btn.primary{background:var(--gold,#dda32a);border-color:var(--gold,#dda32a);color:#010d21}
.cookie-btn.ghost{opacity:.85}
.cookie-btn:hover{filter:brightness(1.05)}
@media (max-width:720px){.cookie-banner{flex-direction:column;align-items:flex-start}}

