/* ============================================
   HARTMANN METALLBAU - Custom Styles
   Ergänzung zu Tailwind CSS
   ============================================ */

/* CSS Custom Properties (Design Tokens) */
:root {
  /* Kundenfarben */
  --color-primary: #1e3a5f;
  --color-primary-dark: #152a45;
  --color-primary-light: #2a4d7a;
  --color-accent: #e65100;
  --color-accent-dark: #bf4400;
  --color-accent-light: #ff6d1a;
  
  /* Neutrale Farben (Agency Standard) */
  --color-neutral-50: #fafafa;
  --color-neutral-100: #f5f5f5;
  --color-neutral-200: #e5e5e5;
  --color-neutral-300: #d4d4d4;
  --color-neutral-400: #a3a3a3;
  --color-neutral-500: #737373;
  --color-neutral-600: #525252;
  --color-neutral-700: #404040;
  --color-neutral-800: #262626;
  --color-neutral-900: #171717;
  
  /* Semantische Farben */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Typografie */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing (Agency Signature - großzügig) */
  --section-padding-y: clamp(3rem, 8vw, 6rem);
  --section-padding-x: clamp(1rem, 4vw, 2rem);
  --container-max: 1280px;
  
  /* Schatten (Agency Signature - subtil) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-default: 0 2px 4px 0 rgba(0, 0, 0, 0.03), 0 4px 12px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 20px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 4px 14px 0 rgba(30, 58, 95, 0.3);
  
  /* Animationen (Agency Standard - max 300ms) */
  --transition-default: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --hover-lift: translateY(-4px);
  --hover-lift-sm: translateY(-2px);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-default: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Navigation */
  --nav-height-mobile: 64px;
  --nav-height-desktop: 80px;
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-neutral-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

/* Section Spacing */
.section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-neutral-900);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--color-neutral-600);
}

/* ============================================
   BUTTONS (Agency Signature)
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-default);
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  min-height: 48px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-default);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: var(--hover-lift-sm);
  box-shadow: var(--shadow-button);
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-default);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  transform: var(--hover-lift-sm);
  box-shadow: 0 4px 14px 0 rgba(230, 81, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-white {
  background-color: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-default);
}

.btn-white:hover {
  transform: var(--hover-lift-sm);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height-mobile);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-neutral-200);
  z-index: 100;
}

@media (min-width: 1024px) {
  .nav {
    height: var(--nav-height-desktop);
  }
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

@media (min-width: 1024px) {
  .nav-logo img {
    height: 48px;
  }
}

.nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-neutral-700);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-default);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-neutral-100);
}

.nav-link.active {
  color: var(--color-primary);
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: block;
  }
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-neutral-800);
  transition: var(--transition-fast);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height-mobile);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  padding: 1.5rem;
  z-index: 99;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile-link {
  display: block;
  padding: 1rem 0;
  color: var(--color-neutral-800);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-neutral-200);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height-mobile) + 2rem);
  background-color: var(--color-neutral-100);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
    padding-top: calc(var(--nav-height-desktop) + 3rem);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--color-neutral-900);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--color-neutral-600);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  color: var(--color-neutral-700);
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* ============================================
   TRUST BAR
   ============================================ */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem;
  background-color: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  font-weight: 500;
}

.trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-success);
  flex-shrink: 0;
}

.trust-item-icon {
  font-size: 1.25rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-default);
  transition: var(--transition-default);
}

.card:hover {
  transform: var(--hover-lift);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-neutral-900);
}

.card-text {
  color: var(--color-neutral-600);
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.card-link:hover {
  gap: 0.75rem;
  color: var(--color-accent);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: rgba(30, 58, 95, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-neutral-600);
  font-size: 1.125rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-neutral-900);
  color: var(--color-neutral-300);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--color-neutral-400);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item a {
  color: var(--color-neutral-300);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-neutral-800);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--color-neutral-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal a:hover {
  color: white;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-neutral-700);
}

.form-label .required {
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-primary);
  color: var(--color-neutral-800);
  background-color: white;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-default);
  transition: var(--transition-fast);
  min-height: 48px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-file {
  padding: 1rem;
  border: 2px dashed var(--color-neutral-300);
  border-radius: var(--radius-default);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.form-file:hover {
  border-color: var(--color-primary);
  background-color: var(--color-neutral-50);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-neutral-500); }

.bg-light { background-color: var(--color-neutral-100); }
.bg-dark { background-color: var(--color-neutral-900); }
.bg-primary { background-color: var(--color-primary); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll Margin für Anker-Links */
[id] {
  scroll-margin-top: calc(var(--nav-height-mobile) + 1rem);
}

@media (min-width: 1024px) {
  [id] {
    scroll-margin-top: calc(var(--nav-height-desktop) + 1rem);
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
