src/StartPlatz/Bundle/StyleBundle/Resources/views/base.sp-public-spring-26.html.twig line 1

Open in your IDE?
  1. {# Level-2-Template: SP Public Spring 26 Design System #}
  2. {# Extends base.tailwind.public (Level 1) — adds fonts, colors, design-system CSS #}
  3. {# Styleguide: doc/standards/sp-public-spring-26-styleguide.md #}
  4. {% extends "@StartPlatzStyleBundle/base.tailwind.public.html.twig" %}
  5. {# === Topic Color (override in Level-3 templates) === #}
  6. {# "green" or "blue" — controls CTA, top-stripes, active filter #}
  7. {% set topicColor = block('topicColor') is defined ? block('topicColor') : 'green' %}
  8. {% block fonts %}
  9.     <link rel="preconnect" href="https://fonts.googleapis.com">
  10.     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  11.     <link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  12. {% endblock %}
  13. {% block tailwindConfig %}
  14. <script>
  15.     tailwind.config = {
  16.         theme: {
  17.             extend: {
  18.                 colors: {
  19.                     sp: {
  20.                         green: '#7ab800',
  21.                         'green-dark': '#5a8a00',
  22.                         blue: '#0080bb',
  23.                         'blue-dark': '#006699',
  24.                         gray: '#525459',
  25.                         'gray-light': '#f5f6f7',
  26.                         'gray-mid': '#e2e3e5',
  27.                     },
  28.                     acc: { blue: '#0066CC', 'blue-dark': '#0052a3' },
  29.                     rp: { red: '#dc3545', 'red-dark': '#b02a37' },
  30.                     gs: { terracotta: '#c67b5c', 'terracotta-dark': '#b56a4c' },
  31.                 },
  32.                 fontFamily: {
  33.                     sans: ['"Source Sans Pro"', 'system-ui', 'sans-serif'],
  34.                     display: ['"DM Serif Display"', 'Georgia', 'serif'],
  35.                 }
  36.             }
  37.         }
  38.     }
  39. </script>
  40. {% endblock %}
  41. {% block styles %}
  42. <style>
  43.     /* Diagonale Section-Dividers — STARTPLATZ Key Visual */
  44.     .diagonal-top { clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%); }
  45.     .diagonal-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
  46.     .diagonal-both { clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%); }
  47.     /* Dekorative diagonale Streifen (auf Gradient-Sections) */
  48.     .stripe-decoration { position: relative; overflow: hidden; }
  49.     .stripe-decoration::before {
  50.         content: ''; position: absolute; top: -60px; right: -120px;
  51.         width: 400px; height: 400px; background: rgba(255,255,255,0.06);
  52.         transform: rotate(-15deg); border-radius: 24px;
  53.     }
  54.     .stripe-decoration::after {
  55.         content: ''; position: absolute; bottom: -80px; left: -80px;
  56.         width: 300px; height: 300px; background: rgba(255,255,255,0.04);
  57.         transform: rotate(-15deg); border-radius: 24px;
  58.     }
  59.     /* Card Hover — Soft (default, fuer Format-Cards) */
  60.     .card-hover { transition: box-shadow 0.25s ease, border-color 0.25s ease; }
  61.     .card-hover:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #7ab800; }
  62.     /* Card — Brutalist (Offset-Shadow + Press-Down Hover) */
  63.     .card-brut {
  64.         border: 2.5px solid #525459;
  65.         box-shadow: 5px 5px 0 #525459;
  66.         transition: box-shadow 0.15s ease, transform 0.15s ease;
  67.     }
  68.     .card-brut:hover {
  69.         box-shadow: 2px 2px 0 #525459;
  70.         transform: translate(3px, 3px);
  71.     }
  72.     /* Smooth Scroll */
  73.     html { scroll-behavior: smooth; }
  74. </style>
  75. {% endblock %}
  76. {% block navigation %}
  77.     {% include '@StartPlatzStyleBundle/Navigation/_nav.public.tailwind.html.twig' %}
  78. {% endblock %}
  79. {% block bodyClass %}font-sans text-sp-gray bg-white antialiased{% endblock %}
  80. {# topicColor block — Level-3 templates override this #}
  81. {% block topicColor %}green{% endblock %}