/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
}

/* Disable scrolling on homepage */
html.homepage,
body.homepage {
  overflow: hidden;
  height: 100%;
}

/* Homepage Specific Styles */
body.homepage {
  min-height: 100vh;
  background-image: url("mike-hindle-4PHsxHspavg-unsplash.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #ffffff;
  position: relative;
}

/* Dunkler Overlay für bessere Lesbarkeit */
body.homepage::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

/* Standard Page Styles */
body:not(.homepage) {
  background: #ffffff;
  color: #222;
}

/* Logo */
.logo {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 10;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* Navbar */
.navbar {
  width: 100%;
  height: 70px;
  background-color: #222;
  display: flex;
  align-items: center;
  padding: 0 30px;
}

.navbar img {
  height: 40px;
}

/* Zentrierter Content (Homepage) */
.center-content {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: 4em;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 10px 0 20px;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

body:not(.homepage) h1 {
  font-size: 2.2rem;
  margin-bottom: 30px;
}

h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 15px;
}

p {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Links */
a {
  color: white;
  text-decoration: none;
}

body:not(.homepage) a {
  color: #000000;
}

a:hover,
a:focus {
  color: white;
  text-decoration: none;
}

body:not(.homepage) a:hover,
body:not(.homepage) a:focus {
  color: #000000;
  text-decoration: underline;
}

/* Homepage Address */
.address {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-top: 20px;
}

/* Impressum Links (Homepage) */
.impressum {
  margin-top: 30px;
  font-size: 0.9rem;
}

.impressum a {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: none;
}

.impressum a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Content (Standard Pages) */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 30px;
}

/* Footer */
footer {
  border-top: 1px solid #e5e5e5;
  padding: 20px 30px;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Text Center Utility */
.text-center {
  text-align: center;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .subtitle {
    font-size: 2em;
  }

  .logo img {
    height: 40px;
  }

  main {
    padding: 40px 20px;
  }

  body:not(.homepage) h1 {
    font-size: 1.8rem;
  }
}

