:root {
  --header-h: 72px;
  --bg: #f4f7fb;
  --text: #18212b;
  --muted: #627184;
  --shadow: 0 14px 40px rgba(15,23,42,0.10);
}

html, body {
  overflow-x: hidden;
}

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

/* Fallback */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  /*font-family: Verdana, Geneva, Tahoma, sans-serif;*/
  font-family: "Gafata", sans-serif;
  font-size: 20px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: bold;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: bold;
}

h3,
h4,
h5,
h6 {
  font-weight: bold;
}



a {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #666;
}

p.register:active {
  color: antiquewhite;
}

/* Header */

header {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
}

div.header {
  background-image: url("paper_light.png");
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.20) 0px 5px 7px;
}

.footer {
  background-image: url("paper_light.png");
  background-color: rgb(255, 255, 255);
  box-shadow: rgba(0, 0, 0, 0.20) 0px -5px 7px;
}

header h1 {
  margin-top: 0;
}

div.responsive,
div.console-footer,
div.console-header {
  display: inline-block;
  align-items: center;
  /* Vertical centering */
  text-align: center;
}

div.console {
  display: inline;
  text-align: right;
}

div.topnav {
  display: inline-block;
  text-align: right;
}

.picRef {
  text-align: left;
}

div.register {
  display: inline-block;
  font-weight: bold;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  margin-right: 2px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 7px;
}

input[type=submit] {
  border: none;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 7px;
  color: whitesmoke;
  background-color: #0297f1;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 7px;
}

.submit {
  margin: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-radius: 7px;
}

input[type=submit],
label {
  font-family: inherit;
  font-size: 20px;
  line-height: inherit;
  font-weight: bold;
}

input[type=submit]:active {
  color: rgb(43, 43, 43);
}

p.register {
  padding-left: 10px;
  padding-right: 10px;
  color: rgb(43, 43, 43);
}

/* Hide the link that should open and close the topnav on small screens */
.icon {
  display: none;
}

/* Main */
main {
  line-height: 1.5;
  margin-bottom: 20px;
  padding-top: var(--header-h);
  scroll-padding-top: var(--header-h);
  padding-bottom: 20px;
}



/* Footer */
footer {
  text-align: center;
  position: fixed;
  /*position: sticky;*/
  font-size: small;
  bottom: 0;
  width: 100%;
}

.forminput {
  margin-bottom: 5px;
  margin-left: 10px;
  padding: 5px;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.5;
  border-radius: 7px;
  border-width: 0.5px;
  color: #169ffb;
}

.kontakt-intro {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  max-width: 600px;
  text-align: center;
}

.kontakt-form {
  width: 100%;
  max-width: 600px;
  padding-top: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  width: 100%;
}

.form-row .formlabel {
  text-align: left;
  margin-bottom: 4px;
  margin-left: 0;
}

.form-row .forminput {
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

.profile-photo {
  height: auto;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 3px 7px;
}

.profile-img {
  height: auto;
  max-width: 100%;
  padding-top: 10;
}

.responsive-columns {
  display: flex;
}

.block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.column-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 5px;
}

.column-right {
  flex: 1;
  display: flex;
}

.h1-header {
  text-align: center;
  color: #262525;
  background: linear-gradient(90deg, #262525, #4e4d4d);
  background-clip: text;
}

.h2-header {
  text-align: center;
  padding-block: 6px;
}

body.snap-layout {
  height: 100dvh;
  overflow: hidden;
}

body.snap-layout div.scroll-container {
  height: 100dvh;
  max-height: none;
  padding-bottom: var(--header-h);
}

div.scroll-container {

  display: inline-block;
  align-items: center;
  text-align: center;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  width: 85vw;
  max-height: calc(100dvh - var(--header-h));


  -ms-overflow-style: none;
  /* For Internet Explorer and Edge */
  scrollbar-width: none;
  /* For Firefox */
}

.snap {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-container::-webkit-scrollbar:vertical {
  width: 0;
}

.td-left-text {
  text-align: left;
}

.td-right-text {
  text-align: right;
}

td {
  padding-top: 15px;
}

.container {
  width: 100%;
  text-align: left;
  align-items: flex-start;
}

.composer{
  width: 100%;   
  margin-inline: auto;
  padding-inline: 10px;
  border-radius: 12px;
}

.input {
  width: 100%;
  height: 84px;                 /* e.g. 3 lines */
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f3f3;
  color: #2a2a2a;
  border: 0.5px solid #f0eeee;
  box-shadow: rgba(0, 0, 0, 0.20) 0px 5px 7px;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  align-items: flex-start;      /* ⬅️ important */
  overflow: hidden; 
}

/* typing area */
#typed {
  display: block;
  width: 100%;
  white-space: pre-wrap;        /* ⬅️ allows wrapping */
  word-break: break-word;
}

@keyframes blink { 50% { opacity: 0; } }

.mapWrap { width: 100%; max-width: 1100px; margin: 0 auto; }
.map { width: 100%; height: auto; display: block; }


/* CSS media queries for responsive layout */
@media screen and (max-width: 767px) {

  header,
  main {
    text-align: center;
  }

  main {
    line-height: 1.3;
  }

  /* Logo row: flex, logo left, burger right */
  div.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
  }

  div.console-header {
    flex: 1;
    text-align: left;
  }

  .logo {
    padding: 5px;
    max-width: 55%;
  }

  /* Burger-Icon */
  .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Nav dropdown container: absolute so it overlays content */
  div.console {
    position: absolute;
    right: 16px;
    top: 100%;
    z-index: 10;
  }

  div.topnav {
    display: block;
    text-align: right;
  }

  /* Nav hidden by default */
  .topnav nav {
    display: none;
  }

  /* Nav links: right-aligned, inline */
  .nav a {
    display: block;
    text-align: right;
  }

  /* Nav item boxes: like desktop, small, with shadow */
  .nav div.register {
    display: inline-block;
    margin-right: 0;
    margin-bottom: 4px;
    border-radius: 7px;
    box-shadow: rgba(0,0,0,0.35) 0px 3px 7px;
  }

  .nav p.register {
    font-size: 14px;
    padding: 4px 12px;
    text-align: center;
  }

  div.scroll-container {
    width: 85vw;
  }

  div.console-footer {
    width: 85vw;
    text-align: left;
  }

  .centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* If content can exceed max-height */
  }

  .responsive-columns {
    flex-direction: column;
  }

  .responsive-columns-reverse {
      flex-direction: column-reverse;
  }

  .column-left {
    justify-content: center;
    align-items: center;
  }

  .column-right {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}



/* desktop, notebook, tablets */
@media screen and (min-width: 768px) {

  header,
  main {
    text-align: center;
  }

  div.console {
    width: 55vw;
  }

  section.console-content {
    width: 55vw;
    text-align: left;
    height: 100vh;
  }

  div.scroll-container {
    width: 55vw;
    text-align: left;
  }

  .centered-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* If content can exceed max-height */
  }

  .responsive-columns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    /* Adds 20px space between columns */
  }

  div.console-footer {
    width: 55vw;
    text-align: left;
  }

  div.console-header {
    width: 55vw;
    text-align: left;
  }

  .logo {
    max-width: 300px;
    text-align: left;
  }

  .column-left {
    justify-content: flex-end;
    align-items: center;
  }

  .column-right {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
  }

}


/* ── Mindmap ── */

.page {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  padding: 16px;
}

.frame {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(203,214,226,0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame .header { padding: 20px 22px 8px; }

.frame .header h1 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.frame .header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.canvas-wrap {
  width: 100%;
  padding: 0 12px 18px;
}

.mindmap {
  display: block;
  width: 100%;
  height: auto;
  min-height: 72vh;
  max-height: 92vh;
  touch-action: manipulation;
}

.connection {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: opacity 280ms ease, stroke-width 280ms ease;
}

.node {
  cursor: pointer;
  transition: opacity 280ms ease;
}

.node.colored rect {
  stroke: none;
  filter: drop-shadow(0 8px 22px rgba(15,23,42,0.18));
  transition: filter 250ms ease;
}

.node.center rect {
  filter: drop-shadow(0 14px 36px rgba(200,168,128,0.45));
}

.node text {
  pointer-events: none;
  user-select: none;
  fill: var(--text);
}

.node .title { font-size: 38px; font-weight: 700; }
.node .meta  { font-size: 22px; fill: var(--muted); }

.mindmap-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 2px 0 0;
}

.node:hover rect { filter: drop-shadow(0 18px 44px rgba(15,23,42,0.28)); }

.mindmap.is-zoomed .node.colored:not(.is-active) { opacity: 0.12; }
.mindmap.is-zoomed .connection            { opacity: 0.10; }
.mindmap.is-zoomed .connection.is-related { opacity: 0.70; stroke-width: 3.6; }
.mindmap.is-zoomed .node.is-active        { opacity: 0; pointer-events: none; }

.zoom-hit { fill: transparent; pointer-events: all; }

.zoom-clone rect {
  filter: drop-shadow(0 24px 56px rgba(15,23,42,0.26)) !important;
}

.zoom-panel .panel-bg {
  fill: #ffffff;
  stroke: none;
  filter: drop-shadow(0 30px 72px rgba(15,23,42,0.22)) drop-shadow(0 4px 14px rgba(15,23,42,0.09));
}

.zoom-panel .panel-title  { font-size: 20px; font-weight: 700; fill: #ffffff; }
.zoom-panel .panel-bullet { font-size: 15px; fill: #334155; }
.zoom-panel .panel-hint   { font-size: 12px; fill: #94a3b8; }

/* ── Mobile accordion ── */

.mobile-map { display: none; }

.mobile-map-header {
  background: linear-gradient(135deg, #D6ECFA 0%, #C8E2F4 55%, #BDD8EF 100%);
  border-radius: 20px;
  padding: 24px 22px;
  margin-bottom: 14px;
  color: #2C5F7A;
  text-align: center;
  box-shadow: 0 8px 28px rgba(126,184,214,0.28);
}

.mobile-map-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.mobile-map-header p {
  font-size: 13px;
  opacity: 0.65;
  margin: 8px 0 0;
}

.acc-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,23,42,0.07);
  transition: box-shadow 0.22s ease;
}

.acc-item.open { box-shadow: 0 10px 32px rgba(15,23,42,0.13); }

.acc-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.acc-dot   { width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0; }
.acc-title { font-size: 15px; font-weight: 600; color: #1e293b; flex: 1; line-height: 1.3; }

.acc-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: #94a3b8;
  transition: transform 0.3s ease;
}

.acc-item.open .acc-chevron { transform: rotate(180deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
}

.acc-item.open .acc-body { max-height: 520px; }

.acc-body-inner { padding: 4px 18px 18px 44px; text-align: left; }

.acc-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.45;
  border-bottom: 1px solid #f1f5f9;
}

.acc-list-item:last-child { border-bottom: none; }

.acc-list-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .page        { padding: 8px; }
  .frame       { border-radius: 18px; }
  .canvas-wrap { padding: 6px 4px 10px; }
  .mindmap     { min-height: auto; max-height: none; }
}

@media (max-width: 640px) {
  .page              { padding: 0; }
  .frame             { border-radius: 0; border-left: 0; border-right: 0; }
  .frame .header     { padding: 14px 14px 6px; }
  .frame .header p   { font-size: 13px; }
  .canvas-wrap       { display: none; }
  .mindmap-hint      { display: none; }
  .mobile-map        { display: block; padding: 12px 14px 28px; }
}

.steps-list {
  text-align: left;
  display: inline-block;
  margin: 0 0 28px 0;
  padding-left: 1.4em;
  font-size: 20px;
  line-height: 2;
}

.contact-btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 7px;
  background-color: #0270b8;
  color: #ffffff;
  font-family: inherit;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 7px;
}

.contact-btn:hover {
  background-color: #025a96;
}