/* =========================================
   ALIES Basis-Design
   ========================================= */

:root {
    --alies-brown: #4b3730;
    --alies-taupe: #e3d1ca;
    --alies-green: #509942;
    --alies-bg: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--alies-bg);
    color: var(--alies-brown);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* Grundlayout-Seite */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}

/* =========================================
   Header mit Logo + Burger-Menü
   ========================================= */

.alies-header {
    padding: calc(24px + env(safe-area-inset-top)) 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.alies-logo-wrap {
    text-align: center;
}

.alies-logo {
    display: block;
    margin: 0 auto 4px;
    max-width: 96px;
    height: auto;
}

.alies-logo-text {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--alies-brown);
}

/* =========================================
   Typo / Überschriften / Buttons allgemein
   ========================================= */

.hero-title {
    margin: 32px 0 10px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-subtitle {
    text-align: center;
    font-size: 14px;
    margin-bottom: 40px;
    color: #6b5a55;
}

/* Standard-Panel im ALIES-Stil */

.panel {
    width: 100%;
    max-width: 420px;
    background: #f6efeb;
    border-radius: 24px;
    padding: 24px 22px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.panel h2 {
    margin: 0 0 18px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
}

.panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Haupt-Button im ALIES-Stil */

.btn-primary {
    display: inline-block;
    min-width: 180px;
    padding: 12px 30px;
    border-radius: 999px;
    border: none;
    background: var(--alies-brown);
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    text-decoration: none;
}

.btn-primary:hover {
    background: #3b2a24;
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.16);
}

/* =========================================
   Login-spezifisches Layout
   ========================================= */

.login-main {
    flex: 1;
    padding: 14px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title {
    composes: hero-title;
    /* Fallback für Browser ohne composes: */
    margin: 32px 0 10px;
    text-align: center;
    font-size: 26px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.login-subtitle {
    composes: hero-subtitle;
    /* Fallback: */
    text-align: center;
    font-size: 14px;
    margin-bottom: 40px;
    color: #6b5a55;
}

.login-panel {
    composes: panel;
    /* Fallback (damit es auch ohne composes identisch ist) */
    width: 100%;
    max-width: 420px;
    background: #f6efeb;
    border-radius: 24px;
    padding: 24px 22px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 0 auto;
}

.login-panel .hint {
    margin: 0 0 18px;
    font-size: 13px;
    text-align: center;
    color: #6b5a55;
}

/* Footer ohne künstlichen Abstand nach oben, und ggf. ans Ende drücken */
.site-footer{
  margin-top: auto;     /* statt margin-top: 28px */
  padding: 18px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: center;
}

/* optional: auf schmalen Screens schöner umbrechen */
.footer-nav{
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
}

/* Formularfelder */

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--alies-brown);
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"] {
    width: 100%;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 15px;
    outline: none;
    background: #ffffff;
    color: #333;
}

.form-field input:focus {
    border-color: var(--alies-green);
    box-shadow: 0 0 0 2px rgba(80,153,66,0.18);
}

.login-alert {
    display: none;
    margin: 0 0 14px;
    padding: 9px 11px;
    border-radius: 12px;
    background: #fff3cd;
    border: 1px solid #ffe08a;
    font-size: 13px;
    color: #664d03;
    text-align: center;
}

.login-button-wrap {
    margin-top: 6px;
    text-align: center;
}

.login-footnote {
    margin-top: 18px;
    font-size: 12px;
    text-align: center;
    color: #7b6b64;
    font-style: italic;
}


/* =========================================
   Desktop-Layout (mobile bleibt unverändert)
   ========================================= */
@media (min-width: 1024px) {

  main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 56px;
  }

  .alies-header {
    padding: calc(24px + env(safe-area-inset-top)) 20px 0;
  }

  .login-main{
    padding: 48px 24px 64px;
  }

  .login-panel{
    max-width: 860px;
    padding: 32px 36px 34px;
  }

  .login-title{
    margin-top: 12px;
  }

  .login-panel .form-field input[type="email"],
  .login-panel .form-field input[type="password"],
  .login-panel .form-field input[type="text"]{
    font-size: 16px;
    padding: 14px 16px;
  }

  .login-panel .btn-primary{
    min-width: 260px;
    padding: 14px 44px;
  }
}

.site-footer a{
  color: var(--alies-brown);
  text-decoration: none;
  font-weight: 600;
  opacity: .7;
}

.site-footer a:hover{
  text-decoration: underline;
  opacity: 1;
}
.project-title {
    text-align: center;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 26px;          /* kleiner für Mobile */
    letter-spacing: 0.16em;  /* weniger Abstand */
    text-transform: uppercase;
    font-weight: 400;
    margin: 12px 0 6px;
}

@media (min-width: 1024px){

  /* Standard-Desktop-Container: gilt für alles außer Projects & Project-Overview */
  body:not(.projects-page):not(.project-overview-page) main{
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 10px 56px;
  }

  /* Logo/Headertuning */
  .alies-logo{
    max-width: 140px;
    margin: 0 auto 2px;
  }

  .alies-header{
    padding-top: 16px;
  }

  .login-main{
    padding: 48px 24px 64px;
  }

  .login-panel{
    max-width: 860px;
    padding: 32px 36px 34px;
  }

  .login-title{
    margin-top: 12px;
  }

  .login-panel .form-field input[type="email"],
  .login-panel .form-field input[type="password"],
  .login-panel .form-field input[type="text"]{
    font-size: 16px;
    padding: 14px 16px;
  }

  .login-panel .btn-primary{
    min-width: 260px;
    padding: 14px 44px;
  }

  /* Projects List: breit */
  body.projects-page main{
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    width: 100%;
  }

  /* Project Overview: breit + Hintergrund */
  body.project-overview-page{
    background: #f2e9e5;
  }

  body.project-overview-page main.page-inner{
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    width: 100%;
  }
}

body.project-overview-page .page{
  align-items: stretch;
}

body.project-overview-page main.page-inner{
  width: 100%;
  align-self: stretch;
}
.task-description li {
  max-width: 680px;
  margin: 0 auto;
}
.page{
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-actions .modal-btn{
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  box-shadow: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 999px;
  font: inherit;
  line-height: 1;
  cursor: pointer;

  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255,255,255,0.92);
}

.modal-actions .modal-btn-primary{
  background: #111;
  color: #fff;
  border-color: #111;
}

.modal-actions .modal-btn:active{
  transform: scale(0.98);
}

.modal-actions .modal-btn:focus{
  outline: none;
}

.modal-actions .modal-btn:focus-visible{
  outline: 2px solid rgba(0,0,0,0.35);
  outline-offset: 2px;
}
