/* Light & Fire – Global Styles
   Dark mode default with logo accent colors, optional light mode via .theme-light on <body>.
*/

:root {
  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Color palette (dark theme default) */
  --color-bg: #050609;
  --color-bg-elevated: #10131a;
  --color-bg-soft: #181c24;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --color-text: #f7f7f8;
  --color-text-muted: #b0b3c1;

  /* Accent derived from existing logo/accent (#ff5a00) */
  --color-accent: #ff5a00;
  --color-accent-soft: rgba(255, 90, 0, 0.16);
  --color-accent-strong: #ff7a33;

  /* Semantic colors */
  --color-success: #2ecc71;
  --color-danger: #e74c3c;

  /* Shadows & radii */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Layout */
  --page-max-width: 1120px;
  --page-padding-x: 20px;
  --page-padding-y: 24px;
}

/* Light theme overrides – activated via body.theme-light */
body.theme-light {
  --color-bg: #f5f7fa;
  --color-bg-elevated: #ffffff;
  --color-bg-soft: #f0f2f5;
  --color-border-subtle: rgba(0, 0, 0, 0.1);
  --color-border-strong: rgba(0, 0, 0, 0.2);

  --color-text: #1a1a1a;
  --color-text-muted: #4a5568;

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Reset-ish base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: radial-gradient(circle at top left, #121826 0, #050609 55%);
}

body.theme-light {
  background: linear-gradient(to bottom, #f8f9fa 0%, #f5f7fa 100%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image galleries and content images */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.content-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
}

.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  object-position: bottom;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  box-shadow: var(--shadow-soft);
}

body.theme-light .content-image,
body.theme-light .hero-image {
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.25);
}

@media (min-width: 768px) {
  .hero-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
  }
  
  .hero-image {
    max-height: 500px;
  }
}

a {
  color: var(--color-accent-strong);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

body.theme-light a {
  color: #d9460f;
}

body.theme-light a:hover,
body.theme-light a:focus-visible {
  color: var(--color-accent);
}

main a.button,
a.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.65rem 1.3rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

main a.button:hover,
a.button:hover,
button.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, var(--color-accent-strong), var(--color-accent));
}

main a.button:active,
a.button:active,
button.button:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

body.theme-light main a.button,
body.theme-light a.button,
body.theme-light button.button {
  color: #000000;
  background: linear-gradient(135deg, #ffb366, #ff8c42);
  box-shadow: 0 8px 22px rgba(255, 90, 0, 0.3);
}

body.theme-light main a.button:hover,
body.theme-light a.button:hover,
body.theme-light button.button:hover {
  background: linear-gradient(135deg, #ff8c42, #ff7a33);
  box-shadow: 0 14px 30px rgba(255, 90, 0, 0.4);
}

button,
input,
textarea {
  font-family: inherit;
  font-size: 1rem;
}

button {
  border: none;
}

body:focus-within {
  scroll-behavior: smooth;
}

/* Layout wrappers */
header.page-header,
main.page-main,
footer.page-footer {
  max-width: var(--page-max-width);
  padding: var(--page-padding-y) var(--page-padding-x);
  margin: 0 auto;
}

header.page-header {
  padding-top: 20px;
}

/* Top navigation */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.brand:hover,
.brand:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
}

.brand-logo-img {
  max-height: 280px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: box-shadow 150ms ease;
}

body.theme-light .brand-logo-img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.brand:hover .brand-logo-img,
.brand:focus-visible .brand-logo-img {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
}

@media (max-width: 720px) {
  .brand-logo-img {
    max-height: 220px;
  }
}

nav[aria-label="Hauptnavigation"] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--color-bg-soft);
  border-color: var(--color-border-subtle);
  color: var(--color-text);
}

.nav-link.is-active {
  background: rgba(255, 90, 0, 0.12);
  border-color: rgba(255, 90, 0, 0.35);
  color: #fff;
}

body.theme-light .nav-link.is-active {
  background: rgba(255, 90, 0, 0.15);
  border-color: rgba(255, 90, 0, 0.4);
  color: var(--color-text);
  font-weight: 600;
}

/* Theme toggle */
.theme-toggle {
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border-subtle);
  background: radial-gradient(circle at 10% 0%, #202838 0, #0c1018 70%);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease,
    box-shadow 150ms ease;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, #ffb347, #ff5a00, #ffedcc, #ffb347);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: radial-gradient(circle at 10% 0%, #2a3246 0, #101521 70%);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  transform: translateY(-0.5px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
}

body.theme-light .theme-toggle {
  background: linear-gradient(135deg, #e5ecff, #ffffff);
  color: #111827;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.35);
}

body.theme-light .theme-toggle-icon {
  background: radial-gradient(circle at 20% 0%, #ffffff 0, #ffdd80 45%, #ff9a3c 100%);
}

/* Hero & intro sections */
.hero {
  margin-top: 1.5rem;
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(255, 90, 0, 0.3) 0, rgba(5, 6, 9, 0.8) 40%, rgba(5, 6, 9, 0.98) 75%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.9rem;
}

body.theme-light .hero {
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.08) 0%, rgba(255, 90, 0, 0.03) 50%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .hero-title {
  color: var(--color-text);
}

body.theme-light .hero-lead {
  color: var(--color-text-muted);
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-lead {
  color: var(--color-text-muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-note {
  font-size: 1rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  margin: 0;
}

.hero-note .phone-link {
  margin-left: 0.5rem;
}

/* Generic sections */
section {
  margin-top: 2rem;
}

section:first-of-type {
  margin-top: 1.5rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

ul,
ol {
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

li + li {
  margin-top: 0.25rem;
}

.text-muted {
  color: var(--color-text-muted);
}

/* Cards & grids */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
}

.card {
  background: linear-gradient(145deg, rgba(24, 28, 36, 0.98), rgba(8, 10, 18, 0.98));
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p:last-child {
  margin-bottom: 0;
}

body.theme-light .card {
  background: var(--color-bg-elevated);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.3);
}

/* Partner cards */
.partner-card {
  background: linear-gradient(145deg, rgba(24, 28, 36, 0.98), rgba(8, 10, 18, 0.98));
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

body.theme-light .partner-card {
  background: var(--color-bg-elevated);
  box-shadow: 0 14px 28px rgba(148, 163, 184, 0.3);
}

body.theme-light .partner-card:hover {
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.4);
}

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-text);
  width: 100%;
  height: 100%;
}

.partner-link:hover,
.partner-link:focus-visible {
  text-decoration: none;
}

.partner-logo {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: brightness(0.95);
  transition: filter 150ms ease, transform 150ms ease;
}

.partner-card:hover .partner-logo {
  filter: brightness(1.1);
  transform: scale(1.05);
}

body.theme-light .partner-logo {
  filter: brightness(0.85);
}

body.theme-light .partner-card:hover .partner-logo {
  filter: brightness(1);
}

/* Münchner Gschichten Logo: Schwarzes Rechteck im Light Mode */
.mg-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.mg-logo-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 140px;
  background-color: #000000;
  border-radius: var(--radius-sm);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.mg-logo-wrapper .partner-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  width: 200px;
  height: 120px;
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.partner-card:hover .mg-logo-wrapper .partner-logo {
  filter: brightness(1.1);
  transform: scale(1.05);
}

body.theme-light .mg-logo-wrapper .partner-logo {
  filter: brightness(0.85);
}

body.theme-light .partner-card:hover .mg-logo-wrapper .partner-logo {
  filter: brightness(1);
}

body.theme-light .mg-logo-background {
  opacity: 1;
}

/* CM-Event Logo: Weißes Rechteck im Dark Mode */
.cme-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.cme-logo-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 100px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.cme-logo-wrapper .partner-logo {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  width: 200px;
  height: 120px;
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

.partner-card:hover .cme-logo-wrapper .partner-logo {
  filter: brightness(1.1);
  transform: scale(1.05);
}

body.theme-light .cme-logo-wrapper .partner-logo {
  filter: brightness(0.85);
}

body.theme-light .partner-card:hover .cme-logo-wrapper .partner-logo {
  filter: brightness(1);
}

body.theme-light .cme-logo-background {
  opacity: 0;
}

.partner-link h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Social Media Section */
.social-media-section {
  max-width: var(--page-max-width);
  padding: var(--page-padding-y) var(--page-padding-x);
  margin: 0 auto;
  margin-top: 2rem;
}

.social-media-section .card {
  display: flex;
  flex-direction: column;
}

.social-media-section .card .button {
  align-self: center;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--color-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-light .pill {
  background: rgba(255, 90, 0, 0.1);
  color: var(--color-text);
}

/* Project / legal boxes */
.boxed {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

body.theme-light .boxed {
  background: var(--color-bg-elevated);
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.25);
}

/* Reference badges */
.ref-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ref-badge {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all 150ms ease;
  white-space: nowrap;
}

.ref-badge:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.theme-light .ref-badge {
  background: rgba(255, 90, 0, 0.08);
  border-color: rgba(255, 90, 0, 0.15);
  color: var(--color-text);
}

body.theme-light .ref-badge:hover {
  background: rgba(255, 90, 0, 0.15);
  border-color: rgba(255, 90, 0, 0.25);
  box-shadow: 0 2px 8px rgba(255, 90, 0, 0.15);
}

/* FAQ / QA blocks */
.qa {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.qa h1,
.qa h2 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* Lists on equipment page */
.list-elevated {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

/* Referenzen */
.quote {
  font-style: italic;
  border-left: 3px solid var(--color-accent);
  padding-left: 0.9rem;
  margin: 0 0 1rem;
}

.quote strong {
  color: var(--color-text);
}

body.theme-light .quote {
  color: var(--color-text);
  border-left-color: var(--color-accent);
}

/* Kontaktformular */
.contact {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-bg-soft);
  color: var(--color-text);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--color-accent-strong);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.5), 0 0 0 5px rgba(255, 90, 0, 0.12);
  background: var(--color-bg-elevated);
}

body.theme-light input[type="text"],
body.theme-light input[type="email"],
body.theme-light input[type="tel"],
body.theme-light input[type="date"],
body.theme-light textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
}

body.theme-light input:focus-visible,
body.theme-light textarea:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.3), 0 0 0 4px rgba(255, 90, 0, 0.1);
}

/* Footer */
.page-footer {
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 3rem;
  padding-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav[aria-label="Hauptnavigation"] {
    width: 100%;
    justify-content: space-between;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .hero {
    padding: 1.2rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  main.page-main {
    padding-top: 12px;
  }
}

@media (max-width: 480px) {
  .nav-link {
    padding-inline: 0.7rem;
  }

  .page-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


