/* RESET CSS */
@import url(reset.css);

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
    font-family: 'WalbaumFraktur Regular';
    src: url(../fonts/walbaum-fraktur.regular.ttf) format('truetype');
}

@font-face {
    font-family: 'WalbaumFraktur Bold';
    src: url(../fonts/walbaum-fraktur.bold.ttf) format('truetype');
}

/* GLOBAL STYLES */

:root {
  --primary-color: #3a3a3a;
  --secondary-color: #f5f5f5;
  --tertiary-color: #3a3a3a;
  --accent-color1: hsl(50, 51%, 49%);
  --accent-color2: #25398e;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-optical-sizing: auto;
  font-size: 1.1em;
  background-color: var(--secondary-color);
}

h1 {
  font-family: 'WalbaumFraktur Regular', serif;
  font-size: 4.5em;
  text-align: center;
  font-weight: normal;
  color: var(--accent-color2);
}

h2 {
  font-size: 2.5em;
  margin-bottom: 1em;
  color: var(--accent-color2);

}

h3 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: var(--accent-color2);
}

h4 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
  color: var(--accent-color2);
}

p {
  margin-bottom: 0.5em;
}

a {
  text-decoration: none;
  color: var(--accent-color);
}

button {
  background-color: var(--accent-color1);
  color: var(--secondary-color);
  padding: 0.5em 1em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;  
  width: fit-content;
}

.btn-cta:hover {
  background-color: hsl(50, 51%, 39%);
}

/* MENU */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em 2em;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  font-size: 1.2rem;
  font-weight: 300;
}

nav ul li a {
  color: var(--accent-color2);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color1);
}

/* HOME */

#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 2.5em;
  padding-top: 5em;
}

.title-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-bottom: 2em;
  /* transform: rotate(-20deg); */
}

.logo svg {
  width: 200px;
  height: 200px;
  opacity: 0.75;
}

.description-box {
  text-align: center;
  margin: 1em 0 2em 0;
}

.division span {
  font-family: 'WalbaumFraktur Bold', serif;
  font-size: 5em;
}

/* MENU */
#menu {
  margin: 1em 0 2em 0;
  width: 100%;
  text-align: center;
  scroll-margin: 80px;
}
#menu p {
  font-weight: bold;
}

.menu-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  margin-top: 1em;
}

.menu-box a {
  flex: 0 0 32%;
}

.menu-box button {
  background-color: var(--secondary-color);
  color: var(--accent-color2);
  border: 2px solid var(--accent-color2);
  outline: none;
  min-width: 190px;
}

.menu-box button:hover{
  background-color: var(--accent-color2);
  color: var(--secondary-color);
}

/* GALLERY */
#gallery {
  margin: 3em 0;
}

#gallery ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding-left: 0;
}

#gallery ul li {
  max-width: 30%;
  cursor: pointer;
}

#gallery ul li img {
  width: 100%;
  height: auto;
  border: 2px solid transparent;
  transition: transform 0.2s ease-in-out;
}

#gallery ul li img:hover {
  /* transform: scale(1.1); */
  border: 2px solid var(--primary-color);
}

/* Overlay for image enlargement */
/* Overlay buttons (previous and next) */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

button.prev, button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5em;
  font-size: 1.5em;  
  border-radius: 50%; 
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;  
  height: 50px;
  transition: background 0.3s ease;
}

/* Add a hover effect */
button.prev:hover, button.next:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Positioning */
button.prev {
  left: 10px;
}

button.next {
  right: 10px;
}


/* CONTACT FORM */
#kontakt {
  margin: 1em 0;
  width: 100%;
  scroll-margin: 80px;
}

.uniform__potty {
position: absolute;
left: -9999px;
}

form{
  display: flex;
  flex-direction: column;
  width: 100%;
}

form label, .required {
  font-weight: 300;
  margin-bottom: 0.5em;
}

.required {
  margin-bottom: 2em;
  font-size: 0.8rem;
}

form input[type="text"], form input[type="number"], form input[type="tel"],
form input[type="email"], textarea {
  margin-bottom: 2em;
  outline: none;
  border: none;
  border-radius: 0px;
  border-bottom: 2px solid #a1a1a1;
  background-color: transparent;
}

textarea {
  height: 200px;
  border: 2px solid #a1a1a1;
  padding: 0.5em;
  border-radius: 3px;
}

form button[type="submit"] {
  align-self: flex-end;
}

span.req{
  color: #860041;
}

span.info{
  color: #a1a1a1;
  font-size: 0.8em;
}

.uniform-errors {
  color: #860041;
  font-weight: bold;
  margin-top: 1em;
}

/* FOOTER */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

#footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid #d5d5d5;
  padding: 1em 0em 0em 0em;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  width: 900px;
}

footer a {
  color: var(--accent-color);
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
} 

.footer-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 1em;
}

.footer-box h4 {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.footer-box p {
  margin-bottom: 0.3em;
  font-weight: 300;
}

p.copyright {
  margin: 1em;
  margin-top: 3em;
  color: #919191;
  font-size: 12px;
}

/* ERROR PAGE */
#error-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.error-msg{
  margin: 2em;
  font-weight: bold;
}

#error-wrap button {
  align-self: center;
}