/* ----------------- Theme (Dark/Light) ----------------- */
:root {
    --bg: 255, 255, 255;
    --font-color: 51, 51, 51;
    --header-footer-bg: 245, 245, 245;
    --header-footer-font-color: 51, 51, 51;

    --nav-link: 194, 31, 156;
    --nav-active: 153, 26, 123;
    --nav-hover-link: 255, 114, 227;

    --main-bg: 245, 245, 245;
    --floatfront: 'Sansation', sans-serif;
    --float-font-weight: 400;
    --float-font-style: normal;
    --headerfront: 'Sansation', sans-serif;
    --header-font-weight: 700;
    --header-font-style: normal;
    --box-shadow-formular: 0 8px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-formular-input: 0 0 14px rgba(194, 33, 160, 1);
}

html[data-theme="dark"] {
    --bg: 48, 41, 48;
    --font-color: 224, 224, 224;
    --header-footer-bg: 31, 31, 31;
    --header-footer-font-color: 224, 224, 224;

    --nav-link: 255, 34, 204;
    --nav-active: 194, 36, 157;
    --nav-hover-link: 255, 85, 221;

    --main-bg: 30, 30, 30;
    --box-shadow-formular: 0 0 24px rgba(255, 255, 255, 0.1);
    --box-shadow-formular-input: 0 0 14px rgba(194, 33, 160, 1);
}

/* ----------------- Allgemein ----------------- */
body {
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    background-color: rgb(var(--bg));
    color: rgb(var(--font-color));
    padding: 0;
    margin: 0;
}

h1 {
    color: rgb(var(--nav-link));
    font-family: var(--headerfront);
    font-weight: var(--header-font-weight);
    font-style: var(--header-font-style);
}

/* ----------------- Kontaktformular ----------------- */
#formular {
    max-width: 35rem;
    margin: 2rem auto;
    padding: 2.5rem;
    background-color: rgb(var(--main-bg));
    border-radius: 24px;
    box-shadow: var(--box-shadow-formular);
    font-family: var(--floatfront);
    display: flex;
    flex-direction: column;
    position: relative;
}

#formular input[type="text"],
#formular input[type="email"],
#formular textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    max-height: 20rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 3px solid rgb(var(--nav-active));
    border-radius: 12px;
    font-size: 1rem;
    background-color: rgb(var(--bg));
    color: rgb(var(--font-color));
    font-family: var(--floatfront);
    box-sizing: border-box;
}

#formular input[type="text"]:focus,
#formular input[type="email"]:focus,
#formular textarea:focus {
    border-color: rgb(var(--nav-active));
    box-shadow: var(--box-shadow-formular-input);
    outline: none;
    background-color: rgb(var(--main-bg));
}

#formular button {
    display: inline-block;
    padding: 10px 16px;
    background-color: rgb(var(--nav-link));
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

#formular button:hover {
    background-color: rgb(var(--nav-hover-link));
}

#formular .success {
    background-color: rgba(212, 237, 218, 1);
    color: rgb(21, 87, 36);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(195, 230, 203, 1);
}

#formular .error {
    background-color: rgba(248, 215, 218, 1);
    color: rgb(114, 28, 36);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 198, 203, 1);
}

#cookie-overlay {
    position: absolute;
    border-radius: 24px;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(var(--main-bg),0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: rgb(187, 0, 0);
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

#cookie-overlay + #contact-form,
#cookie-overlay ~ #contact-form {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

/*----------------- Login ---------------- */
#login-area {
    position: absolute;
    left: 55%; 
    transform: translateX(8rem);
    display: flex;
    align-items: center;
    font-family: var(--floatfront);
}

#login-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    padding: 0.5rem 0.75rem;
    border: 3px solid rgb(var(--nav-active));
    border-radius: 12px;
    font-size: 1rem;
    background-color: rgb(var(--bg));
    color: rgb(var(--font-color));
    font-family: var(--floatfront);
    box-sizing: border-box;
}

#login-form input[type="text"]:focus,
#login-form input[type="password"]:focus {
    border-color: rgb(var(--nav-active));
    box-shadow: var(--box-shadow-formular-input);
    outline: none;
    background-color: rgb(var(--main-bg));
}

#login-form button {
    padding: 0.5rem 1rem;
    background-color: rgb(var(--nav-link));
    color: #fff;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

#login-form button:hover {
    background-color: rgb(var(--nav-hover-link));
}

#login-status {
    margin-left: 1rem;
    font-size: 0.9rem;
}

#login-status.success {
    background-color: rgba(212, 237, 218, 1);
    color: rgb(21, 87, 36);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(195, 230, 203, 1);
}

#login-status.error {
    background-color: rgba(248, 215, 218, 1);
    color: rgb(114, 28, 36);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(245, 198, 203, 1);
}


/* ----------------- Header ----------------- */
header {
    position: relative;
    height: 60px;
    background-color: rgb(var(--header-footer-bg));
    color: rgb(var(--header-footer-font-color));
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

header nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

header nav a {
    color: rgb(var(--nav-link));
    text-decoration: none;
    font-family: var(--headerfront);
    font-weight: var(--header-font-weight);
    font-style: var(--header-font-style);
}

header nav a:hover {
    color: rgb(var(--nav-hover-link));
}

header nav a.active {
    color: rgb(var(--nav-active));
    font-weight: var(--header-font-weight);
}

#theme-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: rgb(var(--header-footer-font-color));
    transition: color 0.3s ease;
}

[data-theme="dark"] #theme-toggle,
[data-theme="light"] #theme-toggle {
    color: rgb(var(--nav-link));
}

/* ----------------- Main ----------------- */
main {
    margin: 2.5rem auto;
    max-width: 95rem;
    background-color: rgb(var(--main-bg));
    padding: 15px;
    border-radius: 12px;
    box-sizing: border-box;
}

main #float {
    font-family: var(--floatfront);
    font-weight: var(--float-font-weight);
    font-style: var(--float-font-style);
}

/* ----------------- Mail ----------------- */
#mail a {
    color: rgb(var(--nav-link));
    text-decoration: none;
}

#mail a:hover {
    color: rgb(var(--nav-hover-link));
    text-decoration: none;
}

/* ----------------- Footer ----------------- */
footer {
    text-align: center;
    background-color: rgb(var(--header-footer-bg));
    color: rgb(var(--header-footer-font-color));
    padding: 0.5rem;
    line-height: 1.2;
    font-family: var(--floatfront);
    font-weight: var(--float-font-weight);
    font-style: var(--float-font-style);
}

footer nav {
    font-family: var(--headerfront);
    font-weight: var(--header-font-weight);
    font-style: var(--header-font-style);
}

footer nav a {
    color: rgb(var(--nav-link));
    text-decoration: none;
}

footer nav a:hover {
    color: rgb(var(--nav-hover-link));
}

footer nav a.active {
    color: rgb(var(--nav-active));
    font-weight: var(--header-font-weight);
}

/* ----------------- Auswahlfarbe ----------------- */
::selection {
  color: rgb(var(--nav-link));
  background: rgba(31, 194, 69, 0.25);
}

/*---------------- Cookies -------------------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(var(--header-footer-bg),0.75);
  color: rgb(var(--font-color));
  padding: 15px;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: var(--floatfront);
  font-weight: var(--float-font-weight);
  font-style: var(--float-font-style);
}

#cookie-banner button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background-color: rgb(var(--nav-link));
  color: #fff;
  cursor: pointer;
}

#cookie-banner button:hover {
  background-color: rgb(var(--nav-hover-link));
}