/* ==========================================================================
   iventmedia – Statisches Stylesheet
   Farben, Typografie und Layout ohne Framework
   ========================================================================== */

/* Design-Tokens */
:root {
  --color-primary: #575756;
  --color-secondary: #f6f6f6;
  --color-accent: #84b5bb;
  --color-accent-dark: #7ca5aa;
  --color-white: #fff;
  --color-black: #000;
  --color-gray-500: #737373;

  --font-display: AvenirNextWorldHeavy, serif;
  --font-body: AvenirNextWorldRegular, sans-serif;

  --max-width: 64rem;
  --spacing: 2.5rem;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
  font-family: var(--font-body);
  height: 100%;
}

body {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  height: 100%;
  line-height: 1.5;
}

.page-wrapper.is-ready {
  opacity: 1;
}

/* Typografie */
h1,
h2,
h3,
h4,
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 1.25rem;
}

h1,
.hero-title {
  font-size: 2.25rem;
  line-height: 1;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  padding-bottom: 1.25rem;
}

ul {
  list-style: disc outside;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

a,
button {
  border: none;
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

p a {
  text-decoration: underline;
  color: inherit;
}

p a:hover {
  color: var(--color-accent);
}

/* Barrierefreiheit */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: var(--spacing);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Header / Navigation */
header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100%;
}

.brand-logo {
  display: block;
  margin: 2.5rem 0;
}

.brand-logo svg {
  width: 8rem;
  height: 8rem;
}

/* Hauptinhalt */
main {
  margin: 2.5rem 0;
}

/* ==========================================================================
   Hero (Startseite)
   ========================================================================== */

.hero {
  margin: 8rem 0;
}

.hero .tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero .hero-title {
  line-height: 1.1;
  margin-bottom: 0;
}

.hero h1 {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  font-size: 0.875rem;
  line-height: 1.8;
}

.footer-inner {
  display: flex;
  flex-direction: row;
}

.footer-info {
  width: 75%;
}

.footer-legal a {
  color: var(--color-secondary);
  text-decoration: none;
  display: block;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: 2px solid var(--color-accent);
  padding: 0.5rem 1rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.btn:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================================================
   404-Seite
   ========================================================================== */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.error-content {
  text-align: center;
}

.error-content p:first-child {
  padding-bottom: 0;
}

.error-content h1 {
  margin-top: 1rem;
  font-size: 1.875rem;
}

.error-content .error-text {
  margin-top: 1.5rem;
  line-height: 1.75;
}

.error-buttons {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Animation
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 1s both;
}

.hero-title {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title:nth-child(2) {
  animation-delay: 0.15s;
}

.hero-title:nth-child(3) {
  animation-delay: 0.35s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  :root {
    --spacing: 1.5rem;
  }

  .hero {
    margin: 4rem 0;
  }

  .hero .hero-title {
    line-height: 1.15;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-info {
    width: 100%;
  }

  .error-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 641px) {
  .error-content h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero .hero-title {
    line-height: 1;
  }
}
