/* =========================================================================
   tamedes.css — Zentrales Design (Corporate Identity) der Tamedes Apps
   -------------------------------------------------------------------------
   Eine Datei, eine Quelle der Wahrheit. In jede App einbinden mit:
       <link rel="stylesheet" href="tamedes.css">
   Farben/Schriften NIEMALS pro App neu erfinden — immer diese Variablen nutzen.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Jost:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ----------------------------- Design-Tokens ---------------------------- */
:root {
  /* Flächen & Text */
  --bg:        #F5F4F0;
  --surface:   #FFFFFF;
  --border:    #E2DDD8;
  --text:      #1A1917;
  --text2:     #5C5A56;
  --text3:     #9C9A96;

  /* Marke */
  --nav-bg:      #1a3328;   /* Navy/Header */
  --gold:        #b5984e;
  --gold-dark:   #8a6820;
  --gold-cream:  #e8d9b0;
  --accent:      #2a5a43;   /* Akzent-Grün */
  --accent-mid:  #367052;   /* Hover */
  --accent-light:#EBF4EE;

  /* Schriften */
  --font-serif: 'Cormorant Garamond', Georgia, serif;   /* Überschriften */
  --font-sans:  'Jost', system-ui, sans-serif;          /* Fließtext */
  --font-mono:  'DM Mono', ui-monospace, monospace;

  /* Form */
  --radius:    14px;
  --radius-lg: 24px;
  --shadow:    0 1px 3px rgba(26,25,23,.06), 0 8px 24px rgba(26,25,23,.06);
}

/* ------------------------------- Basis ---------------------------------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text); }

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

/* ------------------------------ Header ---------------------------------- */
/* Erwartete Struktur:
   <header class="tm-header">
     <div class="tm-header__inner">
       <img class="tm-header__logo" src="logo.svg" alt="Tamedes">
       <span class="tm-header__sub">Körperwerkstatt</span>
     </div>
   </header>
*/
.tm-header {
  position: relative;
  height: 74px;
  background: var(--nav-bg);
}
.tm-header__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tm-header__logo { height: 46px; width: auto; display: block; }

.tm-header__sub {
  position: relative;
  padding-left: 17px;            /* Platz für den linken Trennstrich */
  color: var(--gold-cream);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.tm-header__sub::before {        /* linker Trennstrich */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(232,217,176,.45);
}

/* 3px Gold-Verlaufslinie unter dem Header */
.tm-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg,
    var(--gold-dark), var(--gold), var(--gold-cream), var(--gold), var(--gold-dark));
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover  { border-color: var(--text3); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-mid); border-color: var(--accent-mid); }

/* ------------------------- Karten & Eingaben ---------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ------------------------------- Login ---------------------------------- */
.tm-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tm-login {
  width: 100%;
  display: flex;
  justify-content: center;
}
.tm-login__card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
  text-align: center;
}
.tm-login__plate {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-login__logo { max-width: 48px; max-height: 48px; display: block; }
.tm-login__plate-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34px;
  color: var(--gold-cream);
}
.tm-login__title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
}
.tm-login__sub {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.tm-login__pin {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
}
.tm-login__pin:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.tm-login__submit { width: 100%; margin-top: 16px; }
.tm-login__error {
  margin: 14px 0 0;
  color: #b3261e;
  font-size: 13px;
}
.tm-login__setup {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  text-align: left;
}
.tm-login__setup code { font-family: var(--font-mono); font-size: 12px; }
