/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-display: swap;
  font-family: "M PLUS Rounded 1c";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/m-plus-rounded-1c-v22-latin-regular.woff2") format("woff2");
}

body {
  font-family: "M PLUS Rounded 1c", Arial, sans-serif;
  margin: 0 auto;
  padding: 0;
  line-height: 1.6;
  max-width: 1024px;
  background-color: rgb(242, 237, 229);
}

/* Navbar */
.topnav {
  display: flex;
  justify-content: center;
  background-color: rgb(190, 0, 13);
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 0 0 8px 8px;
}

.topnav a {
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: background-color 0.2s ease;
}

.topnav a:hover {
  background-color: rgb(160, 0, 10);
}

/* #home {
  display: none;
} */

#easter {
  display: none;
}

#christmas {
  display: none;
}

/* Page Header */
header {
  text-align: center;
  margin: 28px 16px 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: rgb(40, 10, 10);
  letter-spacing: 0.02em;
}

header::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: rgb(190, 0, 13);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Main Content */
.main {
  min-height: 100vh;
  flex: 1;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 20px;
}

h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  background-color: rgb(190, 0, 13);
  padding: 7px 14px;
  border-radius: 8px;
}

.wrapper {
  padding: 20px;
}

p {
  padding: 20px;
}

#contact-description {
  align-items: center;
  text-align: center;
}

.aboutimg {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.link-source {
  font-size: 0.68rem;
  font-weight: 400;
  color: rgb(136, 136, 136);
  padding: 20px;
}

a[href^="mailto:"] {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

a[href^="mailto:"]:hover {
  text-decoration: underline;
  color: rgb(190, 0, 13);
}

a[href^="mailto:"]:visited {
  color: rgb(0, 0, 0);
  cursor: pointer;
}

.link-source a:link {
  color: rgb(136, 136, 136);
  text-decoration: none;
  cursor: pointer;
}

.link-source a:hover {
  text-decoration: underline;
}

.link-source a:visited {
  color: rgb(136, 136, 136);
  cursor: pointer;
}

.contactform {
  display: block;
  margin: 0 auto;
  padding: 0 1em;
  width: 90%;
  border: 1px solid darkgray;
  border-radius: 8px;
  background-color: rgb(242, 237, 229);
}

.form-row {
  display: block;
  margin: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
}

.contactform input[type="text"],
.contactform input[type="email"],
.contactform textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.contactform input:focus,
.contactform textarea:focus {
  border: 1px solid orange;
}

#senden {
  background-color: rgb(190, 0, 13);
  color: white;
  padding: 8px;
  margin-left: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
}

#senden:hover {
  background-color: rgb(160, 0, 10);
}

#senden:disabled {
  opacity: 0.6;
  cursor: wait;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  bottom: 0;
  gap: 40px;
  padding: 12px 16px;
  background-color: rgb(190, 0, 13);
  border-radius: 8px 8px 0 0;
}

.footer a,
.footer span {
  color: white;
  text-decoration: none;
  font-size: 10px;
}

.field-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  display: flex;
  margin: 20px;
  gap: 0.6rem;
}

.checkbox input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
}

.checkbox label {
  margin: 0;
  font-weight: 400;
  font-size: 0.95rem;
}

.checkbox .fehler {
  flex-wrap: wrap;
  flex-basis: 100%;
}

/* Fehlerzustand */
.form-row.hat-fehler input,
.form-row.hat-fehler textarea {
  border-color: rgb(255, 0, 0);
}

.fehler {
  position: static;
  padding: 0;
  font-size: 0.9rem;
  color: rgb(255, 0, 0);
  overflow: hidden;
}

/* feedback */
.status {
  margin: 1rem 0 0;
  font-weight: 600;
}
.status.erfolg {
  color: rgb(0, 128, 0);
}
.status.fehler-status {
  color: rgb(255, 0, 0);
}
