/* General / Base Styles */
:root {
  --bg-color: #1D1D36;
  --text-color: #F0EDF4;
  --accent-orange: #EB6110;
  --accent-yellow: #F59D1D;
  --accent-light-yellow: #FACD72;
  --accent-purple: #38306D;
  --accent-purple-hover: #312963;
  --accent-purple-active: #3F3773;
  --accent-light-purple: #BB9BC8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
}

h2 {
  font-family: 'Lobster', cursive;
}

a {
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-light-yellow);
}

/* ==========================================
   Homepage Styles (Index.htm.html)
   ========================================== */
body.home-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px 20px 70px 20px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  max-width: 1320px;
  width: 100%;
  gap: 60px;
}

.left-image {
  width: 48%;
  max-width: 580px;
  height: auto;
  flex-shrink: 0;
}

.right-content {
  flex: 1;
  max-width: 650px;
}

.right-image {
  max-width: 420px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  font-size: 25px;
}

.header h2 {
  font-family: 'Lobster', cursive;
  font-size: 36px;
  margin: 0;
  font-weight: normal;
}

.Suchst {
  margin: 0;
}

.word-changing-header {
  margin: 0;
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.word-changing-header.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

.text-container {
  width: 100%;
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.65;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  text-align: justify;
}

.form-container p {
  margin: 12px 0;
}

.name-inputs {
  display: flex;
  gap: 12px;
  width: 100%;
}

.name-inputs input[type="text"] {
  width: calc(50% - 6px);
}

input[type="text"],
input[type="email"] {
  font-size: 16px;
  padding: 12px 18px;
  color: var(--bg-color);
  font-family: 'Montserrat', sans-serif;
  border-radius: 7px;
  border: none;
  background-color: var(--text-color);
  width: 100%;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(245, 157, 29, 0.4);
}

.form-container p:has(.Datenschutz) {
  margin-top: 16px;
  margin-bottom: 20px;
}

button {
  color: var(--text-color);
  background-color: var(--accent-purple);
  padding: 12px 28px;
  border: none;
  border-radius: 7px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  transition: background-color 0.2s, transform 0.1s;
}

button:hover {
  background-color: var(--accent-purple-hover);
}

button:active {
  background-color: var(--accent-purple-active);
  transform: translateY(1px);
}

.Datenschutz {
  font-size: 15px;
  cursor: pointer;
}

#msg {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--accent-yellow);
  margin-top: 15px;
  display: block;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--accent-orange);
  color: var(--accent-light-yellow);
  text-align: center;
  padding: 20px;
}

/* ==========================================
   Impressum Page Styles (Impressum.html)
   ========================================== */
body.impressum-page {
  padding: 60px 24px 100px 24px;
  max-width: 820px;
  margin: 0 auto;
  color: #F0EDF4;
}

.back-link-container {
  margin-bottom: 40px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-light-yellow);
  transition: opacity 0.2s, transform 0.2s;
}

.back-link:hover {
  opacity: 0.8;
  transform: translateX(-3px);
}

.impressum-page .logo {
  display: block;
  margin: 0 auto 50px auto;
  width: 45%;
  min-width: 260px;
  max-width: 380px;
  height: auto;
}

.impressum-page h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #FFFFFF;
  margin-top: 40px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(235, 97, 16, 0.6);
  padding-bottom: 12px;
}

.impressum-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
  margin: 36px 0 16px 0;
}

.impressum-page h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: rgba(240, 237, 244, 0.9);
  margin-top: 24px;
  margin-bottom: 12px;
}

.impressum-page p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 15px;
  margin: 12px 0;
  color: rgba(240, 237, 244, 0.78);
  text-align: left;
  line-height: 1.75;
}

.impressum-page .impressum-me p {
  margin: 4px 0;
  font-weight: 400;
  color: #F0EDF4;
}

.impressum-page hr {
  margin: 48px 0;
  border: none;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}
