/* =========================
   Theme Variables
========================= */

:root {
  /* Light */
  --bg-main: #f3f5f7;
  --bg-card: #ffffff;
  --bg-soft: #eef1f4;

  --text-main: #222;
  --text-muted: #666;

  --border: #ddd;
  --accent: #2196f3;

  --shadow: rgba(0,0,0,.2);
}

/* System Darkmode */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-soft: #2a2a2a;

    --text-main: #e8e8e8;
    --text-muted: #aaaaaa;

    --border: #333;
    --accent: #64b5f6;

    --shadow: rgba(0,0,0,.6);
  }
}
*/
/* =========================
   Base / Reset
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

/* =========================
   NFC Aktiv/Inaktiv 
========================= */


.nfc-status {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #555;
}

.nfc-status.active {
  color: green;
  font-weight: bold;
}

.nfc-status.error {
  color: red;
  font-weight: bold;
}


/* =========================
   App Container
========================= */
/*
.app {
  max-width: 420px;
  margin: 0 auto;
  padding: 1rem;
}
*/

.app {
  background: var(--bg-card);
  box-shadow: 0 12px 30px var(--shadow);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 24px;
}


/* =========================
   Buttons
========================= */
/*
button {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  background: #617992;
  color: #fff;
  cursor: pointer;
}
*/

button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #1976d2);
  color: white;
  box-shadow: 0 6px 14px rgba(33,150,243,.4);
}
button:hover {
  background: #4e647a;
}


/* =========================
   Scan Info
========================= */

.scaninfo {
  margin: 1rem 0;
  padding: 0.75rem;
  font-size: 0.9rem;
  background: var(--bg-soft);
  border-radius: 6px;
  text-align: center;
}

/* =========================
   Card
========================= */

.card {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* =========================
   Labels / Values
========================= */

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.value {
  font-size: 0.95rem;
  margin-top: 0.2rem;
  word-break: break-word;
}

/* =========================
   Color Box
========================= */

.colorBox {
  width: 100%;
  height: 32px;
  margin-top: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ccc;
}

/* =========================
   HR with Text
========================= */




.hr-container {
  max-width: 50%;  
  margin: 40px auto;
}
.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: .5;
  &:before {
    content: '';
    // use the linear-gradient for the fading effect
    // use a solid background color for a solid bar
    background: linear-gradient(to right, transparent, #818078, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
  }
  &:after {
    content: attr(data-content);
    position: relative;
    display: inline-block;
    color: black;

    padding: 0 .5em;
    line-height: 1.5em;
    // this is really the only tricky part, you need to specify the background color of the container element...
    color: #818078;
    background-color: #fcfcfa;
  }
}


/*


.hr-text {
  text-align: center;
  position: relative;
}

.hr-text::before {
  content: attr(data-content);
  background: #ddd;
  padding: 0 10px;
  transform: translate(-50%, -50%);
  background: #f3f5f7;

}


.hr-text::after {
  background-color: var(--bg-card);
  color: var(--text-muted);
}

.hr-container {
  margin: 2.2rem 0;
}

.hr-text {
  position: relative;
  border: none;
  height: 1px;
  background: #ddd;
  color: var(--text-muted);
}

.hr-text::before {
  content: attr(data-content);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #f3f5f7;
  padding: 0 1.5rem;
  font-size: 0.7rem;
  color: #777;
  text-transform: uppercase;
}
*/
/* =========================
   Settings
========================= */
/*
.settings {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
*/
.settings input[type="url"] {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}


.settings {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.settings input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
}

.settings button {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #4caf50;
  color: white;
}

/* =========================
   Toggle (Experimentell)
========================= */

.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  user-select: none;
}

.toggle input {
  accent-color: #617992;
  cursor: pointer;
}

/* =========================
   Experimental Block
========================= */

#experimentalBlock {
  display: none;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

/* =========================
   Footer / Links
========================= */

.links-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.links-container a {
  color: inherit;
  text-decoration: none;
}

.links-container a:hover {
  text-decoration: underline;
}

.lccolumn {
  flex: 1; /* Lässt jede Spalte gleichmäßig wachsen */
  /* Alternativ: flex-basis: 33.33%; */
  text-align: center;
}
.small {
  font-size: xx-small;
}

.gh-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* =========================
   Darkmode Toggle
========================= */
body.dark {
  --bg-main: #121212;
  --bg-card: #1e1e1e;
  --bg-soft: #2a2a2a;

  --text-main: #e8e8e8;
  --text-muted: #aaaaaa;

  --border: #333;
  --accent: #64b5f6;

  --shadow: rgba(0,0,0,.6);
}
