@charset "UTF-8";
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-Regular.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-RegularItalic.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-SemiBold.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-SemiBoldItalic.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-Bold.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-BoldItalic.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-Regular.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-RegularItalic.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-SemiBold.otf") format("opentype");
}
@font-face {
  font-family: "AOK Buenos Aires Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/aok/AOKBuenosAires-Bold.otf") format("opentype");
}
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */
body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */
audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */
/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */
dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9/10.
 */
img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari.
 */
figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */
pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */
/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */
/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */
button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type=checkbox],
input[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */
input[type=search] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */
optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

body {
  font-family: "AOK Buenos Aires Text", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #293033;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: #005e3f;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1, .h1 {
  font-size: 32px;
}

h2, .h2 {
  font-size: 28px;
}

h3, .h3 {
  font-size: 24px;
}

h4, .h4 {
  font-size: 18px;
}

h5, .h5 {
  font-size: 18px;
}

h6, .h6 {
  font-size: 16px;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}
p.lead {
  font-size: 18px;
  line-height: 1.75;
}

.text-primary {
  color: #293033;
}

.text-secondary {
  color: #40484d;
}

.text-muted {
  color: #6d767c;
}

.text-white {
  color: #ffffff;
}

.text-aok {
  color: #005e3f;
}

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

.text-center {
  text-align: center;
}

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

.font-weight-normal {
  font-weight: 400;
}

.font-weight-semibold {
  font-weight: 600;
}

.font-weight-bold {
  font-weight: 700;
}

.font-size-sm {
  font-size: 14px;
}

.font-size-base {
  font-size: 16px;
}

.font-size-lg {
  font-size: 18px;
}

.font-size-xl {
  font-size: 20px;
}

a:not(.btn) {
  color: #005e3f;
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(#005e3f, #005e3f);
  background-size: 100% 1px;
  background-position: right bottom;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease-in-out;
}
a:not(.btn):hover, a:not(.btn):focus {
  background-size: 0 1px;
}
a:not(.btn):focus-visible {
  outline: 2px solid #18ab42;
  outline-offset: 4px;
  border-radius: 2px;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

small, .small {
  font-size: 14px;
  color: #40484d;
}

mark, .mark {
  background-color: #eefaea;
  padding: 0.125rem 0.25rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: #004730;
  background: linear-gradient(90deg, #ffffff 50%, #91f54a 50%);
  background-size: 200% 100%;
  background-position: 100% 100%;
  box-shadow: inset 0 0 0 2px #91f54a;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s ease-in-out;
  text-decoration: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover, .btn:focus-visible {
  background-position: 0 100%;
}
.btn:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #91f54a, 0 0 0 4px #ffffff, 0 0 0 5px #18ab42;
  border-radius: 6px;
}
.btn:active:not(:disabled) {
  transform: scale(0.98);
}
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn__arrow {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.btn--sekundaer {
  color: #004730;
  background: linear-gradient(90deg, #dfe3e6 50%, #ffffff 50%);
  background-size: 200% 100%;
  background-position: 100% 100%;
  box-shadow: inset 0 0 0 2px #afb6bc;
}
.btn--sekundaer:focus-visible {
  box-shadow: inset 0 0 0 2px #afb6bc, 0 0 0 4px #ffffff, 0 0 0 5px #18ab42;
}
.btn--large {
  padding: 0.9rem 1.75rem;
  font-size: 1.125rem;
}
.btn--block {
  display: flex;
  width: 100%;
}
@media (max-height: 420px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  .btn--large {
    padding: 0.55rem 1.1rem;
    font-size: 0.9375rem;
  }
}

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

html, body {
  padding: 0;
  margin: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

@media (max-width: 768px) {
  .only-large {
    display: none;
  }
}

.only-small {
  display: none;
}
@media (max-width: 480px) {
  .only-small {
    display: inherit;
  }
}

html {
  height: 100%;
  background-color: #005e3f;
}

body {
  height: 100%;
  overflow: hidden;
  font-family: "AOK Buenos Aires Text", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #293033;
  background-color: #005e3f;
}

.app {
  height: 100%;
  max-width: 1160px;
  min-width: 280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.app__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(8px, 1.4vmin, 18px) clamp(12px, 2.4vmin, 32px);
  background-color: #ffffff;
}

.app__logo {
  display: block;
  width: clamp(84px, 13vmin, 140px);
  height: auto;
}

.app__kicker {
  /* Gleiche Bezeichnung, Schrift und Staerke wie die Eyebrow auf der
     Startseite - nur in AOK-Gruen, weil der Kopf weiss ist. */
  margin: 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 1.7vmin, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #005e3f;
}
@media (max-height: 420px) {
  .app__kicker {
    display: none;
  }
}

.app__main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  background-color: #005e3f;
  background-image: radial-gradient(circle at 88% 4%, rgba(145, 245, 74, 0.2) 0%, rgba(145, 245, 74, 0) 46%), radial-gradient(circle at 6% 96%, rgba(24, 171, 66, 0.26) 0%, rgba(24, 171, 66, 0) 42%), linear-gradient(165deg, #007141 0%, #005e3f 58%, #004730 100%);
}

.view {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(14px, 3vmin, 40px) clamp(12px, 2.4vmin, 32px);
}
.view.is-active {
  display: flex;
  flex-direction: column;
  animation: viewIn 0.34s ease-out both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.eyebrow {
  margin: 0 0 clamp(4px, 0.8vmin, 8px) 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 1.8vmin, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #91f54a;
}
.eyebrow--accent {
  color: #18ab42;
}

.intro {
  max-width: 720px;
  margin: 0;
}
.intro__headline {
  margin: 0 0 clamp(10px, 2vmin, 24px) 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(21px, 4.6vmin, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}
.intro__headline-line {
  /* Jeder Satz bleibt als Block zusammen: "Mitten im Familienleben." rutscht
     komplett in die zweite Zeile, statt mitten im Satz umzubrechen. */
  display: inline-block;
}
.intro__text {
  margin: 0 0 clamp(10px, 2vmin, 24px) 0;
  font-size: clamp(13px, 2.1vmin, 18px);
  color: #ffffff;
}
.intro__anleitung {
  margin: 0 0 clamp(14px, 2.8vmin, 32px) 0;
  padding: clamp(8px, 1.6vmin, 16px) clamp(12px, 2.4vmin, 24px);
  border-left: 4px solid #91f54a;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0 8px 8px 0;
  font-size: clamp(12px, 1.9vmin, 16px);
  color: #ffffff;
}
@media (max-height: 400px) {
  .intro__anleitung {
    display: none;
  }
}
.intro__anleitung-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #91f54a;
}

/* Smartphone im Hochformat: vmin entspricht der Bildschirmbreite, deshalb fallen
   alle clamp()-Werte auf ihr Minimum. Nach unten ist aber viel Platz, also
   Schrift, Abstaende und CTA grosszuegiger setzen. */
@media (max-width: 600px) and (orientation: portrait) {
  .view--intro {
    padding: 24px 18px 28px;
  }
  .view--intro .eyebrow {
    margin-bottom: 8px;
    font-size: 13px;
  }
  .intro__headline {
    margin-bottom: 16px;
    /* an der Breite orientiert, damit "Mitten im Familienleben." bis 320px in eine Zeile passt */
    font-size: clamp(22px, 7vw, 27px);
  }
  .intro__text {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
  }
  .intro__anleitung {
    margin-bottom: 28px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
  }
  .intro__anleitung-label {
    margin-bottom: 0.35rem;
  }
  .intro .btn--large {
    display: flex;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
  }
}

.outro {
  max-width: 720px;
  margin: 0;
}
.outro__headline {
  margin: 0 0 clamp(10px, 2vmin, 24px) 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 4.2vmin, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}
.outro__headline:focus {
  outline: none;
}
.outro__text {
  margin: 0 0 clamp(8px, 1.6vmin, 16px) 0;
  font-size: clamp(13px, 2.1vmin, 18px);
  color: #ffffff;
  white-space: pre-line; /* Zeilenumbrueche (
) aus leistungen.json bleiben erhalten */
}
.outro__score {
  margin: 0 0 clamp(14px, 2.8vmin, 32px) 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(13px, 2vmin, 16px);
  font-weight: 600;
  color: #91f54a;
}
.outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.6vmin, 16px);
}

.view--game {
  gap: clamp(8px, 1.6vmin, 20px);
}

.game__top {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.game__intro {
  min-width: 0;
}

@media (max-width: 420px) {
  .game__top .btn {
    padding: 0.45rem 0.8rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}
.game__headline {
  margin: 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 3.2vmin, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}
@media (max-height: 420px), (max-width: 420px) {
  .game__headline {
    display: none;
  }
}

.board {
  --cols: 4;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--card-w, minmax(0, 1fr)));
  grid-auto-rows: var(--card-h, var(--card-w, auto));
  gap: 10px;
  row-gap: var(--row-gap, 10px);
  justify-content: center;
  align-content: start;
}

.card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  perspective: 900px;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  /* Illustration bringt ihre eigene Fläche mit: randlos, damit Fläche und
     Kartenfarbe nahtlos ineinander übergehen */
  /* Dunkle Kartenfarbe: Namensleiste hell setzen */
  /* Gefundenes Paar bleibt nach dem Infokasten aufgedeckt stehen (etwas
     kleiner, mit Schleier), bis die Runde vorbei ist. */
}
.card:focus-visible {
  outline: none;
}
.card:focus-visible .card__cover,
.card:focus-visible .card__face {
  box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 0 0 3px #ffffff, 0 0 0 6px #18ab42;
}
.card[disabled] {
  cursor: default;
}
.card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.card.is-flipped .card__inner, .card.is-matched .card__inner {
  transform: rotateY(180deg);
  animation: flipIn 0.42s ease-out both;
}
.card.is-flipping-back .card__inner {
  animation: flipOut 0.42s ease-out both;
}
.card__cover, .card__face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  clip-path: inset(0 round 4px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 3px 8px rgba(0, 71, 48, 0.2);
  transition: box-shadow 0.3s ease-out;
}
.card__cover {
  background-color: #ffffff;
  background-image: url(../images/karten-rueckseite.png);
  background-size: cover;
  background-position: center;
}
.card__face {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  background-color: #ffffff;
}
.card__image {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: clamp(3px, 1vmin, 10px) clamp(3px, 1vmin, 10px) 0;
  object-fit: contain;
  user-select: none;
}
.card__label {
  flex: 0 0 auto;
  max-width: 100%;
  margin: clamp(3px, 0.8vmin, 8px) clamp(4px, 1vmin, 10px) clamp(4px, 1vmin, 10px);
  padding: clamp(2px, 0.6vmin, 5px) clamp(3px, 0.8vmin, 8px);
  border-radius: 4px;
  background-color: rgba(0, 71, 48, 0.07);
  overflow: hidden;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  /* An der Kartenbreite (aus layoutBoard) statt am Viewport: auf dem
     Smartphone im Hochformat sind die Karten gross, vmin aber klein. */
  font-size: clamp(7px, calc(var(--card-w, 120px) * 0.1), 13px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: #004730;
  hyphens: auto;
  overflow-wrap: break-word;
}
@media (max-height: 300px) {
  .card__label {
    display: none;
  }
}
.card.is-dark .card__label {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
}
.card.is-fullbleed .card__face {
  padding: 0;
}
.card.is-fullbleed .card__image {
  padding: 0;
  width: 100%;
}
/* Paar gefunden: nach dem Umdrehen poppt das Paar kurz auf, federt nach und
   der gruene Ring leuchtet auf - erst danach oeffnet sich der Infokasten
   (TIP_DELAY in memory.js ist darauf abgestimmt). */
.card.is-matched {
  z-index: 2;
  animation: cardMatch 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
.card.is-matched .card__face {
  box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 0 0 3px #91f54a;
  animation: matchGlow 0.75s ease-out 0.4s both;
}
.card.is-wrong {
  animation: cardWrong 0.4s ease-in-out 0.35s both;
}
.card:not([disabled]):hover:not(.is-flipped) .card__inner {
  transform: scale(1.03);
}
.card:not([disabled]):active:not(.is-flipped) .card__inner {
  transform: scale(0.97);
}

.board.is-dealing .card {
  animation: cardDeal 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}

@keyframes cardDeal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Karte dreht sich und hebt sich dabei kurz an - erzeugt Tiefe */
@keyframes flipIn {
  0% {
    transform: rotateY(0deg) translateZ(0);
  }
  50% {
    transform: rotateY(90deg) translateZ(46px);
  }
  100% {
    transform: rotateY(180deg) translateZ(0);
  }
}
@keyframes flipOut {
  0% {
    transform: rotateY(180deg) translateZ(0);
  }
  50% {
    transform: rotateY(90deg) translateZ(46px);
  }
  100% {
    transform: rotateY(0deg) translateZ(0);
  }
}
@keyframes cardMatch {
  0% {
    transform: none;
  }
  40% {
    transform: scale(1.06);
  }
  65% {
    transform: scale(0.99);
  }
  85% {
    transform: scale(1.01);
  }
  100% {
    transform: none;
  }
}
@keyframes matchGlow {
  0% {
    box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 0 0 3px #91f54a;
  }
  40% {
    box-shadow: 0 3px 8px rgba(0, 71, 48, 0.3), 0 0 0 3px #91f54a, 0 0 10px 2px rgba(145, 245, 74, 0.4);
  }
  100% {
    box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 0 0 3px #91f54a;
  }
}
@keyframes cardWrong {
  0%, 100% {
    transform: none;
  }
  20% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  80% {
    transform: translateX(-2px);
  }
}
.farbe--pastellgruen .card__face {
  background-color: #eefaea;
}

.farbe--pastellblau .card__face {
  background-color: #e8f4f2;
}

.farbe--sand .card__face {
  background-color: #f8f5e3;
}

/* Innenrahmen fuer weisse und tiefgruene Karten. Er liegt als Overlay UEBER
   dem Bild: ein inset-Schatten direkt auf der Flaeche wuerde von randlosen
   Illustrationen teilweise verdeckt und saehe unterbrochen aus. */
.farbe--tiefgruen .card__face,
.farbe--weiss .card__face {
  background-color: #ffffff;
}
.farbe--tiefgruen .card__face::after,
.farbe--weiss .card__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4px;
  pointer-events: none;
}
.farbe--tiefgruen .card__face::after {
  box-shadow: inset 0 0 0 4px #004730;
}
.farbe--weiss .card__face::after {
  box-shadow: inset 0 0 0 4px #91f54a;
}

.farbe--tiefgruen.is-matched .card__face,
.farbe--weiss.is-matched .card__face {
  box-shadow: 0 1px 2px rgba(0, 71, 48, 0.35), 0 3px 8px rgba(0, 71, 48, 0.2), 0 0 0 3px #91f54a;
}

/* Abgehaktes Paar: bleibt aufgedeckt, rueckt etwas zurueck und liegt unter
   einem leichten Schleier. So bleibt am Ende das ganze Portfolio
   sichtbar, und trotzdem ist klar, was schon geschafft ist. */
.card.is-done {
  pointer-events: none;
  animation: none;
}
.card.is-done .card__inner {
  animation: cardSettle 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.card.is-done .card__face {
  box-shadow: 0 1px 2px rgba(0, 71, 48, 0.2);
}
.card.is-done .card__face::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 4px;
  background-color: rgba(0, 71, 48, 0.16);
  animation: veilIn 0.4s ease-out 0.15s both;
}
@keyframes cardSettle {
  from {
    transform: rotateY(180deg) scale(1);
  }
  to {
    transform: rotateY(180deg) scale(0.9);
  }
}
@keyframes veilIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Bei reduzierter Bewegung entfaellt die Deko - die Drehung bleibt aber
   sichtbar, weil sie die zentrale Rueckmeldung des Spiels ist. Sie laeuft
   dann nur kuerzer und ohne Anheben. */
@media (prefers-reduced-motion: reduce) {
  .card__cover,
  .card__face {
    transition: none;
  }
  /* Pop und Ring-Glow beim gefundenen Paar bleiben auch hier: kurz, klein,
     und die zentrale Belohnung des Spiels. */
  .board.is-dealing .card,
  .card.is-wrong {
    animation: none;
  }
  .card.is-flipped .card__inner,
  .card.is-matched .card__inner {
    animation: flipInFlach 0.22s linear both;
  }
  .card.is-flipping-back .card__inner {
    animation: flipOutFlach 0.22s linear both;
  }
  .card.is-done .card__inner {
    animation: none;
    transform: rotateY(180deg) scale(0.9);
  }
  .card.is-done .card__face::before {
    animation: none;
  }
  @keyframes flipInFlach {
    from {
      transform: rotateY(0deg);
    }
    to {
      transform: rotateY(180deg);
    }
  }
  @keyframes flipOutFlach {
    from {
      transform: rotateY(180deg);
    }
    to {
      transform: rotateY(0deg);
    }
  }
}
.dimmer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 71, 48, 0.65);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  cursor: pointer;
}
.dimmer.is-visible {
  opacity: 1;
}

.tip {
  position: fixed;
  z-index: 120;
  top: 50%;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(16px, 3.4vmin, 32px);
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.15), 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0;
  transition: opacity 0.18s ease-out, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tip.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 480px) {
  .tip {
    padding: 1.5rem;
  }
}
.tip__headline {
  margin: 0 0 1rem 0;
  font-family: "AOK Buenos Aires", Arial, Helvetica, sans-serif;
  font-size: clamp(18px, 3.2vmin, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: #005e3f;
}
.tip__text {
  margin: 0 0 clamp(14px, 2.6vmin, 24px) 0;
  font-size: clamp(13px, 2vmin, 16px);
  color: #293033;
}
.tip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.tip__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background-color: #f7f8f9;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.tip__close::before, .tip__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #005e3f;
}
.tip__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.tip__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.tip__close:hover {
  background-color: #eefaea;
}
.tip__close:focus-visible {
  outline: 2px solid #18ab42;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .dimmer,
  .tip {
    transition: none;
  }
  .view.is-active {
    animation: none;
  }
}
