/* Minimal CSS for Max Hädicke IT - Lightweight and Timeless Design */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem 0;
}

a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #34495e;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
  z-index: 1000;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.navbar-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 3px solid #f8f9fa;
}

/* Portfolio Section */
.portfolio-section {
  background: #f8f9fa;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  text-align: center;
  color: white;
  padding: 1rem;
}

.portfolio-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: white;
}

.portfolio-content p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar-nav a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }
  
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    gap: 0.5rem;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .navbar-nav li {
    margin: 0;
    text-align: center;
  }
  
  .navbar-nav a {
    padding: 0.75rem;
    display: block;
    border-bottom: 1px solid #eee;
  }
  
  /* Fix footer on mobile */
  .footer .container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }
  
  .footer-links li {
    margin: 0;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Hero Section */
.masthead {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(52, 73, 94, 0.7)), url('/images/header-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 8rem 0 6rem 0;
  margin-top: 4rem;
  text-align: center;
  color: white;
}

.masthead h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.masthead .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #2c3e50;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: white;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    min-width: 200px;
  }
}

/* Services Section */
.services {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.service-item {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #2c3e50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: white;
  font-size: 2rem;
}

.service-item h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-item p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: white;
  font-weight: 500;
}

.footer-links a:hover {
  color: #bdc3c7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Utilities */
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.py-4 { padding: 2rem 0; }

/* Legal Pages Styling */
.legal-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.7;
}

.legal-page h1 {
  color: #2c3e50;
  margin-bottom: 2rem;
  border-bottom: 3px solid #2c3e50;
  padding-bottom: 0.5rem;
}

.legal-page h2 {
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  margin-bottom: 1rem;
  color: #333;
}

.legal-page ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: #2c3e50;
  transition: color 0.3s ease;
}

.legal-page a:hover {
  color: #34495e;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #2c3e50;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: #f8f9fa;
  border-color: #2c3e50;
  color: #2c3e50;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .masthead h1 {
    font-size: 2.5rem;
  }
  
  .masthead .subtitle {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .masthead {
    padding: 6rem 0 4rem 0;
  }
  
  .masthead h1 {
    font-size: 2rem;
  }
  
  .service-item {
    padding: 1.5rem;
  }
}

/* Simple Icons (replacing FontAwesome) */
.service-icon {
  position: relative;
}

.icon-code::before {
  content: '💻';
  font-size: 2rem;
  display: block;
}

.icon-laptop::before {
  content: '⚙️';
  font-size: 2rem;
  display: block;
}

.icon-shield::before {
  content: '🔒';
  font-size: 2rem;
  display: block;
}

/* Content Pages Styling */
.content-page {
  max-width: 800px;
  margin: 6rem auto 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  line-height: 1.7;
}

.content-page h1 {
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #2c3e50;
  font-size: 2.5rem;
}

.content-page h2 {
  color: #2c3e50;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.content-page h3 {
  color: #34495e;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.content-page p {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.1rem;
}

.content-page a {
  color: #2c3e50;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-page a:hover {
  color: #34495e;
  text-decoration: underline;
}

.content-page ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.content-page li {
  margin-bottom: 0.75rem;
}

.content-page img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.content-page img:hover {
  transform: scale(1.02);
}

.content-page hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, #2c3e50, transparent);
  margin: 3rem 0;
}

.content-page blockquote {
  border-left: 4px solid #2c3e50;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 768px) {
  .content-page {
    margin: 5rem 1rem 2rem 1rem;
    padding: 1.5rem;
  }
  
  .content-page h1 {
    font-size: 2rem;
  }
  
  .content-page img {
    margin: 1.5rem 0;
  }
}